diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-01 11:25:03 +0100 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-01 11:25:03 +0100 |
commit | f6edadbfcadbc9e38e22500a496a74dd49d96d8a (patch) | |
tree | 36749e99ee87b9f481254a890acfb7149e6b3fb8 /DiscoBot/Characters | |
parent | 181dba0f96d8792e3565286b3983830674624cc5 (diff) |
added Permissions Class for easy Permission required commands
Diffstat (limited to 'DiscoBot/Characters')
-rw-r--r-- | DiscoBot/Characters/Character.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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); |