/
pickables.py
225 lines (173 loc) · 5.39 KB
/
pickables.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# This is place to add items for player to pick
import random
from world_static import Pickable
class TorsoArmour(Pickable):
def __init__(self):
super().__init__()
self.glyph = "A"
self.glyph_inverted = False
self.glyph_color = "Blue"
self.name = "Armour"
self.destination = "arm_torso"
self.defence_points = random.randint(1, 2)
class HandArmour(Pickable):
def __init__(self):
super().__init__()
self.glyph = "A"
self.glyph_inverted = False
self.glyph_color = "Magenta"
self.name = "Armour"
self.destination = "arm_hands"
self.defence_points = random.randint(1, 2)
class LegArmour(Pickable):
def __init__(self):
super().__init__()
self.glyph = "A"
self.glyph_inverted = False
self.glyph_color = "White"
self.name = "Armour"
self.destination = "arm_legs"
self.defence_points = random.randint(1, 2)
class Weapon(Pickable):
def __init__(self):
super().__init__()
self.destination = "weapon"
self.glyph = "W"
self.glyph_inverted = True
self.glyph_color = "Yellow"
self.name = "Dagger"
self.strenght = (1, 2)
class Dagger(Weapon):
def __init__(self):
super().__init__()
self.glyph = "W"
self.glyph_inverted = True
self.glyph_color = "Yellow"
self.name = "Dagger"
self.strenght = (1, 2)
class Mace(Weapon):
def __init__(self):
super().__init__()
self.glyph = "W"
self.glyph_inverted = True
self.glyph_color = "Magenta"
self.name = "Mace"
self.strenght = (0, 2)
class HealthPotion(Pickable):
def __init__(self):
super().__init__()
self.glyph = "H"
self.glyph_inverted = True
self.glyph_color = "Red"
self.name = "HealthPotion"
self.consumable = True
class Helmet(Pickable):
def __init__(self):
super().__init__()
self.glyph = "A"
self.glyph_inverted = False
self.glyph_color = "Yellow"
self.name = "Helmet"
self.destination = "arm_head"
self.defence_points = random.randint(3, 5)
class LeatherJacket(Pickable):
def __init__(self):
super().__init__()
self.glyph = "A"
self.glyph_inverted = False
self.glyph_color = "Green"
self.name = "Leather Jacket"
self.destination = "arm_torso"
self.defence_points = random.randint(1, 2)
class StuddedJacket(TorsoArmour):
def __init__(self):
super().__init__()
self.name = "Studded Jacket"
self.defence_points = random.randint(2, 3)
class ChainMail(TorsoArmour):
def __init__(self):
super().__init__()
self.name = "Chain Mail"
self.defence_points = random.randint(3, 5)
class PlateArmour(TorsoArmour):
def __init__(self):
super().__init__()
self.name = "Plate Armour"
self.defence_points = random.randint(5, 8)
class LeatherCap(Helmet):
def __init__(self):
super().__init__()
self.name = "Leather Cap"
self.defence_points = random.randint(1, 1)
class ChainMailHood(Helmet):
def __init__(self):
super().__init__()
self.name = "Chain Mail Hood"
self.defence_points = random.randint(2, 3)
class LeatherGloves(HandArmour):
def __init__(self):
super().__init__()
self.name = "Leather gloves"
self.defence_points = random.randint(0, 1)
class ChainMailGloves(HandArmour):
def __init__(self):
super().__init__()
self.name = "Chainmail gloves"
self.defence_points = random.randint(2, 3)
class PlateGloves(HandArmour):
def __init__(self):
super().__init__()
self.name = "Plate gloves"
self.defence_points = random.randint(2, 4)
class LeatherBoots(LegArmour):
def __init__(self):
super().__init__()
self.name = "Leather Boots"
self.defence_points = random.randint(1, 2)
class ReinforcedLeatherBoots(LegArmour):
def __init__(self):
super().__init__()
self.name = " ReinforcedLeather Boots"
self.defence_points = random.randint(2, 3)
class Sword(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "White"
self.name = "Sword"
self.strenght = (3, 5)
class Axe(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "White"
self.name = "Axe"
self.strenght = (3, 6)
class RustySword(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "Red"
self.name = "Rusty Sword"
self.strenght = (2, 3)
class Morgenstern(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "Yellow"
self.name = "Morgenstern"
self.strenght = (4, 5)
class DwarvenAxe(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "Red"
self.name = "Rvwarven Axe"
self.strenght = (6, 7)
class ElvishBlade(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "Blue"
self.name = "Elvish Blade"
self.strenght = (5, 9)
class ScynthianSword(Weapon):
def __init__(self):
super().__init__()
self.glyph_color = "Magenta"
self.name = "Scynthian Sword"
self.strenght = (10, 12)