From 74b9248fa51bd6c934a718b407972dc99fd297b0 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 9 Apr 2018 22:16:06 +0200 Subject: Added Lifepoints --- DiscoBot/Auxiliary/Soundeffects.cs | 2 +- DiscoBot/Characters/Character.cs | 2 ++ DiscoBot/Characters/ICharacter.cs | 2 ++ DiscoBot/Characters/NPC.cs | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'DiscoBot') diff --git a/DiscoBot/Auxiliary/Soundeffects.cs b/DiscoBot/Auxiliary/Soundeffects.cs index d04b1c0..3c67fac 100644 --- a/DiscoBot/Auxiliary/Soundeffects.cs +++ b/DiscoBot/Auxiliary/Soundeffects.cs @@ -53,7 +53,7 @@ namespace DiscoBot.Auxiliary if (url != string.Empty) { - await Task.Run(() => Voice.SendAsync(url, vol)); + Task.Run(() => Voice.SendAsync(url, vol)); return; } diff --git a/DiscoBot/Characters/Character.cs b/DiscoBot/Characters/Character.cs index 34a1037..2c2fc65 100644 --- a/DiscoBot/Characters/Character.cs +++ b/DiscoBot/Characters/Character.cs @@ -53,6 +53,8 @@ public string Name { get; set; } // char name + public int Lebenspunkte { get; set; } + public Dictionary Eigenschaften { get; set; } = new Dictionary(); // char properties public List Talente { get; set; } = new List(); // list of talent objects (talents and spells) diff --git a/DiscoBot/Characters/ICharacter.cs b/DiscoBot/Characters/ICharacter.cs index 135243a..233110b 100644 --- a/DiscoBot/Characters/ICharacter.cs +++ b/DiscoBot/Characters/ICharacter.cs @@ -4,6 +4,8 @@ { string Name { get; set; } + int Lebenspunkte { get; set; } + string TestTalent(string talent, int erschwernis = 0); string TestEigenschaft(string eigenschaft, int erschwernis = 0); diff --git a/DiscoBot/Characters/NPC.cs b/DiscoBot/Characters/NPC.cs index 1a71e86..f399a70 100644 --- a/DiscoBot/Characters/NPC.cs +++ b/DiscoBot/Characters/NPC.cs @@ -16,7 +16,9 @@ } public string Name { get; set; } - + + public int Lebenspunkte { get; set; } + public string TestTalent(string talent, int tap = 3) { for (int i = 0; i <= 2; i++) -- cgit v1.2.3-54-g00ecf