1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-11-02 00:16:07 +00:00
This commit is contained in:
Yan Maniez 2018-08-01 12:22:24 +02:00
parent 1707da1ae9
commit 568c32f19d

View file

@ -107,7 +107,7 @@ namespace AideDeJeuLib
}), }),
new Tuple<string, Action<Equipment, string>>("**Unité** ", (m, s) => new Tuple<string, Action<Equipment, string>>("**Unité** ", (m, s) =>
{ {
this.Text += "- " + str; m.Unity = s; this.Text += "- " + str; m.Unity = s; m.Name += $" ({s})";
}), }),
new Tuple<string, Action<Equipment, string>>("**Capacité** ", (m, s) => new Tuple<string, Action<Equipment, string>>("**Capacité** ", (m, s) =>
{ {
@ -131,7 +131,7 @@ namespace AideDeJeuLib
{ {
if (str.StartsWith(property.Item1)) if (str.StartsWith(property.Item1))
{ {
property.Item2.Invoke(this, str.Substring(property.Item1.Length)); property.Item2.Invoke(this, str.Substring(property.Item1.Length).Trim('\n', ' '));
break; break;
} }
} }