1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-12-16 23:29:47 +00:00
This commit is contained in:
Yan Maniez 2019-06-20 00:29:33 +02:00
parent e357ab0698
commit a52deaa805
49 changed files with 1430 additions and 4 deletions

View file

@ -385,10 +385,12 @@ namespace AideDeJeuCmd
{
var parser = new HtmlParser();
for (int i = 10; i <= 428; i++)
//for (int i = 256; i <= 256; i++)
{
var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load($@"..\..\..\..\..\Ignore\tome_of_beasts\page{i}.html");
parser.OutputMarkdown(parser.Parse(doc), output, Console.Error);
//parser.OutputMarkdown(parser.Parse(doc), Console.Out, Console.Error);
}
output.Write("\n<!--/MonsterItem-->\n\n<!--/MonsterItems-->\n");
}
@ -640,6 +642,10 @@ namespace AideDeJeuCmd
if (abilities != null)
{
abilities += text;
if(value.Length > 0)
{
abilities += $" {value}";
}
if (abilities.Count(c => c == '(') == 6)
{
Console.ForegroundColor = ConsoleColor.White;