summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA_Game/Characters/Character.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-06 17:11:09 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-06 17:11:09 +0200
commit0b5fd9f180d9537f81f5dabf7692106a0127f849 (patch)
tree9d47136f29133c7b73fb10e2180116a6c3ce7c17 /DiscoBot/DSA_Game/Characters/Character.cs
parent97450e451fe535bccec1651b9960dd0f446736f3 (diff)
parent58d7568f4818feb111d0c8d929f349514043d4a7 (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/DSA_Game/Characters/Character.cs')
-rw-r--r--DiscoBot/DSA_Game/Characters/Character.cs35
1 files changed, 30 insertions, 5 deletions
diff --git a/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs
index 86e9831..d92fc63 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<string, int> Eigenschaften { get; set; } = new Dictionary<string, int>(); // char properties
@@ -179,13 +186,31 @@
private void Post_process()
{
var LE_Wert = this.Eigenschaften["Lebensenergie"];
+ var AE_Wert = this.Eigenschaften.First(s => s.Key.Contains("Astralenergie")).Value;
+
+ //var KL_Wert = this.Eigenschaften.First(s => s.Key.Contains("Klugheit")).Value;
+ var MU_Wert = this.Eigenschaften.First(s => s.Key.Contains("Mut")).Value;
+ var IN_Wert = this.Eigenschaften.First(s => s.Key.Contains("Intuition")).Value;
+ var CH_Wert = this.Eigenschaften.First(s => s.Key.Contains("Charisma")).Value;
var KK_Wert = this.Eigenschaften["Körperkraft"];
var KO__Wert = this.Eigenschaften["Konstitution"];
- 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_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;
+
- // ToDo: Astralpunkte berrechnen
-
}
private void Load(string path)