File: ambush.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 (266 lines) | stat: -rw-r--r-- 5,921 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
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
### Ambush Vault ###############################################################
#
# A large ambush with several monsters, many potentially OOD. Can appear almost
# anywhere, any number of times.
#
# Number of monsters (and amount of ood) depends on depth and randomness. Ranges
# from 8 to 24 monsters. Very random, middle part is all subvaults.
#
# There is a lair variant that is (mostly) a joke vault; all other variants
# appear no earlier than D:14.
{{
function ambush_stairs(e)
    if you.in_branch("Dis") or you.in_branch("Coc") or you.in_branch("Tar")
       or you.in_branch("Geh") then
        e.nsubst("< = 1:{ / 1:}. / 1:>. / *:.")
    else
        e.nsubst("< = 1:{ / 1:( / 1:[} / 1:>")
    end
end
}}

NAME:     evilmike_ambush
TAGS:     allow_dup transparent no_monster_gen no_descent
DEPTH:    Lair, Depths, !Depths:$, Elf, !Elf:$, Snake, !Snake:$, \
          Dis, !Dis:$, Geh, !Geh:$, Tar, !Tar:$, Coc, !Coc:$, \
          Zot, !Zot:$, Crypt, !Crypt:$
KMONS:    P = bush / scrub nettle w:1
: if you.in_branch("Snake") then
KMONS:    0 = black mamba / naga / salamander
KMONS:    9 = mana viper / anaconda / naga mage
KMONS:    8 = naga ritualist / salamander mystic
KMONS:    & = naga warrior / naga sharpshooter
: elseif you.in_branch("Dis") then
KMONS:    0 = war gargoyle / crystal echidna w:5 / iron dragon draugr w:2
KMONS:    9 = ancient champion / quicksilver elemental / iron dragon
KMONS:    8 = iron giant / iron golem
KMONS:    & = hellion / tormentor / ancient lich
: elseif you.in_branch("Geh") then
KMONS:    0 = hell hog / fire giant w:5 / golden dragon draugr w:2
KMONS:    9 = searing wretch / balrug
KMONS:    8 = hellephant / salamander tyrant w:5
KMONS:    & = hellion / tormentor / brimstone fiend w:5
: elseif you.in_branch("Tar") then
KMONS:    0 = shadow wraith / spectral thing / shadow dragon zombie w:2
KMONS:    9 = eidolon / putrid mouth w:5
KMONS:    8 = undertaker / profane servitor / tainted leviathan w:5
KMONS:    & = tormentor / ancient lich / dread lich
: elseif you.in_branch("Coc") then
KMONS:    0 = simulacrum / frost giant w:5 / ice dragon zombie w:2
KMONS:    9 = azure jelly / wendigo / nargun
KMONS:    8 = shard shrike / caustic shrike simulacrum w:5
KMONS:    & = tormentor / titan
: elseif you.in_branch("Zot") then
KMONS:    0 = white draconian / green draconian / yellow draconian
KMONS:    9 = shadow dragon / draconian monk
KMONS:    8 = death cob / golden dragon / ghost moth w:5
KMONS:    & = curse toe / moth of wrath
: end
SUBVAULT: = : evilmike_ambush_outer
SUBVAULT: - : evilmike_ambush_inner
SUBST:    =- : .
: local x = you.absdepth() - 14 + crawl.random2(12)
: if you.in_branch("Lair") then
SUBST:    0 = PP., 1 = PP., 2 = PP0,  9 = PP0
: elseif x > 17 then
SUBST:    1 = 0, 2 = 8
: elseif x > 11 then
SUBST:    1 = 00., 2 = 89
: elseif x > 5 then
SUBST:    1 = 0., 2 = 9
: else
SUBST:    1 = 0.., 2 = 9.
: end
NSUBST:   8 = 1:&&8 / *:8
MAP
  2...0...9
 ...1...1...
9.0=======0.2
..==-----==..
.1=-------=1.
..=-------=..
0.=-------=.0
..=-------=..
.1=-------=1.
..==-----==..
2.0=======0.9
 ...1...1...
  9...0...2
ENDMAP

