From 58d7568f4818feb111d0c8d929f349514043d4a7 Mon Sep 17 00:00:00 2001 From: Kobert-P Date: Wed, 6 Jun 2018 15:44:41 +0200 Subject: Split of Aktuell/Basis for LE/AE. --- DiscoBot/DSA_Game/Characters/Character.cs | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'DiscoBot/DSA_Game/Characters/Character.cs') diff --git a/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs index 9808fd9..1e44dc8 100644 --- a/DiscoBot/DSA_Game/Characters/Character.cs +++ b/DiscoBot/DSA_Game/Characters/Character.cs @@ -63,9 +63,16 @@ public string Name { get; set; } // char name - public int Lebenspunkte { get; set; } + public int Lebenspunkte_Basis { get; set; } + public int Lebenspunkte_Aktuell { get; set; } - public int Astralpunkte { get; set; } + public int Astralpunkte_Basis { get; set; } + public int Astralpunkte_Aktuell { get; set; } + + public int Ausdauer_Basis { get; set; } + public int Ausdauer_Aktuell { get; set; } + + public Dictionary Eigenschaften { get; set; } = new Dictionary(); // char properties @@ -188,14 +195,22 @@ var KK_Wert = this.Eigenschaften["Körperkraft"]; var KO__Wert = this.Eigenschaften["Konstitution"]; - this.Astralpunkte = 0; - this.Lebenspunkte = LE_Wert + (int)(KO__Wert + (KK_Wert/2.0) + 0.5); + this.Astralpunkte_Basis = 0; + + this.Ausdauer_Basis = 0; + + this.Lebenspunkte_Basis = LE_Wert + (int)(KO__Wert + (KK_Wert/2.0) + 0.5); if (this.Vorteile.Exists(x => x.Name.ToLower().Contains("zauberer"))) { - this.Astralpunkte = AE_Wert + (int)((MU_Wert + IN_Wert + CH_Wert) / 2.0 + 0.5); + this.Astralpunkte_Basis = AE_Wert + (int)((MU_Wert + IN_Wert + CH_Wert) / 2.0 + 0.5); } + this.Lebenspunkte_Aktuell = this.Lebenspunkte_Basis; + this.Astralpunkte_Aktuell = this.Astralpunkte_Basis; + this.Ausdauer_Aktuell = this.Ausdauer_Basis; + + } private void Load(string path) -- cgit v1.2.3-70-g09d2