/
form-data.h
251 lines (229 loc) · 7.87 KB
/
form-data.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
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
#pragma once
#include "tag-version.h"
struct form_entry
{
// Row 1:
transformation tran;
monster_type equivalent_mons;
const char *short_name;
const char *long_name;
const char *wiz_name;
// Row 2:
const char *description;
// Row 3:
int blocked_slots;
int resists;
// Row 4:
FormDuration duration;
int str_mod;
int dex_mod;
size_type size;
int hp_mod;
// Row 5
int flat_ac;
int power_ac;
int xl_ac;
bool can_cast;
int spellcasting_penalty;
bool unarmed_hit_bonus;
int base_unarmed_damage;
// Row 6
brand_type uc_brand;
int uc_colour;
const char *uc_attack;
FormAttackVerbs uc_attack_verbs;
// Row 7
form_capability can_fly;
form_capability can_swim;
form_capability can_bleed;
bool breathes;
bool keeps_mutations;
const char *shout_verb;
int shout_volume_modifier;
const char *hand_name;
const char *foot_name;
const char *prayer_action;
const char *flesh_equivalent;
};
static const form_entry formdata[] =
{
{
transformation::none, MONS_PLAYER, "", "", "none",
"",
EQF_NONE, MR_NO_FLAGS,
FormDuration(0, PS_NONE, 0), 0, 0, SIZE_CHARACTER, 10,
0, 0, 0, true, 0, false, 3,
SPWPN_NORMAL, LIGHTGREY, "", DEFAULT_VERBS,
FC_DEFAULT, FC_DEFAULT, FC_DEFAULT, true, true,
"", 0, "", "", "", ""
},
{
transformation::spider, MONS_SPIDER, "Spider", "spider-form", "spider",
"a venomous arachnid creature.",
EQF_PHYSICAL, MR_VUL_POISON,
FormDuration(10, PS_DOUBLE, 60), 0, 5, SIZE_TINY, 10,
2, 0, 0, true, 10, true, 5,
SPWPN_VENOM, LIGHTGREEN, "Fangs", ANIMAL_VERBS,
FC_DEFAULT, FC_FORBID, FC_FORBID, true, false,
"hiss", -4, "front leg", "", "crawl onto", "flesh"
},
{
transformation::blade_hands, MONS_PLAYER, "Blade", "", "blade",
"",
EQF_HANDS, MR_NO_FLAGS,
FormDuration(10, PS_SINGLE, 100), 0, 0, SIZE_CHARACTER, 10,
0, 0, 0, true, 20, true, 22,
SPWPN_NORMAL, RED, "", { "hit", "slash", "slice", "shred" },
FC_DEFAULT, FC_DEFAULT, FC_DEFAULT, true, true,
"", 0, "scythe-like blade", "", "", ""
},
{
transformation::statue, MONS_STATUE, "Statue", "statue-form", "statue",
"a stone statue.",
EQF_STATUE, MR_RES_ELEC | MR_RES_NEG | MR_RES_PETRIFY,
DEFAULT_DURATION, 0, 0, SIZE_CHARACTER, 13,
20, 12, 0, true, 0, true, 12,
SPWPN_NORMAL, LIGHTGREY, "", DEFAULT_VERBS,
FC_DEFAULT, FC_FORBID, FC_FORBID, false, true,
"", 0, "", "", "place yourself before", "stone"
},
{
transformation::ice_beast, MONS_ICE_BEAST, "Ice", "ice-form", "ice",
"a creature of crystalline ice.",
EQF_PHYSICAL, MR_RES_POISON | MR_VUL_FIRE | mrd(MR_RES_COLD, 3),
FormDuration(30, PS_DOUBLE, 100), 0, 0, SIZE_LARGE, 12,
5, 7, 0, true, 0, true, 12,
SPWPN_FREEZING, WHITE, "", DEFAULT_VERBS,
FC_DEFAULT, FC_ENABLE, FC_FORBID, true, false,
"", 0, "front paw", "paw", "bow your head before", "ice"
},
{
transformation::dragon, MONS_PROGRAM_BUG, "Dragon", "dragon-form", "dragon",
"a fearsome dragon!",
EQF_PHYSICAL, MR_RES_POISON,
DEFAULT_DURATION, 10, 0, SIZE_GIANT, 15,
16, 0, 0, true, 0, true, 32,
SPWPN_NORMAL, GREEN, "Teeth and claws", { "hit", "claw", "bite", "maul" },
FC_ENABLE, FC_FORBID, FC_ENABLE, true, false,
"roar", 6, "foreclaw", "", "bow your head before", "flesh"
},
{
transformation::lich, MONS_LICH, "Lich", "lich-form", "lich",
"a lich.",
EQF_NONE, MR_RES_COLD | mrd(MR_RES_NEG, 3),
DEFAULT_DURATION, 0, 0, SIZE_CHARACTER, 10,
6, 0, 0, true, 0, true, 5,
SPWPN_DRAINING, MAGENTA, "", DEFAULT_VERBS,
FC_DEFAULT, FC_DEFAULT, FC_FORBID, false, true,
"", 0, "", "", "", "bone"
},
{
transformation::bat, MONS_PROGRAM_BUG, "Bat", "bat-form", "bat",
"",
EQF_PHYSICAL | EQF_RINGS, MR_NO_FLAGS,
DEFAULT_DURATION, 0, 5, SIZE_TINY, 10,
0, 0, 0, false, 0, true, 1,
SPWPN_NORMAL, LIGHTGREY, "Teeth", ANIMAL_VERBS,
FC_ENABLE, FC_FORBID, FC_ENABLE, true, false,
"squeak", -8, "foreclaw", "", "perch on", "flesh"
},
{
transformation::pig, MONS_HOG, "Pig", "pig-form", "pig",
"a filthy swine.",
EQF_PHYSICAL | EQF_RINGS, MR_NO_FLAGS,
BAD_DURATION, 0, 0, SIZE_SMALL, 10,
0, 0, 0, false, 0, false, 3,
SPWPN_NORMAL, LIGHTGREY, "Teeth", ANIMAL_VERBS,
FC_DEFAULT, FC_FORBID, FC_ENABLE, true, false,
"squeal", 0, "front trotter", "trotter", "bow your head before", "flesh"
},
{
transformation::appendage, MONS_PLAYER, "App", "appendages", "appendages",
"",
EQF_HEAD_FOOT, MR_NO_FLAGS,
FormDuration(10, PS_DOUBLE, 60), 0, 0, SIZE_CHARACTER, 10,
0, 0, 0, true, 0, false, 3,
SPWPN_NORMAL, LIGHTGREY, "", DEFAULT_VERBS,
FC_DEFAULT, FC_DEFAULT, FC_DEFAULT, true, true,
"", 0, "", "", "", ""
},
{
transformation::tree, MONS_ANIMATED_TREE, "Tree", "tree-form", "tree",
"a tree.",
EQF_LEAR | SLOTF(EQ_CLOAK), MR_RES_POISON | mrd(MR_RES_NEG, 3),
BAD_DURATION, 0, 0, SIZE_CHARACTER, 15,
20, 0, 50, true, 0, true, 12,
SPWPN_NORMAL, BROWN, "Branches", { "hit", "smack", "pummel", "thrash" },
FC_FORBID, FC_FORBID, FC_FORBID, false, false,
"creak", 0, "branch", "root", "sway towards", "wood"
},
#if TAG_MAJOR_VERSION == 34
{
transformation::porcupine, MONS_PORCUPINE, "Porc", "porcupine-form", "porcupine",
"a spiny porcupine.",
EQF_ALL, MR_NO_FLAGS,
BAD_DURATION, 0, 0, SIZE_TINY, 10,
0, 0, 0, false, 0, false, 3,
SPWPN_NORMAL, LIGHTGREY, "Teeth", ANIMAL_VERBS,
FC_DEFAULT, FC_FORBID, FC_ENABLE, true, false,
"squeak", -8, "front leg", "", "curl into a sanctuary of spikes before", "flesh"
},
#endif
{
transformation::wisp, MONS_INSUBSTANTIAL_WISP, "Wisp", "wisp-form", "wisp",
"an insubstantial wisp.",
EQF_ALL, mrd(MR_RES_FIRE, 2) | mrd(MR_RES_COLD, 2) | MR_RES_ELEC
| MR_RES_STICKY_FLAME | mrd(MR_RES_NEG, 3) | MR_RES_ACID
| MR_RES_PETRIFY,
BAD_DURATION, 0, 0, SIZE_TINY, 10,
5, 0, 50, false, 0, true, 5,
SPWPN_NORMAL, LIGHTGREY, "Misty tendrils", { "touch", "touch",
"engulf", "engulf" },
FC_ENABLE, FC_FORBID, FC_FORBID, false, false,
"whoosh", -8, "misty tendril", "strand", "swirl around", "vapour"
},
#if TAG_MAJOR_VERSION == 34
{
transformation::jelly, MONS_JELLY, "Jelly", "jelly-form", "jelly",
"a lump of jelly.",
EQF_PHYSICAL | EQF_RINGS, MR_NO_FLAGS,
BAD_DURATION, 0, 0, SIZE_CHARACTER, 10,
0, 0, 0, false, 0, false, 3,
SPWPN_NORMAL, LIGHTGREY, "", DEFAULT_VERBS,
FC_DEFAULT, FC_FORBID, FC_FORBID, false, false,
"", 0, "", "", "", ""
},
#endif
{
transformation::fungus, MONS_WANDERING_MUSHROOM, "Fungus", "fungus-form", "fungus",
"a sentient fungus.",
EQF_PHYSICAL, MR_RES_POISON | mrd(MR_RES_NEG, 3),
BAD_DURATION, 0, 0, SIZE_TINY, 10,
12, 0, 0, false, 0, true, 12,
SPWPN_CONFUSE, BROWN, "Spores", FormAttackVerbs("release spores at"),
FC_DEFAULT, FC_FORBID, FC_FORBID, false, false,
"sporulate", -8, "hypha", "", "release spores on", "flesh"
},
{
transformation::shadow, MONS_PLAYER_SHADOW, "Shadow", "shadow-form", "shadow",
"a swirling mass of dark shadows.",
EQF_NONE, mrd(MR_RES_POISON, 3) | mrd(MR_RES_NEG, 3) | MR_RES_MIASMA
| MR_RES_PETRIFY,
DEFAULT_DURATION, 0, 0, SIZE_CHARACTER, 10,
0, 0, 0, true, 0, false, 3,
SPWPN_NORMAL, MAGENTA, "", DEFAULT_VERBS,
FC_DEFAULT, FC_FORBID, FC_FORBID, true, true,
"", 0, "", "", "", "shadow"
},
{
transformation::hydra, MONS_HYDRA, "Hydra", "hydra-form", "hydra",
"",
EQF_PHYSICAL, MR_RES_POISON,
DEFAULT_DURATION, 0, 0, SIZE_BIG, 13,
6, 5, 0, true, 0, true, -1,
SPWPN_NORMAL, GREEN, "", { "nip at", "bite", "gouge", "chomp" },
FC_DEFAULT, FC_ENABLE, FC_ENABLE, true, false,
"roar", 4, "foreclaw", "", "bow your heads before", "flesh"
}
};
COMPILE_CHECK(ARRAYSZ(formdata) == NUM_TRANSFORMS);