summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/duration-data.h
blob: a7d4f5229275477425945799c3716fac54b1fd6c (plain) (blame)
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
/**
 * Status defaults for durations.
 *
 * "" for an entry means N/A, either because it is not shown in the
 * relevant place, or because it is shown in a more complicated way.
 * A "" for name_text indicates that the name is the same as the
 * short text.
 *
 * Examples:
 *
 * DUR_FORESTED has "" for the short_text entry, and therefore has no
 * entry on the "@:" line.
 *
 * DUR_QAZLAL_AC has "" for the light_text entry, and therefore has no
 * status light (instead showing the AC bonus by coloring the player's
 * AC blue).
 */
struct duration_def
{
    duration_type dur;
    bool expire;         ///< Whether to do automatic expiration colouring.
    int    light_colour; ///< Base colour for status light.
    const char *light_text; ///< Text for the status light.
    const char *short_text; ///< Text for @ line on the % screen and morgues.
                            ///< Usually an adjective.
    const char *name_text;  ///< Text used in wizmode &^D. If empty, use the
                            ///< short_text.
    const char *long_text;  ///< Text for the @ message.

    /// Return the name of the duration (name_text or short_text). */
    const char *name() const
    {
        return name_text[0] ? name_text : short_text;
    }
};

static const duration_def duration_data[] =
{
    { DUR_AGILITY,
      false, LIGHTBLUE, "Agi",
      "agile", "agility",
      "You are agile." },
    { DUR_ANTIMAGIC,
      true, RED, "-Mag",
      "antimagic", "",
      "You have trouble accessing your magic." },
    { DUR_BERSERK,
      true, BLUE, "Berserk",
      "berserking", "berserker",
      "You are possessed by a berserker rage." },
    { DUR_BREATH_WEAPON,
      false, YELLOW, "Breath",
      "short of breath", "breath weapon",
      "You are short of breath." },
    { DUR_BRILLIANCE,
      false, LIGHTBLUE, "Brill",
      "brilliant", "brilliance",
      "You are brilliant." },
    { DUR_CONF,
      false, RED, "Conf",
      "confused", "conf",
      "You are confused." },
    { DUR_CONFUSING_TOUCH,
      true, BLUE, "Touch",
      "confusing touch", "",
      "" },
    { DUR_CONTROL_TELEPORT,
      true, MAGENTA, "cTele",
      "controlling teleports", "control teleport",
      "You can control teleportations." },
    { DUR_CORONA,
      false, YELLOW, "Corona",
      "", "corona",
      "" },
    { DUR_DEATH_CHANNEL,
      true, MAGENTA, "DChan",
      "death channel", "",
      "You are channeling the dead." },
    { DUR_DIVINE_STAMINA,
      true, WHITE, "Vit",
      "vitalised", "divine stamina",
      "You are divinely vitalised." },
    { DUR_DIVINE_VIGOUR,
      false, 0, "",
      "divinely vigorous", "divine vigour",
      "You are imbued with divine vigour." },
    { DUR_EXHAUSTED,
      false, YELLOW, "Exh",
      "exhausted", "",
      "You are exhausted." },
    { DUR_FIRE_SHIELD,
      true, BLUE, "RoF",
      "immune to fire clouds", "fire shield",
      "" },
    { DUR_ICY_ARMOUR,
      true, 0, "",
      "icy armour", "",
      "You are protected by a layer of icy armour." },
    { DUR_LIQUID_FLAMES,
      false, RED, "Fire",
      "liquid flames", "",
      "You are covered in liquid flames." },
    { DUR_LOWERED_MR,
      false, RED, "-MR",
      "vulnerable", "lowered mr",
      "" },
    { DUR_MAGIC_SHIELD,
      false, 0, "",
      "shielded", "magic shield",
      "" },
    { DUR_MIGHT,
      false, LIGHTBLUE, "Might",
      "mighty", "might",
      "You are mighty." },
    { DUR_PARALYSIS,
      false, RED, "Para",
      "paralysed", "paralysis",
      "You are paralysed." },
    { DUR_PETRIFIED,
      false, RED, "Stone",
      "petrified", "",
      "You are petrified." },
    { DUR_PETRIFYING,
      true, LIGHTRED, "Petr",
      "petrifying", "",
      "You are turning to stone." },
    { DUR_RESISTANCE,
      true, BLUE, "Resist",
      "resistant", "resistance",
      "You resist elements." },
    { DUR_SLIMIFY,
      true, GREEN, "Slime",
      "slimy", "slimify",
      "" },
    { DUR_SLEEP,
      false, 0, "",
      "sleeping", "sleep",
      "You are sleeping." },
    { DUR_STONESKIN,
      false, 0, "",
      "stone skin", "stoneskin",
      "Your skin is tough as stone." },
    { DUR_SWIFTNESS,
      true, BLUE, "Swift",
      "swift", "swiftness",
      "You can move swiftly." },
    { DUR_TELEPATHY,
      false, LIGHTBLUE, "Emp",
      "empathic", "telepathy",
      "" },
    { DUR_TELEPORT,
      false, LIGHTBLUE, "Tele",
      "about to teleport", "teleport",
      "You are about to teleport." },
    { DUR_DEATHS_DOOR,
      true, LIGHTGREY, "DDoor",
      "death's door", "deaths door",
      "" },
    { DUR_PHASE_SHIFT,
      true, 0, "",
      "phasing", "phase shift",
      "You are out of phase with the material plane." },
    { DUR_QUAD_DAMAGE,
      true, BLUE, "Quad",
      "quad damage", "",
      "" },
    { DUR_SILENCE,
      true, MAGENTA, "Sil",
      "silence", "",
      "You radiate silence." },
    { DUR_STEALTH,
      false, BLUE, "Stealth",
      "especially stealthy", "stealth",
      "" },
    { DUR_AFRAID,
      true, RED, "Fear",
      "afraid", "",
      "You are terrified." },
    { DUR_MIRROR_DAMAGE,
      false, WHITE, "Mirror",
      "injury mirror", "mirror damage",
      "You mirror injuries." },
    { DUR_SCRYING,
      false, WHITE, "Scry",
      "scrying", "",
      "Your astral vision lets you see through walls." },
    { DUR_TORNADO,
      true, LIGHTGREY, "Tornado",
      "tornado", "",
      "You are in the eye of a mighty hurricane." },
    { DUR_LIQUEFYING,
      false, LIGHTBLUE, "Liquid",
      "liquefying", "",
      "The ground has become liquefied beneath your feet." },
    { DUR_HEROISM,
      false, LIGHTBLUE, "Hero",
      "heroism", "",
      "You possess the skills of a mighty hero." },
    { DUR_FINESSE,
      false, LIGHTBLUE, "Finesse",
      "finesse", "",
      "Your blows are lightning fast." },
    { DUR_LIFESAVING,
      true, LIGHTGREY, "Prot",
      "protection", "lifesaving",
      "You are calling for your life to be saved." },
    { DUR_DARKNESS,
      true, BLUE, "Dark",
      "darkness", "",
      "You emit darkness." },
    { DUR_SHROUD_OF_GOLUBRIA,
      true, BLUE, "Shroud",
      "shrouded", "",
      "You are protected by a distorting shroud." },
    { DUR_TORNADO_COOLDOWN,
      false, YELLOW, "Tornado",
      "", "tornado cooldown",
      "" },
    { DUR_DISJUNCTION,
      true, BLUE, "Disjoin",
      "disjoining", "disjunction",
      "You are disjoining your surroundings." },
    { DUR_SENTINEL_MARK,
      true, LIGHTRED, "Mark",
      "marked", "sentinel's mark",
      "A sentinel's mark is revealing your location to enemies." },
    { DUR_INFUSION,
      true, BLUE, "Infus",
      "infused", "",
      "Your attacks are magically infused." },
    { DUR_SONG_OF_SLAYING,
      true, BLUE, "Slay",
      "singing", "song of slaying",
      "Your melee attacks are strengthened by your song." },
    { DUR_FLAYED,
      true, RED, "Flay",
      "flayed", "",
      "You are covered in terrible wounds." },
    { DUR_WEAK,
      false, RED, "Weak",
      "weakened", "weak",
      "Your attacks are enfeebled." },
    { DUR_DIMENSION_ANCHOR,
      false, RED, "-Tele",
      "cannot translocate", "dimension anchor",
      "You are firmly anchored to this plane." },
    { DUR_TOXIC_RADIANCE,
      false, MAGENTA, "Toxic",
      "radiating poison", "toxic radiance",
      "You are radiating toxic energy." },
    { DUR_RECITE,
      false, WHITE, "Recite",
      "reciting", "",
      "You are reciting Zin's Axioms of Law." },
    { DUR_GRASPING_ROOTS,
      false, BROWN, "Roots",
      "grasped by roots", "grasping roots",
      "Your movement is impeded by grasping roots." },
    { DUR_FIRE_VULN,
      false, RED, "-rF",
      "fire vulnerable", "fire vulnerability",
      "You are more vulnerable to fire." },
    { DUR_BARBS,
      false, RED, "Barbs",
      "manticore barbs", "",
      "Manticore spikes are embedded in your body." },
    { DUR_POISON_VULN,
      false, RED, "-rP",
      "poison vulnerable", "poison vulnerability",
      "You are more vulnerable to poison." },
    { DUR_FROZEN,
      false, RED, "Frozen",
      "frozen", "",
      "You are partly encased in ice." },
    { DUR_SAP_MAGIC,
      false, RED, "Sap",
      "sap magic", "",
      "Casting spells hinders your spell success." },
    { DUR_PORTAL_PROJECTILE,
      false, LIGHTBLUE, "PProj",
      "portal projectile", "",
      "You are teleporting projectiles to their destination." },
    { DUR_FORESTED,
      false, GREEN, "Forest",
      "", "forested",
      "" },
    { DUR_DRAGON_CALL,
      false, WHITE, "Dragoncall",
      "dragon's call", "dragon call",
      "You are beckoning forth a horde of dragons." },
    { DUR_DRAGON_CALL_COOLDOWN,
      false, YELLOW, "Dragoncall",
      "", "dragon call cooldown",
      "" },
    { DUR_ABJURATION_AURA,
      false, BLUE, "Abj",
      "aura of abjuration", "",
      "You are abjuring all hostile summons around you." },
    { DUR_NO_POTIONS,
      false, RED, "-Potion",
      "no potions", "",
      "You cannot drink potions." },
    { DUR_QAZLAL_FIRE_RES,
      false, LIGHTBLUE, "rF+",
      "protected from fire", "qazlal fire resistance",
      "Qazlal is protecting you from fire." },
    { DUR_QAZLAL_COLD_RES,
      false, LIGHTBLUE, "rC+",
      "protected from cold", "qazlal cold resistance",
      "Qazlal is protecting you from cold." },
    { DUR_QAZLAL_ELEC_RES,
      false, LIGHTBLUE, "rElec+",
      "protected from electricity", "qazlal elec resistance",
      "Qazlal is protecting you from electricity." },
    { DUR_QAZLAL_AC,
      false, LIGHTBLUE, "",
      "protected from physical damage", "qazlal ac",
      "Qazlal is protecting you from physical damage." },
    { DUR_CORROSION,
      false, RED, "Corr",
      "corroded equipment", "corrosion",
      "Your equipment is corroded." },
    { DUR_FORTITUDE,
      false, LIGHTBLUE, "Fort",
      "immense fortitude", "",
      "You have immense fortitude and shrug off injury." },
    { DUR_CONDENSATION_SHIELD,
      false, 0, "",
      "icy shield", "",
      "You are shielded by a disc of ice." },
    { DUR_DIVINE_SHIELD,
      false, 0, "",
      "divine shield", "",
      "You are shielded by the power of the Shining One." },

    // The following are visible in wizmode only, or are handled
    // specially in the status lights and/or the % or @ screens.

    { DUR_INVIS, false, 0, "", "", "invis", "" },
    { DUR_SLOW, false, 0, "", "", "slow", "" },
    { DUR_MESMERISED, false, 0, "", "", "mesmerised", "" },
    { DUR_MESMERISE_IMMUNE, false, 0, "", "", "mesmerisation immunity", "" },
    { DUR_HASTE, false, 0, "", "", "haste", "" },
    { DUR_FLIGHT, false, 0, "", "", "flight", "" },
    { DUR_POISONING, false, 0, "", "", "poisoning", "" },
    { DUR_SURE_BLADE, false, 0, "", "", "sure blade", "" },
    { DUR_PIETY_POOL, false, 0, "", "", "piety pool", "" },
    { DUR_REGENERATION, false, 0, "", "", "regeneration", "" },
    { DUR_TRANSFORMATION, false, 0, "", "", "transformation", "" },
    { DUR_WEAPON_BRAND, false, 0, "", "", "weapon brand", "" },
    { DUR_DEMONIC_GUARDIAN, false, 0, "", "", "demonic guardian", "" },
    { DUR_POWERED_BY_DEATH, false, 0, "", "", "pbd", "" },
    { DUR_GOURMAND, false, 0, "", "", "gourmand", "" },
    { DUR_REPEL_STAIRS_MOVE, false, 0, "", "", "repel stairs move", "" },
    { DUR_REPEL_STAIRS_CLIMB, false, 0, "", "", "repel stairs climb", "" },
    { DUR_COLOUR_SMOKE_TRAIL, false, 0, "", "", "coloured smoke trail", "" },
    { DUR_TIME_STEP, false, 0, "", "", "time step", "" },
    { DUR_ICEMAIL_DEPLETED, false, 0, "", "", "icemail depleted", "" },
    { DUR_PARALYSIS_IMMUNITY, false, 0, "", "", "paralysis immunity", "" },
    { DUR_VEHUMET_GIFT, false, 0, "", "", "vehumet gift", "" },
    { DUR_SICKENING, false, 0, "", "", "sickening", "" },
    { DUR_WATER_HOLD, false, 0, "", "", "drowning", "" },
    { DUR_WATER_HOLD_IMMUNITY, false, 0, "", "", "drowning immunity", "" },
    { DUR_SLEEP_IMMUNITY, false, 0, "", "", "sleep immunity", "" },
    { DUR_ELIXIR_HEALTH, false, 0, "", "", "elixir health", "" },
    { DUR_ELIXIR_MAGIC, false, 0, "", "", "elixir magic", "" },
    { DUR_TROGS_HAND, false, 0, "", "", "trogs hand", "" },
    { DUR_MAGIC_SAPPED, false, 0, "", "", "magic sapped", "" },

#if TAG_MAJOR_VERSION == 34
    // And removed ones
    { DUR_REPEL_MISSILES, false, 0, "", "", "old repel missiles", "" },
    { DUR_DEFLECT_MISSILES, false, 0, "", "", "old deflect missiles", "" },
    { DUR_JELLY_PRAYER, false, 0, "", "", "old jelly prayer", "" },
    { DUR_CONTROLLED_FLIGHT, false, 0, "", "", "old controlled flight", "" },
    { DUR_SEE_INVISIBLE, false, 0, "", "", "old see invisible", "" },
    { DUR_INSULATION, false, 0, "", "", "old insulation", "" },
    { DUR_BARGAIN, false, 0, "", "", "old bargain", "" },
    { DUR_SLAYING, false, 0, "", "", "old slaying", "" },
    { DUR_MISLED, false, 0, "", "", "old misled", "" },
    { DUR_NAUSEA, false, 0, "", "", "old nausea", "" },
    { DUR_TEMP_MUTATIONS, false, 0, "", "", "old temporary mutations", "" },
    { DUR_BATTLESPHERE, false, 0, "", "", "old battlesphere", "" },
    { DUR_RETCHING, false, 0, "", "", "old retching", "" },
    { DUR_SPIRIT_HOWL, false, 0, "", "", "old spirit howl", "" },
    { DUR_SONG_OF_SHIELDING, false, 0, "", "", "old song of shielding", "" },
    { DUR_ANTENNAE_EXTEND, false, 0, "", "", "old antennae extend", "" },
    { DUR_AMBROSIA, false, 0, "", "", "old ambrosia", "" },
    { DUR_BUILDING_RAGE, false, 0, "", "", "old building rage", "" },
#endif
};