-
Notifications
You must be signed in to change notification settings - Fork 14
/
tyrant.h
210 lines (186 loc) · 4.05 KB
/
tyrant.h
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
#ifndef TYRANT_H_INCLUDED
#define TYRANT_H_INCLUDED
#define TU_OPTIMIZER_VERSION "3.7.0"
#define NDEBUG
#include <string>
#include <set>
#include <tuple>
enum Faction
{
allfactions,
bloodthirsty,
imperial,
raider,
righteous,
xeno,
progenitor,
num_factions
};
extern const std::string faction_names[num_factions];
extern bool verbose;
enum Skill
{
// Attack:
attack,
// Activation (including Destroyed):
augment, backfire, chaos, cleanse, enfeeble,
enhance_armored, enhance_berserk, enhance_corrosive, enhance_counter, enhance_enfeeble, enhance_evade,
enhance_leech, enhance_heal, enhance_poison, enhance_rally, enhance_strike,
freeze, heal, infuse, jam,
mimic, overload, protect, rally, recharge, repair, rush, shock, siege, split, strike, summon, supply,
trigger_regen, // not actually a skill; handles regeneration after strike/siege
weaken,
// Combat-Modifier:
antiair, burst, fear, flurry, pierce, swipe, valor,
// Damage-Dependant:
berserk, corrosive, crush, disease, immobilize, inhibit, leech, phase, poison, siphon, sunder,
// Defensive:
armored, counter, emulate, evade, flying, intercept, payback, refresh, regenerate, stun, tribute, wall,
// Triggered:
blitz, legion,
// Static, ignored:
/* blizzard, fusion, mist, */
// Placeholder for new gained skill from battleground effect:
new_skill,
num_skills
};
extern std::string skill_names[num_skills];
extern std::set<Skill> helpful_skills;
namespace SkillMod {
enum SkillMod
{
on_activate,
on_play,
on_attacked,
on_kill,
on_death,
num_skill_activation_modifiers
};
}
extern std::string skill_activation_modifier_names[SkillMod::num_skill_activation_modifiers];
namespace CardType {
enum CardType {
commander,
assault,
structure,
action,
num_cardtypes
};
}
extern std::string cardtype_names[CardType::num_cardtypes];
extern std::string rarity_names[5];
namespace DeckType {
enum DeckType {
deck,
mission,
raid,
quest,
custom_deck,
num_decktypes
};
}
extern std::string decktype_names[DeckType::num_decktypes];
enum Effect {
none,
armored_1,
armored_2,
armored_3,
berserk_1,
berserk_2,
berserk_3,
corrosive_1,
corrosive_2,
corrosive_3,
counter_1,
counter_2,
counter_3,
enfeeble_1,
enfeeble_2,
enfeeble_3,
evade_1,
evade_2,
evade_3,
heal_1,
heal_2,
heal_3,
leech_1,
leech_2,
leech_3,
overload_1,
overload_2,
overload_3,
poison_1,
poison_2,
poison_3,
bg_progenitor,
rally_1,
rally_2,
rally_3,
strike_1,
strike_2,
strike_3,
time_surge,
copycat,
quicksilver,
decay,
high_skies,
impenetrable,
invigorate,
clone_project,
friendly_fire,
genesis,
artillery_strike,
photon_shield,
decrepit,
forcefield,
chilling_touch,
clone_experiment,
toxic,
haunt,
united_front,
harsh_conditions,
num_effects
};
extern std::string effect_names[Effect::num_effects];
enum AchievementMiscReq
{
unit_with_flying_killed, // 104 Sky Control
skill_activated, // 105 Brute Strength
turns, // all "Speedy" and "Slow"
damage, // 168 SMASH!; 183 Rally Free Zone
com_total, // 169 Overkill; 170 EXTREME Overkill!!!
num_achievement_misc_reqs
};
extern std::string achievement_misc_req_names[num_achievement_misc_reqs];
enum gamemode_t
{
fight,
surge,
tournament
};
enum class OptimizationMode
{
winrate,
achievement,
raid,
gw_abp,
defense
};
struct true_ {};
struct false_ {};
template<unsigned>
struct skillTriggersRegen { typedef false_ T; };
template<>
struct skillTriggersRegen<strike> { typedef true_ T; };
template<>
struct skillTriggersRegen<siege> { typedef true_ T; };
enum SkillSourceType
{
source_hostile,
source_allied,
source_global_hostile,
source_global_allied,
source_chaos
};
typedef std::tuple<Skill, unsigned, Faction, bool /* all */, SkillMod::SkillMod> SkillSpec;
#endif