From f6edadbfcadbc9e38e22500a496a74dd49d96d8a Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Fri, 1 Jun 2018 11:25:03 +0100 Subject: added Permissions Class for easy Permission required commands --- DiscoBot/Characters/Character.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DiscoBot/Characters/Character.cs') diff --git a/DiscoBot/Characters/Character.cs b/DiscoBot/Characters/Character.cs index c092154..86e8b3a 100644 --- a/DiscoBot/Characters/Character.cs +++ b/DiscoBot/Characters/Character.cs @@ -22,12 +22,12 @@ this.PropTable.Add("KO", "Konstitution"); this.PropTable.Add("KK", "Körperkraft"); - this.Post_process(); // calculate derived values } public Character(string path) : this() { this.Load(path); // load + this.Post_process(); // calculate derived values } public Character(Character c, string name, int stDv = 2) : this() @@ -52,6 +52,8 @@ { this.Kampftalente.Add(new KampfTalent(i.Name, i.At + (int)Math.Round(RandomMisc.Random(stDv)), i.Pa + (int)Math.Round(RandomMisc.Random(stDv)))); } + + this.Post_process(); // calculate derived values } public string Name { get; set; } // char name @@ -139,7 +141,7 @@ if (tap < 0) { - SoundEffects.Play(Sound.Wrong).Wait(); + //SoundEffects.Play(Sound.Wrong).Wait(); } output.AppendFormat(" tap: {0,2}", tap); -- cgit v1.2.3-54-g00ecf