-
Notifications
You must be signed in to change notification settings - Fork 0
/
traps.py
68 lines (51 loc) · 1.43 KB
/
traps.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
from abilities import *;
class TrapClass(object):
def __init__(self):
self.x = 0;
self.y = 0;
self.z = 0;
self.hp = 100;
self.mp = 0;
self.attack = 10;
self.attackSpeed = 1000;
self.defence = 50;
self.abilities = [Harm(self)];
self.effects = [];
self.vulnerabilities = [];
self.resistances = [];
self.immunities = ["mind"];
self.damageType = "physical";
self.currentHp = 1000;
self.currentMp = 0;
def __str__(self):
return "###";
class Pit(TrapClass):
def __init__(self):
TrapClass.__init__(self);
self.abilities = [Harm(self), Slow(self)];
def __str__(self):
return "\\_/";
class ArrowSlit(TrapClass):
def __init__(self):
TrapClass.__init__(self);
self.abilities = [Poison(self)];
def __str__(self):
return "-^-";
class Explosion(TrapClass):
def __init__(self):
TrapClass.__init__(self);
self.attackSpeed = 120;
self.attack = 5;
self.damageType = "fire";
self.abilities = [Harm(self)];
def __str__(self):
return "-*-";
class Labyrinth(TrapClass):
def __init__(self):
TrapClass.__init__(self);
self.attackSpeed = 120;
self.attack = 2;
self.damageType = "mind";
self.abilities = [Exhaust(self)];
def __str__(self):
return "-@-";