From f89f308c525e9deebc6d2cf6416e27dfe1a299dc Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 19 May 2019 16:03:38 +0200 Subject: Cleanup DiscoBot Project --- DSALib/Talent.cs | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'DSALib/Talent.cs') diff --git a/DSALib/Talent.cs b/DSALib/Talent.cs index bf1e52d..a39709c 100644 --- a/DSALib/Talent.cs +++ b/DSALib/Talent.cs @@ -4,9 +4,9 @@ { public Talent(string name, string probe, int value) { - this.Name = name; - this.Probe = probe; - this.Value = value; + Name = name; + Probe = probe; + Value = value; } public string Name { get; set; } @@ -14,18 +14,15 @@ 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); - } + var temp = Probe.Split('/'); + for (var index = 0; index < temp.Length; index++) temp[index] = temp[index].Replace("/", string.Empty); return temp; } - + public bool IstFernkampftalent() { switch (Name) @@ -45,4 +42,4 @@ } } } -} +} \ No newline at end of file -- cgit v1.2.3-70-g09d2