1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-12-24 02:53:47 +00:00
This commit is contained in:
Yan Maniez 2018-08-19 23:26:23 +02:00
parent 000406763b
commit 485d04523b
4 changed files with 4713 additions and 4026 deletions

View file

@ -10,7 +10,7 @@ using System.Xml;
namespace AideDeJeuLib
{
public abstract class Monster : Item
public class Monster : Item
{
public string Type { get; set; }
public string Size { get; set; }
@ -35,6 +35,7 @@ namespace AideDeJeuLib
public string Senses { get; set; }
public string Languages { get; set; }
public string Challenge { get; set; }
public string Abilities { get; set; }
public string Description { get; set; }
public IEnumerable<string> SpecialFeatures { get; set; }

View file

@ -444,7 +444,7 @@ namespace AideDeJeu.ViewModels
monster != null &&
monster.Type.Contains(type) &&
(string.IsNullOrEmpty(size) || monster.Size.Equals(size)) &&
monster.Source.Contains(source) &&
(string.IsNullOrEmpty(source) || (monster.Source != null && monster.Source.Contains(source))) &&
powerComparer.Compare(monster.Challenge, minPower) >= 0 &&
powerComparer.Compare(monster.Challenge, maxPower) <= 0 &&
(