diff options
Diffstat (limited to 'DiscoBot/Characters')
-rw-r--r-- | DiscoBot/Characters/Character.cs | 8 | ||||
-rw-r--r-- | DiscoBot/Characters/ICharacter.cs | 6 |
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); |