Debian Codegraph @

lib/gamedata/curse.txt

raw
1 # File: curse.txt
2
3 # name: effect name
4 # type: valid object base
5 # combat: to_hit : to_dam : to_ac
6 # effect: random effect : ? parameter : ? parameter : ? parameter
7 # dice:dice string
8 # expr:dice expression
9 # time: average frequency of random effect
10 # flags: flag | flag | etc.
11 # values: label[value] | label[value] | etc.
12 # msg: text
13 # desc: description
14 # conflict: curse_name
15 # conflict-flags: flag | flag | etc.
16
17 # 'type' appends a kind of object (from object_base.txt) to the kinds which
18 # can be afflicted with the curse.
19
20 # 'combat' sets the adjustments to to-hit, to-damage, and AC for a cursed
21 # object. If not supplied, the adjustments are all zero.
22
23 # 'effect' sets the name of the effect that'll randomly trigger on the cursed
24 # object. The fields are the name of the effect (from src/list-effects.h),
25 # the subtype which is either an index or a name (look at effect_subtype()
26 # in src/effects.c for more information), the radius, and the other parameter.
27 # The effect name is required. The others are optional, and the trailing ones
28 # that are unused can be omitted.
29
30 # 'dice' provides a random value to be used by the effect (for damage, healing,
31 # duration, ...).
32
33 # 'expr' provides an expression for use in the dice value for the effect.
34 # It consists of a code letter (eg B) for the expression, a base function to
35 # use (for example PLAYER_LEVEL), and a sequence of operations to perform on
36 # that base.
37
38 # 'msg' sets the text to display when the curse effect triggers. If there
39 # multiple 'msg' lines for a curse, they'll be concatenated.
40
41 # 'time' sets a random expression. Each time the curse effect happens, that
42 # expression will be reevaluated to determine the number of turns until the
43 # next time the curse effect will happen.
44
45 # 'flags' is for the flags that the cursed object will have. Those flags can
46 # either be object flags (as found in src/list-object-flags.h) or element
47 # flags (IGNORE_ or HATES_ with an element name from src/list-elements.h
48 # appended). As many 'flags' lines may be used as are needed to specify all
49 # of the flags. More than one flag can be set per line: use '|' to separate
50 # one flag from the next.
51
52 # 'values' is for the object modifiers which take a value (stats, resistances,
53 # and so on) that'll be present on the cursed item. Like 'flags', values
54 # are separated by '|' and as many 'values' lines as needed can be used.
55
56 # 'desc' is for the description of the curse. It will be included in the
57 # description of the cursed object when the curse is known. As many 'desc'
58 # lines may be used as are needed to describe the curse.
59
60 # 'conflict' sets the name of a curse that conflicts with this curse.
61 # Two curses that conflict will not both be present on an object. You may
62 # use multiple 'conflict' lines to specify that this curse conflicts with
63 # more than one other curse.
64
65 # 'conflict-flags' lists the object flags (from src/list-object-flags.h) that
66 # conflict with this curse: this curse will not appear on an object that has
67 # one or more of those flags. More than one flag can be included on the line:
68 # separate them with '|', and more than one 'conflicts-flags' lines may be
69 # used to specify all of the conflicting flags.
70
71 name:vulnerability
72 combat:0:0:-50
73 type:cloak
74 type:soft armor
75 type:hard armor
76 type:dragon armor
77 type:shield
78 flags:AGGRAVATE
79 desc:attracts opponents and weakens the defences
80
81 name:teleportation
82 type:helm
83 type:crown
84 type:amulet
85 type:ring
86 effect:TELEPORT
87 dice:40
88 time:d100
89 msg:Space warps around you.
90 desc:randomly makes you teleport
91 conflict:anti-teleportation
92 conflict-flags:NO_TELEPORT
93
94 name:dullness
95 type:helm
96 type:crown
97 values:INT[-5] | WIS[-5]
98 desc:makes you mentally slow
99
100 name:sickliness
101 type:helm
102 type:crown
103 values:STR[-5] | DEX[-5] | CON[-5]
104 desc:makes you frail
105
106 name:enveloping
107 combat:-5:-5:20
108 type:cloak
109 desc:protects you at the expense of free movement
110
111 name:irritation
112 combat:-15:-15:0
113 type:cloak
114 flags:AGGRAVATE
115 desc:annoys monsters and makes it hard for you to hit them
116
117 name:weakness
118 type:gloves
119 values:STR[-10]
120 desc:weakens your grasp
121
122 name:clumsiness
123 type:gloves
124 values:DEX[-10]
125 desc:gives you butterfingers
126
127 name:slowness
128 type:boots
129 values:SPEED[-5]
130 desc:drags at your feet
131
132 name:annoyance
133 type:boots
134 values:SPEED[-10] | STEALTH[-10]
135 flags:AGGRAVATE
136 desc:wakes up and annoys nearby monsters, and delays your escape
137
138 name:poison
139 type:bow
140 type:digger
141 type:hafted
142 type:polearm
143 type:sword
144 type:boots
145 type:gloves
146 type:helm
147 type:crown
148 type:shield
149 type:cloak
150 type:soft armor
151 type:hard armor
152 type:dragon armor
153 type:light
154 type:amulet
155 type:ring
156 effect:TIMED_INC:POISONED
157 dice:10+d10
158 time:1d500
159 desc:poisons you from time to time
160
161 name:siren
162 type:bow
163 type:digger
164 type:hafted
165 type:polearm
166 type:sword
167 type:boots
168 type:gloves
169 type:helm
170 type:crown
171 type:shield
172 type:cloak
173 type:soft armor
174 type:hard armor
175 type:dragon armor
176 type:light
177 type:amulet
178 type:ring
179 effect:WAKE
180 time:100+1d50
181 msg:A horn blares out!
182 desc:occasionally makes a loud noise
183
184 name:hallucination
185 type:bow
186 type:digger
187 type:hafted
188 type:polearm
189 type:sword
190 type:boots
191 type:gloves
192 type:helm
193 type:crown
194 type:shield
195 type:cloak
196 type:soft armor
197 type:hard armor
198 type:dragon armor
199 type:light
200 type:amulet
201 type:ring
202 effect:TIMED_INC:IMAGE
203 dice:10+d10
204 time:1d500
205 desc:makes you hallucinate sometimes
206
207 name:paralysis
208 type:bow
209 type:digger
210 type:hafted
211 type:polearm
212 type:sword
213 type:boots
214 type:gloves
215 type:helm
216 type:crown
217 type:shield
218 type:cloak
219 type:soft armor
220 type:hard armor
221 type:dragon armor
222 type:light
223 type:amulet
224 type:ring
225 effect:TIMED_INC:PARALYZED
226 dice:5+1d5
227 time:1d1000
228 msg:Your equipment grabs you!
229 desc:paralyses you every now and then
230
231 name:dragon summon
232 type:dragon armor
233 effect:SUMMON:DRAGON
234 dice:1
235 time:1d500
236 msg:Your armour lets out a cry...
237 desc:sometimes summons a dragon
238
239 name:demon summon
240 type:digger
241 type:hafted
242 type:polearm
243 type:sword
244 effect:SUMMON:DEMON
245 dice:1
246 time:1d500
247 msg:Your weapon gives out a demonic shriek!
248 desc:occasionally summons a demon
249
250 name:undead summon
251 type:digger
252 type:hafted
253 type:polearm
254 type:sword
255 effect:SUMMON:UNDEAD
256 dice:1
257 time:1d500
258 msg:Your weapon calls beyond the grave!
259 desc:occasionally summons an undead
260
261 name:impair mana recovery
262 type:helm
263 type:crown
264 flags:IMPAIR_MANA
265 conflict-flags:IMPAIR_MANA
266 desc:makes you slow to recover mana
267
268 name:impair hitpoint recovery
269 type:boots
270 type:gloves
271 type:shield
272 type:cloak
273 type:soft armor
274 type:hard armor
275 type:dragon armor
276 flags:IMPAIR_HP
277 conflict-flags:IMPAIR_HP
278 desc:makes you slow to recover hitpoints
279
280 name:cowardice
281 type:amulet
282 type:ring
283 flags:AFRAID
284 conflict-flags:AFRAID | PROT_FEAR
285 desc:makes you too scared to fight
286
287 name:stone
288 type:amulet
289 type:ring
290 effect:TIMED_INC:STONESKIN
291 dice:20+1d20
292 time:1d1000
293 desc:periodically turns your skin to stone
294
295 name:anti-teleportation
296 type:boots
297 type:cloak
298 type:soft armor
299 type:hard armor
300 type:dragon armor
301 type:amulet
302 type:ring
303 flags:NO_TELEPORT
304 desc:prevents you from teleporting
305 conflict:teleportation
306 conflict-flags:NO_TELEPORT
307
308 name:treacherous weapon
309 type:digger
310 type:hafted
311 type:polearm
312 type:sword
313 effect:DAMAGE
314 dice:$B
315 expr:B:WEAPON_DAMAGE:+ 0
316 time:1d200
317 msg:Your weapon turns on you!
318 desc:makes your weapon attack you
319
320 name:burning up
321 type:boots
322 type:gloves
323 type:helm
324 type:crown
325 type:shield
326 type:cloak
327 type:soft armor
328 type:hard armor
329 type:dragon armor
330 values:RES_FIRE[-1] | RES_COLD[1]
331 desc:makes you vulnerable to fire attacks, but resistant to cold
332 conflict:chilled to the bone
333
334 name:chilled to the bone
335 type:boots
336 type:gloves
337 type:helm
338 type:crown
339 type:shield
340 type:cloak
341 type:soft armor
342 type:hard armor
343 type:dragon armor
344 values:RES_FIRE[1] | RES_COLD[-1]
345 desc:makes you vulnerable to cold attacks, but resistant to fire
346 conflict:burning up
347
348 name:steelskin
349 type:digger
350 type:hafted
351 type:polearm
352 type:sword
353 type:helm
354 type:crown
355 type:shield
356 type:hard armor
357 type:dragon armor
358 type:light
359 type:amulet
360 type:ring
361 combat:0:0:20
362 values:RES_ELEC[-1] | RES_SHARD[1]
363 desc:makes your skin harder to damage, but conduct electricity
364
365 name:air swing
366 combat:-20:0:0
367 type:digger
368 type:hafted
369 type:polearm
370 type:sword
371 desc:makes it hard to hit anything
372