mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 22:45:44 +00:00
Amélioration md to monsters
This commit is contained in:
parent
65421cc952
commit
8e653d5219
1 changed files with 5 additions and 3 deletions
|
|
@ -174,6 +174,8 @@ namespace AideDeJeu.Tools
|
|||
{
|
||||
if (monster != null)
|
||||
{
|
||||
monster.Actions = actions;
|
||||
actions = new List<string>();
|
||||
monsters.Add(monster);
|
||||
//yield return monster;
|
||||
}
|
||||
|
|
@ -185,7 +187,7 @@ namespace AideDeJeu.Tools
|
|||
else if (block is Markdig.Syntax.ParagraphBlock)
|
||||
{
|
||||
var paragraphBlock = block as Markdig.Syntax.ParagraphBlock;
|
||||
actions.Add(paragraphBlock.ToParagraphString());
|
||||
actions.Add(MarkdownToHtml(paragraphBlock.ToParagraphString()));
|
||||
////DumpParagraphBlock(paragraphBlock);
|
||||
//Console.WriteLine(paragraphBlock.IsBreakable);
|
||||
//spell.DescriptionHtml += paragraphBlock.Inline.ToContainerString();
|
||||
|
|
@ -278,7 +280,7 @@ namespace AideDeJeu.Tools
|
|||
if (ininblock is Markdig.Syntax.ParagraphBlock)
|
||||
{
|
||||
var paragraphBlock = ininblock as Markdig.Syntax.ParagraphBlock;
|
||||
actions.Add(listBlock.BulletType + " " + paragraphBlock.ToParagraphString());
|
||||
actions.Add(MarkdownToHtml(listBlock.BulletType + " " + paragraphBlock.ToParagraphString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -296,10 +298,10 @@ namespace AideDeJeu.Tools
|
|||
monster.Wisdom = table["SAG"].FirstOrDefault();
|
||||
monster.Charisma = table["CHA"].FirstOrDefault();
|
||||
}
|
||||
|
||||
}
|
||||
if (monster != null)
|
||||
{
|
||||
monster.Actions = actions;
|
||||
monsters.Add(monster);
|
||||
//yield return monster;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue