-
Notifications
You must be signed in to change notification settings - Fork 0
/
monster_list.py
321 lines (269 loc) · 8.39 KB
/
monster_list.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
from monster import Monster
import random
class MonsterList():
def __init__(self):
self.monsters = [] # the list of all possible monsters in the game
self.addGiantRat()
self.addCyclops()
self.addAngry_Zombie()
self.addFast_Zombie()
self.addZombie()
self.addDragon()
self.addBaby_Dragon()
self.addUnicorn()
self.addTinyBat()
self.addGiantSpider()
# getmonster - -> returns a random monster form are list
def get_monster(self):
# return the monster
return self.monsters[random.randint(0, len(self.monsters)-1)]
#adds a Giant Rat monster
def addGiantRat(self):
name = "Giant Rat"
desc = """A foul rat, as big as a small child rears up before you. it looks at you with hunger in it eyes.
__ __
/ \_____/ \\
| o o |
\ (o) (o) /
_| ___ |_
/ | ___ | \\
| \ / |
===== () =====
/ || || \\
/ \ / \\
| ^^ ^^ |
\ /
\ _________ /==============-----
/// \\\\\\ """
attack_desc = "bites at You"
level = 1
health = 5
attack = 8
damage = 2
defense = 10
protection = 1
speed = 12
xp = 10
gold = 5
food = 50
basic = 1
advanced = 0
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#adds to list
self.monsters.append(temp)
#adds a MicroScopic Bat monster
def addTinyBat(self):
name = "Tiny Bat"
desc = """A microscopic bat, as small as a grain of salt rears down before you. it looks at you with hunger in it eyes.
/( )\\
| -^^- |
\\_ `' _/
\\ )
)/
(' """
attack_desc = "bites You"
level = 1
health = 5
attack = 5
damage = 1
defense = 8
protection = 1
speed = 16
xp = 10
gold = 5
food = 50
basic = 1
advanced = 0
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#adds to list
self.monsters.append(temp)
#adds a Ga Spider monster
def addGiantSpider(self):
name = "Giant Spider"
desc = "A hideous Spider, as big as a small child rears up before you. it looks at you with hunger in it eyes."
attack_desc = "bites You"
level = 1
health = 10
attack = 10
damage = 5
defense = 8
protection = 4
speed = 8
xp = 30
gold = 15
food = 100
basic = 2
advanced = 0
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#adds to list
self.monsters.append(temp)
#adds a Cyclops monster
def addCyclops(self):
name = "Cyclops"
desc = "A twenty foot tall ga peers menacingly at you with his single large eye."
attack_desc = "swings his hammer at you"
level = 10
health = 50
attack = 18
damage = 20
defense = 8
protection = 15
speed = -5
xp = 300
gold = 2000
food = 1000
basic = 0
advanced = 1
epic = 1
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds an Angry_Zombie monster
def addAngry_Zombie(self):
name = "Angry Zombie"
desc = "A Once Living person got lost in this dungeon with firends that angered him and he has been wondering around looking for BRAINS!!"
attack_desc = "Swings Branch at you"
level = 4
health = 35
attack = 20
damage = 12
defense = 10
protection = 2
speed = 5
xp = 150
gold = 150
food = 10
basic = 2
advanced = 2
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds a Zombie monster
def addZombie(self):
name = "Zombie"
desc = "A Once Living person got lost in this dungeon and has been wondering around looking for BRAINS!!"
attack_desc = "swings his arms at you"
level = 2
health = 20
attack = 10
damage = 5
defense = 5
protection = 2
speed = 5
xp = 150
gold = 100
food = 10
basic = 3
advanced = 1
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds a Fast_Zombie monster
def addFast_Zombie(self):
name = "Fast Zombie"
desc = "A Once Living athlete got lost in this dungeon and has been wondering around looking for BRAINS!!"
attack_desc = "swings his arms at you"
level = 3
health = 20
attack = 5
damage = 5
defense = 5
protection = 5
speed = 20
xp = 50
gold = 100
food = 10
basic = 3
advanced = 1
epic = 0
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds a Dragon monster
def addDragon(self):
name = "Dragon"
desc = "This mystical creature is asleep... it awakens will you be burnt to a crisp!!"
attack_desc = "Blows Fire at you"
level = 15
health = 400
attack = 200
damage = 170
defense = 150
protection = 60
speed = 0
xp = 3000
gold = 1000
food = 160
basic = 1
advanced = 2
epic = 5
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds a Baby_Dragon monster
def addBaby_Dragon(self):
name = "Baby Dragon"
desc = "This mystical creature is asleep... it awakens will you be burnt to a crisp."
attack_desc = "Blows Fire at you"
level = 10
health = 200
attack = 100
damage = 85
defense = 75
protection = 30
speed = 1
xp = 1500
gold = 500
food = 80
basic = 0
advanced = 3
epic = 2
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)
#adds a Unicorn monster
def addUnicorn(self):
name = "Unicorn"
desc = "This mystical creature has been locked down here for ages and so it is easily angered buy the slightest movement."
attack_desc = "Stabs You With It's Horn"
level = 15
health = 200
attack = 100
damage = 85
defense = 75
protection = 15
speed = 8
xp = 500
gold = 250
food = 65
basic = 3
advanced = 1
epic = 1
temp = Monster(name, desc, attack_desc, level,
health, attack, damage, defense, protection, speed,
xp, gold, food, basic, advanced, epic)
#add list
self.monsters.append(temp)