forked from Aeolitus/Sephrasto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObjekte.py
54 lines (48 loc) · 1.33 KB
/
Objekte.py
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
44
45
46
47
48
49
50
51
52
53
54
'''
In dieser Datei werden Waffen und Rüstungen definiert.
'''
class Objekt():
def __init__(self):
self.name = ''
self.text = ''
def __eq__(self, other) :
if self.__class__ != other.__class__: return False
return self.__dict__ == other.__dict__
class Waffeneigenschaft():
def __init__(self):
self.name = ''
self.text = ''
self.script = None
self.scriptPrio = 0
self.isUserAdded = True
def __eq__(self, other) :
if self.__class__ != other.__class__: return False
return self.__dict__ == other.__dict__
class Waffe(Objekt):
def __init__(self):
super().__init__()
self.W6 = 2
self.plus = 2
self.eigenschaften = []
self.haerte = 7
self.rw = 0
self.wm = 0
self.fertigkeit = ''
self.talent = ''
self.kampfstile = []
self.kampfstil = ""
self.anzeigename = ""
self.isUserAdded = True
class Nahkampfwaffe(Waffe):
def __init__(self):
super().__init__()
class Fernkampfwaffe(Waffe):
def __init__(self):
super().__init__()
self.lz = 1
class Ruestung(Objekt):
def __init__(self):
super().__init__()
self.be = -1
self.rs = [-1,-1,-1,-1,-1,-1]
# Bein LArm RArm Bauch Brust Kopf