Debian Codegraph @

lib/gamedata/chest_trap.txt

raw
1 # File: chest_trap.txt
2
3 # This file contains chest trap definitions
4
5 ### Understanding chest_trap.txt ###
6
7 # name: name
8 # code: code to indicate the trap's presence (see chest.txt)
9 # level: minimum object level of chest for this trap to appear on
10 # The maximum for this should be less than the maximum value for the
11 # level of a chest in object.txt (currently 55).
12 # effect: trap effect : ? subtype : ? radius : ? extra parameter
13 # dice: dice string for effect
14 # expr: dice expression for effect
15 # destroy: 1 if the chest is destroyed
16 # magic: 1 if the trap is magical (as opposed to physical)
17 # msg: activation message
18 # This is shown to the user when the trap is triggered.
19 # msg-death: death message
20 # This is shown to the user if the trap kills the character.
21
22 # The traps in this file should follow these rules:
23 # 1. The first entry should be the "no trap";
24 # 2. Traps should appear in ascending order of level;
25 # 3. There should be no more than 14 traps total.
26
27 # Current disarming difficulty calculations depend on there being six types
28 # of trap; if there are more than six, those calculations will need to change.
29
30 name:locked
31 code:NO_TRAP
32 level:1
33
34 name:gas trap
35 code:POISON
36 level:1
37 effect:TIMED_INC:POISONED
38 dice:10+d20
39 msg:A puff of green gas surrounds you!
40
41 name:poison needle
42 code:LOSE_STR
43 level:2
44 effect:DAMAGE
45 dice:1d4
46 effect:DRAIN_STAT:STR
47 msg:A small needle has pricked you!
48 msg-death:a poison needle
49
50 name:poison needle
51 code:LOSE_CON
52 level:3
53 effect:DAMAGE
54 dice:1d4
55 effect:DRAIN_STAT:CON
56 msg:A small needle has pricked you!
57 msg-death:a poison needle
58
59 name:summoning runes
60 code:SUMMON
61 level:15
62 effect:SUMMON:ANY
63 dice:2+1d3
64 magic:1
65 msg:You are enveloped in a cloud of smoke!
66
67 name:gas trap
68 code:PARALYZE
69 level:19
70 effect:TIMED_INC:PARALYZED
71 dice:10+d20
72 msg:A puff of yellow gas surrounds you!
73
74 name:explosion device
75 code:EXPLODE
76 level:25
77 effect:DAMAGE
78 dice:5d8
79 destroy:1
80 msg:There is a sudden explosion! Everything inside the chest is destroyed!
81 msg-death:an exploding chest