mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-16 23:29:47 +00:00
Ajout réactions
This commit is contained in:
parent
245cadd3c4
commit
9289aba7be
2 changed files with 9 additions and 1 deletions
|
|
@ -164,6 +164,7 @@ namespace AideDeJeu.Tools
|
|||
List<string> features = null;
|
||||
List<string> specialFeatures = null;
|
||||
List<string> actions = null;
|
||||
List<string> reactions = null;
|
||||
List<string> legendaryActions = null;
|
||||
foreach (var block in document)
|
||||
{
|
||||
|
|
@ -179,9 +180,11 @@ namespace AideDeJeu.Tools
|
|||
{
|
||||
monster.SpecialFeatures = specialFeatures;
|
||||
monster.Actions = actions;
|
||||
monster.Reactions = reactions;
|
||||
monster.LegendaryActions = legendaryActions;
|
||||
specialFeatures = null;
|
||||
actions = null;
|
||||
reactions = null;
|
||||
legendaryActions = null;
|
||||
features = null;
|
||||
monsters.Add(monster);
|
||||
|
|
@ -201,6 +204,9 @@ namespace AideDeJeu.Tools
|
|||
case "Actions":
|
||||
features = actions = new List<string>();
|
||||
break;
|
||||
case "Réactions":
|
||||
features = reactions = new List<string>();
|
||||
break;
|
||||
case "Actions légendaires":
|
||||
features = legendaryActions = new List<string>();
|
||||
break;
|
||||
|
|
@ -336,6 +342,7 @@ namespace AideDeJeu.Tools
|
|||
{
|
||||
monster.SpecialFeatures = specialFeatures;
|
||||
monster.Actions = actions;
|
||||
monster.Reactions = reactions;
|
||||
monster.LegendaryActions = legendaryActions;
|
||||
monsters.Add(monster);
|
||||
//yield return monster;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue