summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA_Game
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-06 15:44:41 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-06 15:44:41 +0200
commit58d7568f4818feb111d0c8d929f349514043d4a7 (patch)
treeb5ecae7d03ce3c3488751e0dad0c94b7e58bcbd1 /DiscoBot/DSA_Game
parent3860f7313b4f859acb1feb90016cc3656bc24912 (diff)
Split of Aktuell/Basis for LE/AE.
Diffstat (limited to 'DiscoBot/DSA_Game')
-rw-r--r--DiscoBot/DSA_Game/Characters/Character.cs25
-rw-r--r--DiscoBot/DSA_Game/Characters/ICharacter.cs9
-rw-r--r--DiscoBot/DSA_Game/Characters/NPC.cs9
3 files changed, 33 insertions, 10 deletions
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<string, int> Eigenschaften { get; set; } = new Dictionary<string, int>(); // 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)
diff --git a/DiscoBot/DSA_Game/Characters/ICharacter.cs b/DiscoBot/DSA_Game/Characters/ICharacter.cs
index 1dae15d..3ec4258 100644
--- a/DiscoBot/DSA_Game/Characters/ICharacter.cs
+++ b/DiscoBot/DSA_Game/Characters/ICharacter.cs
@@ -4,11 +4,14 @@
{
string Name { get; set; }
- int Lebenspunkte { get; set; }
+ int Lebenspunkte_Basis { get; set; }
+ int Lebenspunkte_Aktuell { get; set; }
- //int Ausdauer { get; set; }
+ int Ausdauer_Basis { get; set; }
+ int Ausdauer_Aktuell { get; set; }
- int Astralpunkte { get; set; }
+ int Astralpunkte_Basis { get; set; }
+ int Astralpunkte_Aktuell { get; set; }
//int Karmapunkte { get; set; }
diff --git a/DiscoBot/DSA_Game/Characters/NPC.cs b/DiscoBot/DSA_Game/Characters/NPC.cs
index 45ff6b0..0894df6 100644
--- a/DiscoBot/DSA_Game/Characters/NPC.cs
+++ b/DiscoBot/DSA_Game/Characters/NPC.cs
@@ -18,9 +18,14 @@
public string Name { get; set; }
- 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 string TestTalent(string talent, int tap = 3)
{