-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenemies.py
169 lines (158 loc) · 6.26 KB
/
enemies.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
from elements import Elements
from enemy import Enemy, Goal, GoalType
from ability import EffectType, Effect
from ai.single_target_attack import SingleTargetAttack
from ai.area_attack import AreaAttack
from ai.single_target_heal import SingleTargetHeal
from ai.status_effect import StatusEffect
from ai.summon_action import SummonAction
from ai.explode import Explode
enemies = {
'slime':
Enemy('Slime',
[
SingleTargetAttack('Headbutt', 0, 0.05, [
Effect(EffectType.damage_health, Elements.earth, _dice_value=4)
]),
SingleTargetHeal('Regenerate', 3, [
Effect(EffectType.restore_health, Elements.water, _dice_value=10)
]),
StatusEffect('Symbiosis', 4, [
Effect(EffectType.buff, Elements.water, _dice_value=10, _stat='bonus_strength', _status_effect_name='Reinforced', _effect_turns=3)
])
],
[
Goal(GoalType.damage_opponent, 500),
Goal(GoalType.heal_ally, 450),
Goal(GoalType.buff_ally, 450)
],
init=0),
'spider':
Enemy('Spider',
[
SingleTargetAttack('Bite', 0, 0.06, [
Effect(EffectType.damage_health, Elements.earth, _dice_value=4)
]),
StatusEffect('Web', 3, [
Effect(EffectType.debuff, Elements.earth, _dice_value=10, _stat='bonus_init', _status_effect_name='Slowed', _effect_turns=2)
], debuff=True),
],
[
Goal(GoalType.damage_opponent, 500),
Goal(GoalType.debuff_opponent, 425)
],
init=2,
init_growth=4),
'scarab':
Enemy('Scarab',
[
SingleTargetAttack('Bite', 0, 0.05, [
Effect(EffectType.damage_health, Elements.earth, _dice_value=6)
]),
SummonAction('Screech', 10, ['summoned_scarab'], 'The scarab cries for backup.'),
],
[
Goal(GoalType.summon, 500),
Goal(GoalType.damage_opponent, 400)
],
health=7),
'summoned_scarab':
Enemy('Scarab',
[SingleTargetAttack('Bite', 0, 0.05, [
Effect(EffectType.damage_health, Elements.earth, _dice_value=6)])
],
[Goal(GoalType.damage_opponent, 400)],
health=7),
'imp':
Enemy('Imp',
[
SingleTargetAttack('Mischevious Flame', 0, 0.05, [
Effect(EffectType.damage_health, Elements.fire, _dice_value=3),
Effect(EffectType.burn, Elements.fire, _effect_turns=2, _dot_value=2)
]),
],
[Goal(GoalType.damage_opponent, 500)],
fire_res=0.07,
fire_res_growth=0.03),
'bomb':
Enemy('Bomb',
[
SingleTargetAttack('Bite', 0, 0.06, [
Effect(EffectType.damage_health, Elements.fire, _dice_value=8)
]),
Explode('Explode', [
Effect(EffectType.damage_health, Elements.fire, _dice_value=10)
])
],
[
Goal(GoalType.enrage, 0),
Goal(GoalType.damage_opponent, 400)
],
health_growth=15,
water_res_growth=0.01),
'ash_devil':
Enemy('Ash Devil',
[
AreaAttack('Cinder Spout', 0, 1, 0.05, [
Effect(EffectType.damage_health, Elements.fire, _dice_value=4),
Effect(EffectType.burn, Elements.fire, _effect_turns=2, _dot_value=2)
]),
],
[Goal(GoalType.damage_opponent, 500)],
fire_res=0.08,
electricity_res=0.05),
'damned_soul':
Enemy('Damned Soul',
[
SingleTargetAttack('Ghostly Touch', 0, 0.05, [
Effect(EffectType.damage_health, Elements.water, _dice_value=4)
]),
SingleTargetHeal('Conflicted Devotion', 2, [
Effect(EffectType.restore_health, Elements.water, _dice_value=8)
]),
],
[
Goal(GoalType.damage_opponent, 500),
Goal(GoalType.heal_ally, 450),
],
willpower_growth=6,
earth_res_growth=0.01,
water_res_growth=0.03),
# 21+
'cinder_demon':
Enemy('Cinder Demon',
[
SingleTargetAttack('Burning Fist', 0, 0.06, [
Effect(EffectType.damage_health, Elements.fire, _dice_value=4),
Effect(EffectType.burn, Elements.fire, _effect_turns=1, _dot_value=2)
]),
Explode('Explode', [
Effect(EffectType.damage_health, Elements.fire, _dice_value=10),
Effect(EffectType.burn, Elements.fire, _effect_turns=2, _dot_value=4)
])
],
[
Goal(GoalType.enrage, 0),
Goal(GoalType.damage_opponent, 400)
],
init_growth=1,
health_growth=20,
fire_res_growth=0.04,
earth_res_growth=0.03,
water_res_growth=0.01),
'lust_demon':
Enemy('Lust Demon',
[
SingleTargetAttack('Fluid Embrace', 0, 0.05, [
Effect(EffectType.damage_health, Elements.water, _dice_value=6),
Effect(EffectType.damage_health, Elements.water, _dice_value=6),
]),
AreaAttack('Lurid Dance', 2, 2, 0.05, [
Effect(EffectType.damage_health, Elements.water, _dice_value=4),
Effect(EffectType.damage_health, Elements.water, _dice_value=4),
])
],
[Goal(GoalType.damage_opponent, 400)],
init=3,
water_res_growth=0.03),
}