From 2503ca78d3e583cb1291cb9a99a6e79526a348ee Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 9 Jul 2018 15:15:35 +0200 Subject: Created DSALib Created ZooBOTanica --- DiscoBot/DSA_Game/Talent.cs | 58 --------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 DiscoBot/DSA_Game/Talent.cs (limited to 'DiscoBot/DSA_Game/Talent.cs') diff --git a/DiscoBot/DSA_Game/Talent.cs b/DiscoBot/DSA_Game/Talent.cs deleted file mode 100644 index ff91742..0000000 --- a/DiscoBot/DSA_Game/Talent.cs +++ /dev/null @@ -1,58 +0,0 @@ -namespace DiscoBot.DSA_Game -{ - using System; - - using DiscoBot.Auxiliary; - - public class Talent // talent objekt - { - public Talent(string name, string probe, int value) - { - this.Name = name; - this.Probe = probe; - this.Value = value; - } - - public string Name { get; set; } - - public string Probe { get; set; } - - public int Value { get; set; } - - public string[] GetEigenschaften() // turn XX/XX/XX into string[]{XX,XX,XX} - { - var temp = this.Probe.Split('/'); - for (var index = 0; index < temp.Length; index++) - { - temp[index] = temp[index].Replace("/", string.Empty); - } - - return temp; - } - - public int CheckName(string quarry) - { - var sc = (StringComparer)new SpellCorrect(); - return sc.Compare(quarry, this.Name); - } - - public bool IstFernkampftalent() - { - switch (Name) - { - case "Armbrust": - case "Belagerungswaffen": - case "Blasrohr": - case "Bogen": - case "Diskus": - case "Schleuder": - case "Wurfbeile": - case "Wurfmesser": - case "Wurfspeere": - return true; - default: - return false; - } - } - } -} -- cgit v1.2.3-70-g09d2