summaryrefslogtreecommitdiff
path: root/DiscoBot/Characters
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
parent9a5f1eec946c2b17c27c3aa71a23056f3e41827a (diff)
LE postprocessing
Diffstat (limited to 'DiscoBot/Characters')
-rw-r--r--DiscoBot/Characters/Character.cs8
-rw-r--r--DiscoBot/Characters/ICharacter.cs6
2 files changed, 13 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)
diff --git a/DiscoBot/Characters/ICharacter.cs b/DiscoBot/Characters/ICharacter.cs
index 233110b..62bc1a5 100644
--- a/DiscoBot/Characters/ICharacter.cs
+++ b/DiscoBot/Characters/ICharacter.cs
@@ -6,6 +6,12 @@
int Lebenspunkte { get; set; }
+ //int Ausdauer { get; set; }
+
+ //int Astralpunkte { get; set; }
+
+ //int Karmalpunkte { get; set; }
+
string TestTalent(string talent, int erschwernis = 0);
string TestEigenschaft(string eigenschaft, int erschwernis = 0);