blob: 5771a74509089129e749d38a1d12b5f82947a21c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
namespace DSALib.Models.Dsa
{
public class Talent : Database.DataObject // talent objekt
{
public Talent(string name, string probe, int value)
{
Name = name;
Probe = probe;
Value = value;
}
public string Probe { get; set; }
public int Value { get; set; }
public string[] GetEigenschaften() // turn XX/XX/XX into string[]{XX,XX,XX}
{
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)
{
case "Armbrust":
case "Belagerungswaffen":
case "Blasrohr":
case "Bogen":
case "Diskus":
case "Schleuder":
case "Wurfbeile":
case "Wurfmesser":
case "Wurfspeere":
return true;
default:
return false;
}
}
}
}
|