mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-24 02:53:47 +00:00
Monstres
This commit is contained in:
parent
000406763b
commit
485d04523b
4 changed files with 4713 additions and 4026 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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 &&
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue