summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/Talent.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-09 14:13:28 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-09 14:13:28 +0200
commit5cb8346a6a3ccc55295c00ac333e410629ff7c42 (patch)
tree1603fdf24f1ead61cf7dd23c09a9784cfb1c780e /DiscoBot/Auxiliary/Talent.cs
parente49ac2778bb6d38517f14447c0675df354552528 (diff)
parent4ca7291ebee440d9f3ef2a1643d8d01b29006459 (diff)
Merge branch 'Reset'
Diffstat (limited to 'DiscoBot/Auxiliary/Talent.cs')
-rw-r--r--DiscoBot/Auxiliary/Talent.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/DiscoBot/Auxiliary/Talent.cs b/DiscoBot/Auxiliary/Talent.cs
new file mode 100644
index 0000000..969304c
--- /dev/null
+++ b/DiscoBot/Auxiliary/Talent.cs
@@ -0,0 +1,37 @@
+namespace DiscoBot.Auxiliary
+{
+ using System;
+
+ 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[] Test() // 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);
+ }
+ }
+}