File: test.des

package info (click to toggle)
crawl 2%3A0.34.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100,188 kB
  • sloc: cpp: 363,709; ansic: 27,765; javascript: 9,516; python: 8,463; perl: 3,293; java: 3,132; xml: 2,380; makefile: 1,835; sh: 611; objc: 250; cs: 15; sed: 9; lisp: 3
file content (161 lines) | stat: -rw-r--r-- 5,137 bytes parent folder | download | duplicates (2)
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
##############################################################################
# test.des: this is the place for vaults which are meant for use in the
#     wizmode only, for testing various things.
##############################################################################

{{
function pressure_test_stepped(data, triggerable, triggerer, marker, ev)
  crawl.mpr("trap triggered")
  if data.triggered == true then
    return
  end
  local victname
  local m = dgn.mons_at(marker:pos())
  if (m ~= nil) then
    victname = m.name
  else
    victname = "you"
  end
  data.triggered = true
  crawl.mpr("trap sprung by " .. victname)
end
}}

default-depth: Zot:27

NAME:   feat_test
WEIGHT: 0
KFEAT:  d = open_sea
KFEAT:  K = endless_lava
KFEAT:  L = iron_grate
KFEAT:  1 = altar_zin
KFEAT:  2 = altar_the_shining_one
KFEAT:  3 = altar_kikubaaqudgha
KFEAT:  4 = altar_yredelemnul
KFEAT:  5 = altar_xom
KFEAT:  6 = altar_vehumet
KFEAT:  7 = altar_okawaru
KFEAT:  8 = altar_makhleb
KFEAT:  9 = altar_sif_muna
KFEAT:  0 = altar_trog
KFEAT:  B = altar_nemelex_xobeh
KFEAT:  C = altar_elyvilon
KFEAT:  D = altar_lugonu
KFEAT:  E = altar_beogh
KFEAT:  F = altar_jiyva
KFEAT:  H = altar_fedhas
KFEAT:  J = altar_cheibriados
MAP
............
.xXcmnovbat.
............
.wWldKLA....
............
.<([{}])>...
............
.IGTUVY.....
............
.0123456789.
.BCDEFHJ....
............
ENDMAP

#############################################
# let's put some pressure onto traps
#
NAME:   pressure_test
WEIGHT: 0
KFEAT:  ^ = pressure plate trap
{{
-- need to make it repeated since there may be a monster under the grate
local tm = TriggerableFunction:new{func="pressure_test_stepped",
                                   repeated=true,
                                   data={triggered=false} }
tm:add_triggerer(DgnTriggerer:new{type="pressure_plate"})
lua_marker('^', tm)
}}
MAP
...
.^.
...
ENDMAP

#################################################
# big doors
NAME:   gate_test
WEIGHT: 0
MAP
...........
.+.+.+.+.+.
.+.+.+.+...
.+.+.+...=.
.+.+...=.=.
.+...=.=.=.
...=.=.=.=.
.=.=.=.=.=.
...........
ENDMAP

#################################################
# redefined monster names
#
# Check that all the encounter messages for these monsters are correct, as well
# as their tooltips in tiles mode, and their corpses when you kill them. Also
# check that when you cast Animate Dead (zombies), cast Death Channel (spectral
# things), cast Sculpt Simulacrum (simulacra), or bind souls under Yredelemnul
# (bound souls), all the names of the resulting undead are set properly.
NAME:   redefined_monster_names_test
TAGS:   transparent no_item_gen no_monster_gen no_trap_gen no_rotate no_hmirror no_vmirror
WEIGHT: 0
KMONS:  1 = generate_awake goblin name:gallivanting hp:1 always_corpse n_adj n_des
KMONS:  2 = generate_awake goblin name:non-gallivanting hp:1 always_corpse n_adj n_des n_noc
KMONS:  3 = generate_awake goblin name:grumbler hp:1 always_corpse n_suf n_des
KMONS:  4 = generate_awake goblin name:non-grumbler hp:1 always_corpse n_suf n_des n_noc
KMONS:  5 = generate_awake goblin name:Gudrun hp:1 always_corpse
KMONS:  6 = generate_awake goblin name:non-Gudrun hp:1 always_corpse n_noc
KMONS:  7 = generate_awake goblin name:Gunther hp:1 always_corpse n_rpl
KMONS:  8 = generate_awake goblin name:non-Gunther hp:1 always_corpse n_rpl n_noc
KMONS:  9 = generate_awake goblin name:Goober hp:1 always_corpse n_rpl n_des
KMONS:  0 = generate_awake goblin name:non-Goober hp:1 always_corpse n_rpl n_des n_noc
KMONS:  d = generate_awake goblin name:Grand_Marshal hp:1 always_corpse n_rpl n_the
KMONS:  e = generate_awake goblin name:non-Grand_Marshal hp:1 always_corpse n_rpl n_the n_noc
KMONS:  f = generate_awake goblin name:Grim_One hp:1 always_corpse n_rpl n_the n_des
KMONS:  g = generate_awake goblin name:non-Grim_One hp:1 always_corpse n_rpl n_the n_des n_noc
KMONS:  h = generate_awake goblin name:glob hp:1 always_corpse n_spe
KMONS:  i = generate_awake goblin name:non-glob hp:1 always_corpse n_spe n_noc
KMONS:  j = generate_awake goblin name:gumball hp:1 always_corpse n_spe n_rpl
KMONS:  k = generate_awake goblin name:non-gumball hp:1 always_corpse n_spe n_rpl n_noc
KMONS:  p = generate_awake goblin name:gravel hp:1 always_corpse n_spe n_rpl n_the
KMONS:  q = generate_awake goblin name:non-gravel hp:1 always_corpse n_spe n_rpl n_the n_noc
KMONS:  r = generate_awake goblin name:gremlin hp:1 always_corpse n_spe n_rpl n_the n_des
KMONS:  s = generate_awake goblin name:non-gremlin hp:1 always_corpse n_spe n_rpl n_the n_des n_noc
KMASK:  1234567890defghijkpqrs = opaque
MAP
xxxxxxxx+++xxxxxxxx
x.................x
x.o=o.o=o.o=o.o=o.x
x.o1o.o2o.o3o.o4o.x
x.ooo.ooo.ooo.ooo.x
x.................x
x.o=o.o=o.o=o.o=o.x
x.o5o.o6o.o7o.o8o.x
x.ooo.ooo.ooo.ooo.x
x.................x
x.....o=o.o=o.....x
x.....o9o.o0o.....x
x.....ooo.ooo.....x
x.................x
x.o=o.o=o.o=o.o=o.x
x.odo.oeo.ofo.ogo.x
x.ooo.ooo.ooo.ooo.x
x.................x
x.o=o.o=o.o=o.o=o.x
x.oho.oio.ojo.oko.x
x.ooo.ooo.ooo.ooo.x
x.................x
x.o=o.o=o.o=o.o=o.x
x.opo.oqo.oro.oso.x
x.ooo.ooo.ooo.ooo.x
x.................x
xxxxxxxx+++xxxxxxxx
ENDMAP