-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentity_factories.py
More file actions
107 lines (95 loc) · 2.33 KB
/
Copy pathentity_factories.py
File metadata and controls
107 lines (95 loc) · 2.33 KB
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
from components.ai import HostileEnemy
from components.fighter import Fighter
from entity import Actor, Item
from components import consumable, equippable
from components.inventory import Inventory
from components.level import Level
from components.equipment import Equipment
player = Actor(
char="@",
color=(255, 255, 255),
name="Netrunner",
ai_cls=HostileEnemy,
fighter=Fighter(hp=30, base_defense=2, base_power=4),
inventory=Inventory(capacity=26),
level=Level(level_up_base=200),
equipment=Equipment(),
)
guard = Actor(
char="G",
color=(255, 255, 0),
name="Guard",
ai_cls=HostileEnemy,
fighter=Fighter(hp=10, base_defense=0, base_power=3),
inventory=Inventory(capacity=0),
level=Level(xp_given=25),
equipment=Equipment(),
)
shinobi = Actor(
char="S",
color=(255, 255, 0),
name="Shinobi",
ai_cls=HostileEnemy,
fighter=Fighter(hp=16, base_defense=1, base_power=4),
inventory=Inventory(capacity=0),
level=Level(xp_given=100),
equipment=Equipment(),
)
boss = Actor(
char="@",
color=(255, 255, 50),
name="Netrunner",
ai_cls=HostileEnemy,
fighter=Fighter(hp=100, base_defense=4, base_power=8),
inventory=Inventory(capacity=0),
level=Level(xp_given=99999),
equipment=Equipment(),
)
nanogauze = Item(
char="!",
color=(127, 0, 255),
name="Nanogauze",
consumable=consumable.HealingConsumable(amount=4),
)
mathogen = Item(
char="~",
color=(255, 255, 0),
name="Mathogen",
consumable=consumable.MathogenConsumable(damage=20, max_range=5),
)
braindos = Item(
char="~",
color=(207, 63, 255),
name="Braindos",
consumable=consumable.ConfusionConsumable(number_of_turns=5),
)
empgrenade = Item(
char="#",
color=(255, 0, 0),
name="EMP Grenade",
consumable=consumable.EMPConsumable(damage=12, radius=3),
)
bitshiv = Item(
char="/",
color=(255, 255, 255),
name="Bitshiv",
equippable=equippable.Bitshiv(),
)
automakatana = Item(
char="/",
color=(255, 255, 255),
name="Automakatana",
equippable=equippable.Automakatana(),
)
slipsuit = Item(
char="[",
color=(0, 255, 0),
name="Slipsuit",
equippable=equippable.Slipsuit(),
)
datamail = Item(
char="[",
color=(0, 255, 0),
name="Datamail",
equippable=equippable.Datamail(),
)