summaryrefslogtreecommitdiff
path: root/DiscoBot/Characters/Character.cs
diff options
context:
space:
mode:
authorKobert <Kassian.Kobert@gmail.com>2018-04-09 23:09:31 +0200
committerKobert <Kassian.Kobert@gmail.com>2018-04-09 23:09:31 +0200
commitaa236f67bf1829e2a7c6e9a5f82d109b39147b11 (patch)
tree005b0e3e02b5b26051555f13f1b439328153c873 /DiscoBot/Characters/Character.cs
parent9a5f1eec946c2b17c27c3aa71a23056f3e41827a (diff)
LE postprocessing
Diffstat (limited to 'DiscoBot/Characters/Character.cs')
-rw-r--r--DiscoBot/Characters/Character.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/DiscoBot/Characters/Character.cs b/DiscoBot/Characters/Character.cs
index ddba35b..2915622 100644
--- a/DiscoBot/Characters/Character.cs
+++ b/DiscoBot/Characters/Character.cs
@@ -241,7 +241,13 @@
private void Post_process()
{
-
+ var LE_Wert = this.Eigenschaften.First(s => s.Key.Contains("Leben")).Value;
+ var KK_Wert = this.Eigenschaften.First(s => s.Key.Contains("Körper")).Value;
+ var KO__Wert = this.Eigenschaften.First(s => s.Key.Contains("Konst")).Value;
+
+ this.Lebenspunkte = LE_Wert + (int)(KO__Wert + (KK_Wert/2.0) + 0.5);
+
+
}
private void Load(string path)