# Outer ring subvaults
NAME:   evilmike_ambush_outer_basic
TAGS:   evilmike_ambush_outer allow_dup unrand
WEIGHT: 25
SUBST:  G : Gx..
SUBST:  x : xcbwnm
: if you.in_branch("Dis") then
KFEAT:  G = metal_statue
TILE:   G = dngn_statue_iron
: end
MAP
 ...G...
.G     G.
.       .
.       .
G       G
.       .
.       .
.G     G.
 ...G...
ENDMAP

NAME:    evilmike_ambush_outer_pillars
TAGS:    evilmike_ambush_outer allow_dup unrand
SHUFFLE: x.
SUBST:   x : xxxccvvbmG
: if you.in_branch("Dis") then
KFEAT:  G = metal_statue
TILE:   G = dngn_statue_iron
: end
MAP
 .x.x.x.
.x     x.
x       x
.       .
x       x
.       .
x       x
.x     x.
 .x.x.x.
ENDMAP

NAME:    evilmike_ambush_outer_corners
TAGS:    evilmike_ambush_outer allow_dup unrand
SUBST:   y : x., x : xxxcccvvbm
MAP
 xy...yx
xx     xx
y       y
.       .
.       .
.       .
y       y
xx     xx
 xy...yx
ENDMAP

NAME:    evilmike_ambush_outer_doors
TAGS:    evilmike_ambush_outer allow_dup unrand
WEIGHT:  5
SHUFFLE: +D
SUBST:   D : +x
MAP
 x+D+D+x
xx     xx
+       +
D       D
+       +
D       D
+       +
xx     xx
 x+D+D+x
ENDMAP

# Inner subvaults. Always contains two stairs, with a large chance of having all 3
# In hell always has the upstair, with a chance of downstairs or hatch
NAME:    evilmike_ambush_inner_basic
TAGS:    evilmike_ambush_inner allow_dup
WEIGHT:  25
SHUFFLE: <AB
SUBST:   AB = .
: if you.in_branch("Dis") then
KFEAT:   G = metal_statue
TILE:    G = dngn_statue_iron
: end
: ambush_stairs(_G)
MAP
 ..A..
...<...
...B...
A<BGB<A
...B...
...<...
 ..A..
ENDMAP

NAME:    evilmike_ambush_inner_wall_1
TAGS:    evilmike_ambush_inner allow_dup
WEIGHT:  3
SHUFFLE: AB / {<
SUBST:   { = <
SUBST:   AB = .
SHUFFLE: yxX / "">
SUBST:   " = .
SUBST:   y : x., X = x
SUBST:   x : xxxccvvbmm
SUBST:   > = }>
: ambush_stairs(_G)
MAP
 .....
...y...
...x...
A{.X.<B
...x...
...y...
 .....
ENDMAP

NAME:    evilmike_ambush_inner_wall_2
TAGS:    evilmike_ambush_inner allow_dup
WEIGHT:  3
SHUFFLE: AB / {<
SUBST:   AB = .
SHUFFLE: yxX / ""<
SUBST:   " = .
SUBST:   y : x., X = x
SUBST:   x : xxxccvvbmm
SUBST:   > = }>
: ambush_stairs(_G)
MAP
 .....
..y.y..
..x.x..
A{X>X<B
..x.x..
..y.y..
 .....
ENDMAP

NAME:    evilmike_ambush_inner_pond
TAGS:    evilmike_ambush_inner allow_dup
SUBST:   w : wwwWWlm...
SUBST:   > : >..
: if you.in_branch("Dis") then
KFEAT:   G = metal_statue
TILE:    G = dngn_statue_iron
: elseif you.in_branch("Coc") or you.in_branch("Tar") then
SUBST:   l = w
: elseif you.in_branch("Geh") then
SUBST:   wW = l
: end
: ambush_stairs(_G)
MAP
 .....
..>w<..
.<www>.
.wwGww.
.>www<.
..<w>..
 .....
ENDMAP

NAME:    evilmike_ambush_inner_cross
TAGS:    evilmike_ambush_inner allow_dup
WEIGHT:  5
SUBST:   y : x., z : x., x : xxxccvvbmm
: ambush_stairs(_G)
MAP
 ..y..
...x...
..<x<..
yxxzxxy
..<x<..
...x...
 ..y..
ENDMAP