diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-04 22:56:44 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-04 22:56:44 +0200 |
commit | 7f55f6f289b5ab5b7fd4ac42b472b51a9a0e679e (patch) | |
tree | 7864a485fe3236dca5d3a2ca4c1596eeb08ab92b /DiscoBot/DSA_Game | |
parent | d63ffc58db0f032cf7573b2a8a7720de2d5050ab (diff) |
implemented Astralpunkte + some cleanup
Diffstat (limited to 'DiscoBot/DSA_Game')
-rw-r--r-- | DiscoBot/DSA_Game/Characters/Character.cs | 10 | ||||
-rw-r--r-- | DiscoBot/DSA_Game/Characters/ICharacter.cs | 2 | ||||
-rw-r--r-- | DiscoBot/DSA_Game/Characters/NPC.cs | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs index 01b7eeb..2f994f0 100644 --- a/DiscoBot/DSA_Game/Characters/Character.cs +++ b/DiscoBot/DSA_Game/Characters/Character.cs @@ -65,6 +65,8 @@ public int Lebenspunkte { get; set; } + public int Astralpunkte { get; set; } + public Dictionary<string, int> Eigenschaften { get; set; } = new Dictionary<string, int>(); // char properties public List<Talent> Talente { get; set; } = new List<Talent>(); // list of talent objects (talents) @@ -176,11 +178,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; + var LE_Wert = this.Eigenschaften["Lebensenergie"]; + 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); + + // ToDo: Astralpunkte berrechnen } diff --git a/DiscoBot/DSA_Game/Characters/ICharacter.cs b/DiscoBot/DSA_Game/Characters/ICharacter.cs index 91eee2d..1dae15d 100644 --- a/DiscoBot/DSA_Game/Characters/ICharacter.cs +++ b/DiscoBot/DSA_Game/Characters/ICharacter.cs @@ -8,7 +8,7 @@ //int Ausdauer { get; set; } - //int Astralpunkte { get; set; } + int Astralpunkte { get; set; } //int Karmapunkte { get; set; } diff --git a/DiscoBot/DSA_Game/Characters/NPC.cs b/DiscoBot/DSA_Game/Characters/NPC.cs index dce4381..45ff6b0 100644 --- a/DiscoBot/DSA_Game/Characters/NPC.cs +++ b/DiscoBot/DSA_Game/Characters/NPC.cs @@ -20,6 +20,8 @@ public int Lebenspunkte { get; set; } + public int Astralpunkte { get; set; } + public string TestTalent(string talent, int tap = 3) { for (int i = 0; i <= 2; i++) |