###############################################################################
# depths_encompass.des: Full level (encompassing) vaults for the Depths go here.
###############################################################################

# Setups for the below.
{{
    function grunt_profane_halls_setup(e)
        if you.where() == dgn.level_name(dgn.br_entrance("Zot")) then
            e.kmons('1 = base draconian / nothing w:25')
            e.kmons('2 = nonbase draconian / base draconian w:20')
            e.kmons('3 = draconian stormcaller / draconian monk w:2')
        else
            e.kmons('1 = tengu warrior / tengu conjurer / '
                    .. 'glowing orange brain / spriggan berserker w:5 / '
                    .. 'spriggan air mage w:5 / deep elf demonologist w:5 / '
                    .. 'nothing w:68')
            e.kmons('2 = spriggan berserker / tengu warrior w:20')
            e.kmons('3 = deep elf high priest')
        end
        e.subst('% = * %:20 .')
        e.lua_marker(':', fog_machine { cloud_type = "flame",
                                        pow_min = 10, pow_max = 10, delay = 10,
                                        size = 1, spread_rate = 0,
                                        walk_dist = 0, excl_rad = 0 })
    end

    function radiant_caverns_setup(e)
        e.weight("5")
        e.mons("raiju band / spriggan air mage band / titan w:5 / " ..
               "storm dragon w:5 / shock serpent w:5 / " ..
               "blizzard demon w:15")
        e.mons("w:20 obsidian statue / w:1 orange crystal statue")
        e.mons("glowing shapeshifter")
        e.mons("very ugly thing / ugly thing w:5")
        e.mons("ball lightning")
        e.mons("crystal guardian")
        e.kmons("8 = dancing weapon")
        e.kmons("9 = war gargoyle")
        e.kmons("0 = glowing shapeshifter hd:15")
        e.kmons("EW = water elemental")
        e.kmons("e = earth elemental")
        e.kmons("f = fire elemental")
        e.kmons("a = air elemental")
        e.kmons("o = iron golem")
        e.kmons("r = war gargoyle / molten gargoyle / nothing w:20")
        e.kmons("t = glowing orange brain / wind drake w:5")
        e.kfeat("A = stone_arch")
        e.kfeat("W = deep_water")
        e.shuffle("wKLMN / lghij")
        e.shuffle("KLMN")
        e.shuffle("ghij")
        e.shuffle("JH")
        e.shuffle("34")
        e.kitem("p = potion of mutation ident:type")
        e.kitem("P = any jewellery good_item")
        e.kitem("Q = potion of mutation ident:type")
        e.kitem("R = potion of mutation ident:type / nothing")
        e.nsubst("u = 2:Q / 1:P / 1:R / *:u")
        e.nsubst("G = 1:G / *:2")
        e.nsubst("H = 2:8 / 2:3")
        e.nsubst("J = 2:3 / 2:4")
        e.nsubst("w = 4:W / *:w")
        e.nsubst("1 = 3:1 / *:.")
        e.subst("s = ..$*p|")
        e.subst("u = ..$||")
        e.subst("3 = 3.")
        e.subst("5 = 5 .:4")
        e.subst("g = E:30 3 .:30")
        e.subst("h = a:30 3 .:30")
        e.subst("K = r:20 f e:40 .:70")
        e.subst("iL = e.")
        e.subst("jM = 79 o:1 .:21")
        e.subst("m = 4:15 .:25")
        e.subst("N = ef..")
        e.subst("n = 0 8:5 .:25")
        e.subst("q = 379e")
        e.subst("S = r:20 9:1 .:21")
        e.subst("t = 5fa t:20 .:75")
        e.subst("y = 0:20 78")
        e.subst("z = 7 8:30")
        e.subst("x = x:595 b:405")
        e.marker("A = lua:props_marker { portal=1 }")
        e.tile("G = depths_column")
        e.lfloortile("floor_depthstone")
        e.set_random_mon_list(
            "glowing shapeshifter w:100 / air elemental / water elemental / " ..
            "earth elemental / crystal guardian / molten gargoyle / " ..
            "war gargoyle / dancing weapon / very ugly thing band")
    end

    function hex_setup(e)
        e.tags("hex_subvault unrand no_rotate no_monster_gen no_item_gen")

        local set_weight = crawl.random2(14)
        if set_weight == 1 then
            e.mons("ogre mage band / ironbound thunderhulk / ettin / "..
                   "stone giant w:5")
            e.mons("fire giant / frost giant / stone giant")
            e.mons("titan / juggernaut / iron giant w:3")
            e.kfeat("A = granite_statue")
            e.kfeat("B = stone_arch")
            e.subst("x = c")
        elseif set_weight == 2 then
            e.mons("deep elf zephyrmancer / deep elf knight / deep elf archer")
            e.mons("deep elf high priest / deep elf elementalist / " ..
                   "deep elf demonologist / deep elf death mage")
            e.mons("deep elf annihilator / deep elf blademaster / "..
                   "deep elf master archer / deep elf sorcerer")
            e.kfeat("A = fountain_blue")
            e.kfeat("B = fountain_sparkling")
        elseif set_weight == 3 then
            e.mons("any common demon / raiju / demonic crawler")
            e.mons("rakshasa / hell hog / greater demon w:5")
            e.mons("ice fiend / brimstone fiend / hell sentinel / " ..
                   "tzitzimitl / greater demon w:200")
            e.subst("A : ....l")
            e.subst("B = Y")
        elseif set_weight == 4 then
            e.mons("zombie / simulacrum / spectral thing / freezing wraith")
            e.mons("vampire mage / jiangshi / ghoul / ancient champion / " ..
                   "flayed ghost / vampire knight / mummy priest w:2")
            e.mons("lich / ancient lich / dread lich / royal mummy w:2")
            e.kfeat("A = granite_statue")
            e.subst("B = V")
            e.tile("A = depths_column / depths_crumbled_column")
            e.tile("x = wall_catacombs")
        elseif set_weight == 5 and crawl.one_chance_in(4) then
            e.mons("cherub / apis")
            e.mons("angel / daeva")
            e.mons("ophan / pearl dragon w:5")
            e.kfeat("A : fountain_sparkling")
            e.kfeat("B = altar_zin / altar_the_shining_one / " ..
                        " altar_elyvilon")
            e.subst("x = c")
            e.tile("c = wall_church")
            e.ftile("c.+123AB = floor_limestone")
        elseif set_weight == 6 then
            e.mons("acid dragon / swamp dragon / fire dragon / ice dragon")
            e.mons("storm dragon / shadow dragon / bone dragon")
            e.mons("golden dragon w:15 / quicksilver dragon / iron dragon / " ..
                   "pearl dragon w:1")
            e.subst("+ = ...+")
            e.subst("A = $")
            e.subst("B = $")
        elseif set_weight == 7 then
            e.mons("tengu conjurer / tengu warrior / harpy band w:3 / " ..
                   "wind drake")
            e.mons("tengu reaver")
            e.mons("caustic shrike w:20 / shard shrike")
            e.kfeat("A = iron_grate")
            e.kfeat("B = granite_statue")
        elseif set_weight == 8 then
            e.mons("shock serpent / tengu conjurer / ironbound thunderhulk")
            e.mons("spark wasp / spriggan air mage / blizzard demon")
            e.mons("titan / spark wasp band / storm dragon")
            e.subst("A = v")
            e.subst("B = b")
        elseif set_weight == 9 then
            e.mons("hell knight / hell hog / occultist / molten gargoyle")
            e.mons("fire giant / hell knight band / sun moth / balrug / " ..
                   "salamander tyrant")
            e.mons("hellephant / brimstone fiend w:2")
            e.subst("A = ..l")
            e.subst("B = l")
            e.tile("x = wall_pebble_red")
            e.colour("x123.+ = red")
            e.ftile("x123.+ = floor_volcanic")
        elseif set_weight == 10 then
            e.mons("spriggan rider")
            e.mons("spriggan air mage / spriggan berserker / spriggan defender")
            e.mons("spriggan defender")
            e.kmons("D = the Enchantress")
            e.subst("3 = D3")
            e.subst("A = t")
            e.subst("B = tT")
            e.subst("x:xxxxxxt")
            e.ftile("xtT123D.+ = floor_grass")
            e.colour("xtT123D.+ = green")
        elseif set_weight == 11 then
            e.mons("simulacrum / freezing wraith")
            e.mons("frost giant / ice dragon / blizzard demon / azure jelly")
            e.mons("walking frostbound tome / shard shrike w:4 / ice fiend w:4")
            e.subst("A : ...W")
            e.subst("B = wT")
            e.tile("x = wall_ice")
            e.colour("x+.123 = white")
            e.ftile("xT+.123 = floor_ice")
        elseif set_weight == 12 then
            e.mons("rakshasa / occultist / necromancer")
            e.mons("fenstrider witch / deep troll earth mage / sphinx w:5 / " ..
                   "spriggan air mage / tengu reaver w:5 / vampire mage band")
            e.mons("walking frostbound tome / walking earthen tome / lich / " ..
                   "walking crystal tome / walking divine tome / " ..
                   "ancient lich / dread lich / deep elf annihilator")
            e.subst("A = b")
            e.subst("B = b")
            e.subst("x = c")
            e.tile("c = wall_studio")
        elseif set_weight == 13 then
            e.mons("deep troll / deep troll earth mage / deep troll shaman")
            e.mons("iron troll / crystal guardian / war gargoyle")
            e.mons("walking earthen tome / hell sentinel w:4 / " ..
                   "iron dragon / caustic shrike band / iron giant w:2")
            e.kfeat("A = iron_grate")
            e.kfeat("B = stone_arch")
            e.subst("x:xc")
        else
            e.subst("3 = 8")
            e.subst("2 = 990")
            e.subst("1 = 0")
            e.subst("A = .")
            e.subst("B = B...")
            e.kfeat("B = any shop")
        end
    end
}}

default-depth: Depths:2-, !Depths:$

###############################################################################
# The River Lethe
#
# The two orange statues are placed for maximum pain -- one you're likely to
# first see while flying, the other aided by a glass eye and protective
# plants.
#
# Lemuel
#
NAME:    lemuel_river_lethe
TAGS:    no_rotate no_monster_gen no_item_gen uniq_d_encompass no_descent
ORIENT:  encompass
KITEM:   r = any scroll
KITEM:   e = any / any good_item w:4
KITEM:   DP = potion of experience ident:type / any good_item
KITEM:   E = |
KMONS:   p = plant / fungus w:2
MONS:    spectral thing
MONS:    phantasmal warrior / vampire knight / vampire mage \
         / deep elf death mage
MONS:    iron dragon / war gargoyle
MONS:    spectre place:Depths:4 / simulacrum place:Depths:4
MONS:    eidolon / soul eater / death drake / flayed ghost / shadow dragon w:2
MONS:    ancient lich / dread lich / tzitzimitl
MONS:    orange crystal statue
KMONS:   DE = patrolling glowing orange brain
KMONS:   F = 0 band
KMONS:   H = patrolling water elemental / patrolling spectral place:Depths:4 \
             / patrolling simulacrum place:Depths:4
KMONS:   P = glass eye
SHUFFLE: qr / su / yz / JK, 7N
SUBST:   q = +, syJ = x, N = xw, p = pp.
NSUBST:  L = + / x, M = + / x, u = u / * / %, z = u / %, K = u / %
NSUBST:  . = 12=4 / 2=. / 4=4. / ., ; = 9=2 / 4=2. / .
NSUBST:  . = 13=F / 4=F. / ., w = 6=H / 4=Hw / w
KFEAT:   Du = >
KFEAT:   H = w
MARKER:  O = lua:props_marker { portal=1 }
TILE:    G = depths_crumbled_column
LFLOORTILE: floor_depthstone
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxccccccccccccxxxxxx
xxDE.L$xxxwwwxxxxcccccccccccccccccccccccccccxxxxxxxxcc..p.....Ocxxxxxx
xwEE.L$$Mwwwwxxxxc%.b..+...+..........%c***c;;xxxxx;cc.....p...cxxxxxx
xw..OL$$Mxwwwxxxxc..6..ccccc...........c***c;;;xxx;;cc.p.p...p.cxxxxxx
xww..L$$Mxwwwwxxxc.....cxxxc...........c***c;;;;xx;;;+....Gp..pcxxxxxx
xww..xxxMwwww;xxxc%.}.%cxxxc...........c...c;;;;xx;;cc..pGppp..cxxxxxx
xwww.xxxwww;;;;xxccccccccxxcc+ccc+ccccccc+cc;;;;xx;;cc.pGppp7..cxxxxxx
xwwwxxxwwww;;;;;xxxxxxxxxxxc...c...c.......c;;;;x;;;cc.ppppN..pcxxxxxx
xwwwxxxwwwww;;5;;xxxxxxxxxxc...c...c.w.....c;;;;;;;;cc.pppppp|*cxxxxxx
xwwwxxxwwwww;;;;;;;xxxxxxxxc...+...c.w.....+;;;;;;;;cc..pppP5*.cxxxxxx
xwwwxxxwwww;;5;;;;;;;;xxx;;c...c...c.w.....c;;;;;;;;ccccccccccccxxxxxx
xwwwxxxwww;;;;;;;;;;;;;;;;;cc+ccc+cc..w....c;;;;;;;;;;xxxxxxxxxxxxxxxx
xwwwxxxwww;;;;;;;;;;;;;;;;;+.......+..w....cccc;;;;;;xxxxxxxxxxxxxxxxx
xwwwwxx;ww;;;;;;;;;;;;;;;;;cccc+cccc...w...c$$c;;;;;;;;xxxxxxxxxxxxxxx
xwwwwxx;w;;5;;;;cccc;;;;;;;c.......c...w...c$$c;;;;;;;;;;;xxxxxxxxxxwx
xwwwwxx;;;;;;;;cccccc;;;;;;c.......c+ccwwccc+cc;;;;;;;;;;;;;xxxxxxxxwx
xwwwwxx;;;5;;;cc*2.+;;;;;;;c.......c.c..ww....c;;;;;5;;;;;;;;xxxxxxwwx
xxwwwwx;;;;;;;;cccccc;;;;;;c4%4%4%4c.+...ww...c;;;;;;;;;;;;;;;xxxxxwwx
xxxwwwxx;;;;;;;;cccc;;;;;;;ccccccccc.c...ww...c;;;;;;;;;;;;;;;xxxxxwwx
xxxwwwxx;;;;;;;;;;;;;;;;;;;c$$+....+.c....www.c;;;;;;;ccccccccxxxxxwwx
xxxwwxx;;cccc;;;;;;;;;;;;;;c$$cccccc.c%....wwwc;;;;;;;c.....$$qrrxxwwx
xxxwwwx;cccccc;;;;;;xx;;;;;c$$cccccc+cccccccwww;;;;;;;c.....$$xrr+wwwx
xxxwwwxcc*2$+;;;;;;xxxx;;;;ccccccccc.....c...www;;ccccc.......xxxxxwwx
xxxwwwxxcccccc;;;;xxxxx;;;;;;;cccccc.....+...www;;c...c.......xuuxxwwx
xxxwwwxx;cccc;;;;xxxx*x;;;;;;;cccccc.....c...www;cc.44c.......suu+wwwx
xxxwwwxx;;;;;;;;xxx3..c;;;;;;;cccccc.....cccwww;;;+.44+...O...xxxxxwwx
xxxwwwxx;;;;;;;;;xx3O.c;;;;;;;;;;;;c%....c;wwww;;cc.44c.......yzzxxwwx
xxxwwwxx;;;;;;;;;;x3..+;;;;;;;;;;;;cccccccwwww;;;;c...c.......xzz+wwwx
xxxwwwxx;cccc;;;;xxx..c;;;;;;;;;;;;;;;;;wwwwww;;;;ccccc.......xxxxxwwx
xxxwwwxxcccccc;;;;;xx*c;;;;;;;;;;;;;;;;wwwwwww;;;;;;;;c.....$$xKKxxwwx
xxxwwwxcc*2$+;;;;;;xxxx;;;;;;;;;;;;;;;wwwwwwwww;;;;;;;c.....$$JKK+wwwx
xxxwwwxxcccccc;;;;xxxwxx;;;;;;x;;;;;wwwwwwwwwww;;;;;;;ccccccccxxxxxwwx
xxxwwwxxxcccc;;x;;;xwwxxx;;;;;xx5wwwwwwwwwwwwww;;;;;;;;;;;;;;;xwwwwwwx
xxxwwwxxxxwww;;;;;;wwwwxw;;;;xxxwwwwwwwwwwwxxwww;;;;5;;;;;wwwwwwwwwwwx
xxxwwwxxxxxwwwwwwwxwwwwwwwwwxxxwwwwwwwwwwwwxxxwwwwww;;wwwwwwwwwwwwwwxx
xxxxwwwwxxxxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxxwwwwwwwwwwwwwwwwwwwwwxxx
xxxxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxwwwwwwwxxxxxwwwwwwwwwwwwwwwwwwwxxxxx
xxxxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxwwwwwwwwwwwwwwwwwwxxxxxxx
xxxxxwwwwwwwwwwwwwwwwNxwwwwwwwxxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxxxxxx
xxxxxxwwwwwwwwwwwwwxxxxwwwwwwwwwwwwwxxx7wwwwwwwwwwxxwwwwwwwwxxxxxxxxxx
xxxxxxxwwwwwxxxxxxxxxxwwwwwwwxxwwwwxxxxxwwwwwwwwwxxxwwxwwwwxxxxxxxxxxx
xxxxxxxx;5;;xxx111xxxxxxwwwwxxwww1111xxxxx11wwwwwwxxxxxxxxxxxxxxxxxxxx
xxxxxxx>;;;xxx;;;;;xx1111wwwwww;;;;;;;;xxxx11;;;;wwwwxxxxxxxxxxxxxxxxx
xxxxxxxxx;xxxx;;;;;;;;;;;;ww;;;;;;;;;;;;;;;;;;;;;;;;wwwxxxxxxxxxxxxxxx
xxxxxxxxxxxx;;;;1;;;;;;;;;;;;;;;;;);;;;;;1;;;;;;;;;;wwwxxxxxxxxxxxxxxx
xxxxxxxxxxxx;;;;;;;;;;;;;;;;;;;;;[](;;;;;;;;;;;;;;;;1wxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

##############################################################################
# The New Box Level (dp)
#
NAME:    box_level_dp
TAGS:    no_pool_fixup no_rotate uniq_d_encompass
ORIENT:  encompass
: kitem("g = " .. dgn.loot_potions)
KITEM:   zZ = any potion / nothing w:90
# Two themes: birds with elves, and spriggans with giants.
: if crawl.coinflip() then
MONS:   tengu conjurer / tengu warrior / deep elf elementalist \
        / sphinx / nothing
MONS:   tengu reaver / deep elf annihilator / deep elf high priest \
        / caustic shrike
: else
MONS:   spriggan berserker / spriggan air mage / ettin / stone giant \
        / frost giant / fire giant / nothing
MONS:   spriggan defender / titan / juggernaut
: end
KMONS:   L = fire dragon
KMONS:   ~ = ice dragon
KMONS:   z = meliai / spark wasp w:2 / nothing w:20
KMONS:   Z = spark wasp
KFEAT:   L = l
KFEAT:   ~ = w
NSUBST:  w = ~ / w, l = L / l
NSUBST:  D = + / b, E = + / b, F = + / b, H = + / b, J = + / x, K = + / n
SUBST:   ' : ''l. , ' = l., " : ""W. , " = Ww..
SUBST:   * = * % % $ $ .
SUBST:   ; = 9 0
SUBST:   ! = %$, & = *%
COLOUR:  a = yellow
TILE:    a = wall_wax
SUBST:   a = x
MARKER:  P = lua:props_marker { portal=1 }
KFEAT:   P = stone_arch
TILE:    G = depths_column
LFLOORTILE: floor_depthstone
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x.......xccccccxxxxxxx.........................................w"..xxx
x.(...{.xc....cbbbbbxx................xxx...................."w......x
x.......++.U..++.].++.....'''....'l'....xxx................."ww"..)..x
x...[...xc....cbbbbbxx...'''..''lllll'....xx...vvJvvJv......"ww"....xx
x.......xcccccccxxxxxx.......'llllllll.....x...v....9v...."www".....xx
xxxxxxxxxxxxxxxxxxxxxx.......'lllllll'.....x...J.....J.."ww.w".....xxx
x.............................'lllll'.....xx...v9....v.www..w".....xxx
x....""w.............".xxx......'ll'......x....vvJJJJvwww.www.....xxxx
x.."wwwww"..........w....xxxx............xx....."wwwwwwww.ww"....xxxxx
x.wwwwwwww"........w........xxxxxxx....xxx........"www"...ww"...xxxxxx
x..wwwwwww"......"ww......""......xxxxxx....."...........ww"....xxxxxx
xx..""ww".......www....."wwwwwwwwww........."www"......wwwww"....xxxxx
xxx.........."wwww"..""wwwwwwwwwwwwwwwwww".www"...wwwwwwwwwwww.....xxx
xxxxx....""wwwwwwwwWWwwwwww.......wwwwwwwwwwwwwwwwwwwwwww.....xx....xx
xxx..""wwwwwwwwwwwwWWww"......G.G......"wwwwxxww".........xxxxx.....xx
x."wwwwwwwwwwwwwxxx__xxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx....x
xwwwwwwww".."wwwxww.."w........................................>xx...x
xxwwww""....."xwxw"...ww........................................xx...x
xxww".........xxxw..............................................xx..xx
xww............xx"w...ccccccccccccccccccKcccccccccccccccccc.....xx..xx
xw"...xxx.......x..w..c...*...*...*...*...*...*...*...*...c.....x...xx
xw....x!x..xxx..x..w..c...................................c.....x...xx
xxx...x+x..x!x..x.....c*..;...;...;...;...;...;...;...;..*c.....xx..xx
xxx....1..1+!x..x.....c...................................c.....xx...x
x..........xxx.xx.....c.......bbbbbbbbbb.bbbbbbbbbb.......c.....xx..xx
x..xxxx........xx.....c.......b.........b.........b.......c.....x...xx
x..x!!+1..xxxx..x.....c*..;...b.bbbDbbb.b.bbbEbbb.b...;..*c.....x..xxx
x..xxxx..1+!!x..x.....c.......b.b8...|b.b.b|...8b.b.......c.....xx.xxx
x.........xxxx..x.....c.......b.D|.P.|D.b.E|.P.|E.b.......c.....xx.xxx
x.......1.......x.....c.......b.b|...8b.b.b8...|b.b.......c.....x...xx
xxx....121....xxx.....c*..;...b.bbbDbbn.b.nbbEbbb.b...;..*c.....x...xx
x!x...cc+cc...xxx.....c.......b.........b.........b.......c.....xx..xx
x&+1..c!2!c...xxx.....K........bbbbbbbbb.bbbbbbbbb........K.....x..xxx
x!x...c&&&c...xxx.....c.......b.........b.........b.......c.....x..xxx
xxx...ccccc...xxx.....c*..;...b.bbbHbbn.b.nbbFbbb.b...;..*c.....x.xxxx
x...............x.....c.......b.b|...8b.b.b|...8b.b.......c.....x.xxxx
xx...1...xxxx...x.....c.......b.H|.P.|H.b.F|.P.|F.b.......c.....x..x.x
xx..x+x.1+!!x...x.....c.......b.b8...|b.b.b8...|b.b.......c.....xx...x
x...x!x..xxxx...x.....c*..;...b.bbbHbbb.b.bbbFbbb.b...;..*c.....xxx.xx
x...xxx.........x.....c.......b.........b.........b.......c.....xxx.xx
x.........xxxxxxx.....c.......bbbbbbbbbb.bbbbbbbbbb.......c.....xxx..x
xxxx......+*9*9*+.....c...................................c.....xxxx.x
xxxx..xx..xxxxxxx.....c*..;...;...;...;...;...;...;...;..*c.....x....x
x.....xx........x.....c...................................c.....x.xx.x
x.xx.....xxx....x.....c...*...*...*...*...*...*...*...*...c.....x.xx+x
x.xx....1+!x..xxx.....ccccccccccccccccccKcccccccccccccccccc.....xxx..x
x....xx..xxx..xxx...............................................xx..xx
x....xx.......xxx.........................................z..z..x....x
xx............xxx<.............................................zxa...x
xx..x......xx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxazzxx
xxx........xx.....xxx...xx.x..xx...xxaaaaaaagaaga.a..aaaaaaaaaaaaazzxx
xxxx..xx..............x...x...xx.xx.xaaazazzaaza.a.aa.za.z.aaaa.a.aazx
xxxxxxxxxxx....x..xx.x.xx.x..x..xx}..xagazaaZzazzaa..aa..aa....z.agaxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

################################################################################
# Profane Halls, by Grunt.
#
default-depth:

NAME:     grunt_profane_halls
TAGS:     no_monster_gen uniq_d_encompass
PLACE:    Depths:$
DEPTH:    Depths:2-
WEIGHT:   1 (Depths:$), 10
ORIENT:   encompass
KMONS:    0 = 0 band w:15 / nothing
KMONS:    9 = 9 band / 0 band
KFEAT:    GC = granite_statue
SHUFFLE:  {[(<
KMASK:    1290KLMN = !no_monster_gen
: if you.where() == dgn.level_name(dgn.br_entrance("Zot")) then
KMONS:    K = storm dragon
KMONS:    L = shadow dragon
KMONS:    M = quicksilver dragon
KMONS:    N = golden dragon
SUBST:    }])> = G
NSUBST:   D = 1:K / 1:L / 1:M / 1:N
SUBVAULT: H : grunt_zot_portal
: else
KMONS:    D = 8 band
SHUFFLE:  }])>
SUBVAULT: H : grunt_profane_loot
: end
SUBVAULT: d : grunt_profane_temple
SUBVAULT: e : grunt_profane_temple
SUBVAULT: f : grunt_profane_temple
SUBVAULT: g : grunt_profane_temple
: grunt_profane_halls_setup(_G)
TILE:     G = dngn_statue_imp / dngn_statue_dragon / dngn_statue_maw / \
              dngn_statue_demonic_bust / dngn_statue_tentacles / \
              dngn_statue_wraith / dngn_statue_sigmund
TILE:     C = depths_column
LFLOORTILE: floor_depthstone
MAP
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccdddddddddddddddcccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccdddddddddddddddcccccccccccccccccccccccccccccccc
ccccccccccccccc.ccccccccccccccccdddddddddddddddcccccccccccccccc.ccccccccccccccc
cccccccccccccc..ccccccccccccccccdddddddddddddddcccccccccccccccc..cccccccccccccc
ccccccccccccc.C.cccCcGcGGcGcGcccdddddddddddddddcccGcGcGGcGcCccc.C.ccccccccccccc
ccccccccc.......c..............cdddddddddddddddc..............c.......ccccccccc
ccccccccc.{.....+......0.......+ddddddddddddddd+.......0......+.....[.ccccccccc
ccccccccc.......+......0.......+ddddddddddddddd+.......0......+.......ccccccccc
ccccccccc...U...c..............cdddddddddddddddc..............c...U...ccccccccc
cccccccc........cccCcGcGGcGcGcccdddddddddddddddcccGcGcGGcGcCccc........cccccccc
ccccccc.C.....}.ccccccccccccccccdddddddddddddddcccccccccccccccc.].....C.ccccccc
cccccc..........cccccccccccccccccdddddddddddddccccccccccccccccc..........cccccc
cccccccccc++ccccccccccccccccc...cdddddddddddddc...ccccccccccccccccc++cccccccccc
ccccccccc....ccccccccccccc......+ddddddddddddd+......ccccccccccccc....ccccccccc
ccccccccC....Cccccccccccc.......++ddddddddddd++.......cccccccccccC....Ccccccccc
ccccccccc....cccccccccc%...9.....+ddddddddddd+.....9...%cccccccccc....ccccccccc
ccccccccG....GccccccccU*.........ccdddddddddcc.........*UccccccccG....Gcccccccc
ccccccccc.00.cccccccc%*.......cccccdddddddddccccc.......*%cccccccc.00.ccccccccc
ccccccccG....Gcccccc........ccc%%.ccdddddddcc.%%ccc........ccccccG....Gcccccccc
ccccccccc....cccccc.......++c......ccdddddcc......c++.......cccccc....ccccccccc
ccccccccG....Gcccc...9...c+.........ccccccc.........+c...9...ccccG....Gcccccccc
ccccccccc....cccc.......cc........1....:....1........cc.......cccc....ccccccccc
cccccccccc++ccccc......cc..............1..............cc......ccccc++cccccccccc
cccceeeeeeeeeeecc++...cc.....G.......C...C.......G.....cc...++ccfffffffffffcccc
cccceeeeeeeeeeeeee++ccc%.........1.C...D...C.1.........%ccc++ffffffffffffffcccc
cccceeeeeeeeeeeeeeeeccc%.....1....2.........2....1.....%cccffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeecc.........C.:%HHHHH%:.C.........ccffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeecc..........%HHHHHHH%..........ccfffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeeec.......C..HHHHHHHHH..C.......cffffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeeec..........HHHHHHHHH..........cffffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeeec:.G..1..D.HHHHHHHHH.D..1..G.:cffffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeeec..........HHHHHHHHH..........cffffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeeec.......C..HHHHHHHHH..C.......cffffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeeecc..........%HHHHHHH%..........ccfffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeeecc.........C.:%HHHHH%:.C.........ccffffffffffffffffffcccc
cccceeeeeeeeeeeeeeeeccc%.....1....2.........2....1.....%cccffffffffffffffffcccc
cccceeeeeeeeeeeeee++ccc%.........1.C...D...C.1.........%ccc++ffffffffffffffcccc
cccceeeeeeeeeeecc++...cc.....G.......C...C.......G.....cc...++ccfffffffffffcccc
cccccccccc++ccccc......cc..............1..............cc......ccccc++cccccccccc
ccccccccc....cccc.......cc........1....:....1........cc.......cccc....ccccccccc
ccccccccG....Gcccc...9...c+.........ccccccc.........+c...9...ccccG....Gcccccccc
ccccccccc....cccccc.......++c......ccgggggcc......c++.......cccccc....ccccccccc
ccccccccG....Gcccccc........ccc%%.ccgggggggcc.%%ccc........ccccccG....Gcccccccc
ccccccccc.00.cccccccc%*.......cccccgggggggggccccc.......*%cccccccc.00.ccccccccc
ccccccccG....GccccccccU*.........ccgggggggggcc.........*UccccccccG....Gcccccccc
ccccccccc....cccccccccc%...9.....+ggggggggggg+.....9...%cccccccccc....ccccccccc
ccccccccC....Cccccccccccc.......++ggggggggggg++.......cccccccccccC....Ccccccccc
ccccccccc....ccccccccccccc......+ggggggggggggg+......ccccccccccccc....ccccccccc
cccccccccc++ccccccccccccccccc...cgggggggggggggc...ccccccccccccccccc++cccccccccc
cccccc..........cccccccccccccccccgggggggggggggccccccccccccccccc..........cccccc
ccccccc.C.....).ccccccccccccccccgggggggggggggggcccccccccccccccc.>.....C.ccccccc
cccccccc........cccCcGcGGcGcGcccgggggggggggggggccGcGccGGcGcCccc........cccccccc
ccccccccc...U...c..............cgggggggggggggggc..............c...U...ccccccccc
ccccccccc.......+......0.......+ggggggggggggggg+.......0......+.......ccccccccc
ccccccccc.(.....+......0.......+ggggggggggggggg+.......0......+.....<.ccccccccc
ccccccccc.......c..............cgggggggggggggggc..............c.......ccccccccc
ccccccccccccc.C.cccCcGcGGcGcGcccgggggggggggggggccGcGccGGcGcCccc.C.ccccccccccccc
cccccccccccccc..ccccccccccccccccgggggggggggggggcccccccccccccccc..cccccccccccccc
ccccccccccccccc.ccccccccccccccccgggggggggggggggcccccccccccccccc.ccccccccccccccc
ccccccccccccccccccccccccccccccccgggggggggggggggcccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccgggggggggggggggcccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ENDMAP

# Here just in case people want to see the original base layout.
NAME: grunt_profane_temple_base
TAGS: grunt_profane_temple allow_dup
WEIGHT: 0
: grunt_profane_halls_setup(_G)
KFEAT: A = stone_arch
MARKER: A = lua:props_marker { portal=1 }
KMASK: 12345 = !no_monster_gen
MAP
%%...........%%
%G...........G%
...............
......1.1......
...............
.......U.......
...............
..1.........1..
...............
....1.....1....
.....G...G.....
 .............
 ....G...G....
 .............
  ...G...G...
  ...........
   ..G...G..
   ....B....
    .:%3%:.
     %2A2%
ENDMAP

NAME:   grunt_profane_temple_geh
TAGS:   grunt_profane_temple no_monster_gen
: grunt_profane_halls_setup(_G)
KMONS:  4 = hell hog
KMONS:  5 = sun demon
KMONS:  6 = balrug
KFEAT:  A = stone_arch
NSUBST: 4 = 8 = 4. / *:., 5 = 1:6 / *:5
MARKER: A = lua:props_marker { portal=1 }
KMASK:  12345 = !no_monster_gen
MAP
ll...l%%%l...ll
l....l%%%l....l
...............
..ll...5...ll..
..l4..lll..4l..
..l..lllll..l..
..l.5lllll5.l..
..l..lllll..l..
..l4..lll..4l..
..ll...5...ll..
...............
 ....l...l....
 ....l4.4l....
 ....l...l....
  ...l4.4l...
  ...l...l...
   ..l4.4l..
   ....B....
    .:%3%:.
     %2A2%
ENDMAP

NAME:   grunt_profane_temple_coc
TAGS:   grunt_profane_temple no_monster_gen
: grunt_profane_halls_setup(_G)
KMONS:  4 = ice devil / ettin simulacrum w:20 / freezing wraith
KMONS:  5 = quicksilver dragon simulacrum
KMONS:  6 = blizzard demon
KMONS:  8 = ice statue
KFEAT:  A = stone_arch
NSUBST: 4 = 8:4 / *:., 5 = 1:6 / *:5
MARKER: A = lua:props_marker { portal=1 }
KMASK:  12345 = !no_monster_gen
MAP
wwww.......wwww
www....5....www
ww...........ww
w...4.www.4...w
.....wwwww.....
....ww%%%ww....
..4.ww%8%ww.4..
....ww%%%ww....
.....wwwww.....
....4.www.4....
...W.......W...
 ..WW.5.5.WW..
 ...W.....W...
 ...WW...WW...
  ..4W4.4W4..
  ...W...W...
   .........
   ....B....
    .:%3%:.
     %2A2%
ENDMAP

NAME:   grunt_profane_temple_tar
TAGS:   grunt_profane_temple no_monster_gen
: grunt_profane_halls_setup(_G)
KMONS:  4 = shadow wraith / nothing w:30
KMONS:  5 = soul eater
KMONS:  6 = reaper w:18 / lich w:5 / bone dragon w:4
KFEAT:  A = stone_arch
NSUBST: 4 = 8:4 / *:., 5 = 1:6 / *:5
MARKER: A = lua:props_marker { portal=1 }
TILE:   G = dngn_gravestone
: set_feature_name("granite_statue", "a gravestone")
KMASK: 12345 = !no_monster_gen
MAP
.%%%.......%%%.
.ccc...4...ccc.
...............
.4....ccc....4.
.....c...c.....
...4..5V5..4...
.....c...c.....
.4....ccc....4.
...............
.ccc...4...ccc.
..5..G...G..5..
 .....4.4.....
 ....G...G....
 .............
  ...G...G...
  ...........
   ..G...G..
   ....B....
    .:%3%:.
     %2A2%
ENDMAP

NAME:   grunt_profane_temple_dis
TAGS:   grunt_profane_temple no_monster_gen
: grunt_profane_halls_setup(_G)
KMONS:  4 = iron troll / nothing
KMONS:  5 = skeletal warrior / iron troll w:1
KMONS:  6 = iron dragon / war gargoyle
KFEAT:  A = stone_arch
MARKER: A = lua:props_marker { portal=1 }
NSUBST: 4 = 8:4 / *:., 5 = 1:6 / *:5
KMASK:  12345 = !no_monster_gen
COLOUR: G = cyan
TILE:   G = dngn_statue_iron_golem
: set_feature_name("granite_statue", "iron statue")
MAP
%%.5.......5.%%
%G...........G%
.....4...4.....
....4.v.v.4....
.....v...v.....
...4...G...4...
.....v...v.....
....4.v.v.4....
.....4...4.....
...............
.G...G...G...G.
 ..5.......5..
 ....G...G....
 .............
  ...G...G...
  ...........
   ..G...G..
   ....B....
    .:%3%:.
     %2A2%
ENDMAP

NAME:    grunt_profane_loot
TAGS:    grunt_profane_loot no_monster_gen
: grunt_profane_halls_setup(_G)
KMONS:   K = storm dragon
KMONS:   L = shadow dragon
KMONS:   M = quicksilver dragon
KMONS:   N = golden dragon
KITEM:   KLMN> = any good_item
KITEM:   12 = any
SHUFFLE: KLMN
MAP
  cc+cc
 cc1%1cc
cc2%K%2cc
c1%***%1c
+%L*>*N%+
c1%***%1c
cc2%M%2cc
 cc1%1cc
  cc+cc
ENDMAP

NAME:   grunt_zot_portal
TAGS:   grunt_zot_portal
KMONS:  1 = nonbase draconian / base draconian
KITEM:  g = midnight gem
KFEAT:  O = enter_zot
COLOUR: c = lightmagenta
COLOUR: JO.1+ = magenta
TILE:   c = wall_zot_magenta
FTILE:  JO.1+ = floor_hall
MARKER: J = lua:fog_machine { cloud_type = "magical condensation", \
                              pow_min = 3, pow_max = 5, \
                              delay_min = 5, delay_max = 15, \
                              size = 1, walk_dist = 4, \
                              spread_rate = 70 }
MAP
  cc+cc
 cc...cc
ccJ.1.Jcc
c.......c
+.1.O.1.+
c...g...c
ccJ.1.Jcc
 cc...cc
  cc+cc
ENDMAP

default-depth: Depths:2-, !Depths:$

################################################################################
# IT IS AN EMPTY, ROTTEN WORLD.
# LIE DOWN. FORGET YOUR TROUBLES.
# SMILE.
NAME:    hangedman_pleasuredromes
TAGS:    no_monster_gen no_item_gen uniq_d_encompass
ORIENT:  encompass
PLACE:   Depths:$
DEPTH:   Depths:2-
WEIGHT:  1 (Depths:$), 10
# everything here (bar the very top) spawns regularly in depths,
# if possibly as part of a band.
MONS:    occultist w:8 / necromancer w:8 / tengu warrior / \
         spriggan defender w:2 / tengu conjurer / nothing w:2
MONS:    rakshasa / hell knight / stone giant w:5 / \
         vampire mage / ettin / spriggan berserker / \
         deep troll earth mage / deep troll shaman w:5
MONS:    fire giant / frost giant / stone giant w:6 / lich w:4 / \
         vampire knight / spriggan air mage / tengu reaver / \
         deep elf high priest w:4 / deep elf demonologist w:4 / \
         deep elf annihilator w:4 / deep elf sorcerer w:4 / \
         deep elf death mage w:2 / deep elf elementalist w:2
MONS:    very ugly thing w:10 / ugly thing w:30 / \
         great orb of eyes / glowing orange brain / deep troll
MONS:    fire dragon / ice dragon / very ugly thing / glowing shapeshifter / \
         titanic slime creature w:4 / jiangshi w:2 / phantasmal warrior w:2 / \
         caustic shrike skeleton w:2 / spark wasp zombie w:2
MONS:    sphinx / entropy weaver / spark wasp / flayed ghost / \
         storm dragon w:4 / shadow dragon w:4 / quicksilver dragon w:4 / \
         iron dragon w:4 / golden dragon w:4 / caustic shrike / \
         tentacled monstrosity / juggernaut zombie w:2
MONS:    spriggan defender w:30 / titan w:30 / ancient lich w:30 / \
         deep elf blademaster / deep elf master archer / \
         draconian monk / draconian annihilator / draconian knight / \
         juggernaut w:20
KMONS:   Z = draconian knight / draconian annihilator
KITEM:   Z = midnight gem
KFEAT:   z^ = zot trap w:499 / floor w:1
KFEAT:   Z = enter_zot
SHUFFLE: Y], {([>, HI / HI / IH, JK / JK / KJ
SHUFFLE: NO / NO / ON, PQ / PQ / QP, RS / RS / SR, lm / lm / ml
NSUBST:  ] = 1:) / 1:] / *:>
SUBST:   B : b.., C : cb., D : x.., E : xx., F : xx.
SUBST:   L : xx., M : xx., j : x.., k : x.., n : x.
SUBST:   HJOQRm = x, IKNPSl = .
SUBST:   b : bbbbbbvc, @ = 14, ! = 24, & = 36
NSUBST:  14 = 1:36
: local Z = math.max(math.min(5 + (you.absdepth() - 23) * 5, 30), 10)
:   subst("2 = 2:20 3:" .. Z)
:   subst("5 = 5:20 6:" .. Z)
:   subst("1 = 1:" .. 40 - Z .. " 2:" .. Z - 5)
:   subst("4 = 4:" .. 40 - Z .. " 5:" .. Z - 5)
: if you.where() == dgn.level_name(dgn.br_entrance("Zot")) then
SUBST:  )]}> = ., " = `
NSUBST: ' = 1:Z / 2:^ / *:`
: end
SUBST:  ' = .
MARKER: Y = lua:props_marker { portal=1 }
FTILE:  Z`^ = floor_marble
LFLOORTILE: floor_depthstone
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxJ.............xxxxxx
xxxxxxxxxxx......c.........xxx
xxxxxxxxx"".....cbc..x......xxx
xxxxxklxP".....cbcbc.x......Mxxxx
xxxxxl'"4.....xF.b.cc...n....Lxxxx
xxxxxx""1....x...x..cc.x.......xxx
xxxxxP41.........b..@cc.........xxx
xxxx"".....x..xxb.bxb.cc..@.....xxx
xxJx".....x..E...b...b.cc@..n...xxx
xx.......x.......xx..x.1cc.x.....xx
xx.............F...x.b*..cc......xx
xx.....x..E........xb.bxb.cc.xx..xx
xx....x..x...........b.2.b5cc....xxxxxxxxxxxxx
xx...cF..x..F....%...xx.2x..cc...xxxxxxxxxxxxxx
xx..cb...b......%*.....x.b...bc..xxxx@.%.%.@.xxx
xx.cbcbxb.bx...%*.*%...xb.bxbcbc.xxxxx........xxx
xx..cb...b.x.....*%....x.b...bc..xxxxxx........xxx
xx...cc..x..xx...%...xx..x..cc...xxxxxxx%.......xxx
xx....cc@b...b.......b%63b5cc....xxxxxxxx...I.x.xxxx
xx..xx.cc.bcb.bx...xb.bxb.cc..xx.xx..xxxxx...H.!..xxx
xx......cc..*b.x...x%b%*|cc......xx....xxxx.x...x..xxx
xx.....x.cc!.x2.xxx.6x*7cc.......xx.......xx...H....xxx
xxxx..n..@cc.b.2.b..3b|cc.....xMx.x.xLx.....x.x.I....xx
 xxx....@..cc.bxb.bxb.cc.@.xxx...xxx...xxx...x......@xx
  xx........cc5..b..5cc.........x...x........xx......xx
  xxxxL....x.cc..x..cc...x.@..SR..@..RS..@.x..xx....%xx
  xxxxxM..n...cc.b.cc....x....SR.....RS....x..xxx%...xx
     xxx.....x.cbcbc.....x....SR.....RS....x..xxxx..%xx
    xxcc.....x..cbc..x..x..SSSJ.x.Q.x.HSSS..x..xxxx..xx
    xcc..........c...x..L..RRR.K.cPc.I.RRR..M..xxxxx@xx
   xxc.xx...............x.x...x.J...H.x...x.x...xxxxxxx
   xc4.xx...xxxxxxxxxxxx.x.....c.>.[.c.....x....xxxxxxx
   xc....xx.....nnnnxxxxxx.@..NO..z..ON..@.xxxxxxxxxxxxxxx
  xc.....xx........nx....x.....c.(.{.c.....x.xxxxxxxxxxxxxx
  xc.......xx......nx...x.x...x.H...J.x...x.x]...........xxxxxx
  xxc......xx.......xx..M..RRR.I.cPc.K.RRR..L...Y..c......xxxxx
   xc...j....xx......x..x..SSSH.x.Q.x.JSSS..x.....cbc........xx
   xxc.......xx.c....x...x....SR.....RS....x].Y..xbcbx.......xxx
    xc..........b....xx..x....SR.....RS....x....x..b..x......Lxxxxx
    x@cc......cb%bc...x..x.@..SR..@..RS..@.x.x.x..4c...x.x....Mxxxx
    xc..cc..cc.4b.....KJ........x...x.....x....b..1b14.b.........xx
    xc....cc....c.xx..KJ...xxx...xxx...xxx.}.xb.bcbcbcb.bx.......xxx
    xxc........c..xx...KJ.....xLx.x.xMx]....x..b..%b%..b..x......xxx
     xc.....k..c....xx..KJJ.......xx]....x.x..4c.0ccc5.c...x.x....xxx
     xxc..%...c.....xx...KKxx.....xx...Y...b.41b*cc7cc%b25.b.......xx
     xxc..%%..c.......xx....xxxx..xx.....xb.bcbcbc6x6cbcbcb.bx.....xx
     xc..k.....c......xx.......xxxxx.Y..x..b..*b@..x..5b*..b..x....xx
    xxc........c...j....xx......nnnx...x...c.0cc.@|x|*4cc3.c...x...xx
    xc....cc....c.......xx.c......nx..cb.41c%cc3.|x%*|.4cc*b36.bc..xx
    xc2.cc..cc."b".........b......nx.cbcbccccc7xxx%|%xxxccbcbcbcbc.xx
    x.cc......cb'bc......cb%bc....nx..cb..1c%cc3.|*%x.....%C...Bx..xx
    xc........!"b".cc..cc.4b.......x...x..4c.5cc.*|x....C..x...x...xx
   xxc.mm....ll!c....cc....c.xx....x....x..b..%c21.x.....%.x..x....xx
   xc..mm...%ll..c........c..xx....x.....xb.bccccc1x....D.x........xx
   xc......xx%...c.....k..c....xx..........b..2c*ccc.C%D...........xx
  xc%.....%xx.....c..%...c.....xx........x.x..5c.5cc.....D.x.......xx
  xc%....xx%......c..%%..c.......xx.........x..b..*b%..x.........HOxx
  xxc...%xx......c..k.....c......xx..........xb.bcbcCxx..x.......Pxxx
   xc&.ll%...mm..c........c...j....xx..........b..3b........"""JRlxxx
   xxc5ll....mm.c....cc....c.......xx.cxM....x.x..6c........"'"jxxxxx
    xc25........c2.ccxxcc..c.........ccxxL......x..b..x....."""kxxxxx
    xxcc&.....cc.ccxxxxxxcc@cc.....4ccxxxx.......xbcBx......Jjklxxxxx
     xxxcc%%ccxxxxxx    xxxxxxcc..ccxxx xx........cbx.......Rxxxxxxxx
       xxxccxxx              xxxccxxx   xxxxx......c......HPlxxxxxxxx
         xxxx                  xxxx     xxxxxx............Oxxxxxxxxxx
                                            xxxxxxxxxxxxxxxxxxxxxxxxx
                                             xxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

################################################################################
# Maps from the now-defunct Radiant Caverns portal vault idea.
# Original design by rkd; modernised by Grunt.

NAME:   radiant_caverns_a_rkd
TAGS:   no_monster_gen no_item_gen uniq_d_encompass
ORIENT: encompass
: radiant_caverns_setup(_G)
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xx{.(.[.....xxxxxxxxxlllxxxsss..xxxxxxxxxxxxxxx.....H....xxxxxxxxxxxx
xx...........xxxxxxxlllxxxxssJJ..xxxxxxxxxxx..t..HH...H...xxxxxxxxxxx
xx}..........xxxxxlllxxxxx).JJ...xxxxxxx............xx....xxxxxxxxxxx
xxxxxxx........xxxlllxxxxxxx...xx..xxxxx..tt...xxllxxxx.t...xxxxxxxxx
xxxxxxxx....KK..xlllxxxxxxxxxxxxxx..xx...tt...xxllxxxx......xxxxxxxxx
xxxxxxxx....KK.Klllxxxxxxxxxxxxxxxx.........xxxllxxxx...4..xxxxxxxxxx
xxxxxxx.......Klll......xxxxxxxxxxxx......xxxxll......t.4.xxxxxxxxxxx
xxxxxx..t...xxlll....N.N.xxxxxxxxxx.....xxxxxll.tt.......xxxxxxxxxxxx
xxxxxx....xxxlllx....N.N..xxxxxxxxx..t.xxxxxll34..xxxxxxxxxxxxxxxxxxx
xxxxx....xxllllxx..........xxxxxxx.SS.xxxxxllx4....xxxxxxxxxxxxxxxxxx
xxxxx...xxllllxx.L..xx..L..xxxxxx.SS.xxxxxllxxx..t..xxxxxxxxxxxxxxxxx
xxxx.M..xlllxxx....xxxx..Lt.xxxx.SS.xxxxxllxxxxx.3...xxxxxxxxxxxxxxxx
xxxx.M..lllxx.....xxxxxx.....xx....xxxxxllssxxxx.34..xxxxxxxxxxxxxxxx
xxxx..MM......L..xxxxxxxx....xx...xxxxxllssG<xx..t..xxxxxxxxxxxxxxxxx
xxxxlll...t.....xxxxxxxxxx.L.....xxxxxllxxxxxx.3...xxxxxxxxxxxxxxxxxx
xxxlllx.....L..xxxxxxxxxxxxxxxxxxxxxxllxxxxx1...xxxxxxxxxxxxxxxxxxxxx
xxlllxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxllxxxx...xxxxxxxxxxxxxxxxxxxxxxxx
xllxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx......t...xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb.bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbb.bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbb...bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxbbbbbbbbbbbbbbb..]..bbbbbbbbbbbbbbbxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxbb.................................bbxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxbb......................t............bbxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxbb.....5..mmm...t.........mmm.5......j.bbxxxxxxxxxxxxxx
xxxxxxxxxxxxxbb.h..t....mmm.......5.....mmm....t....j.bbxxxxxxxxxxxxx
xxxxxxxxxxxxbb.h..5......t..5..........5........t..j.j.bbxxxxxxxxxxxx
xxxxxxxxxxxbbww..h..n............t................n...wwbbxxxxxxxxxxx
xxxxxxxxxxbbwwwwh...t.......n..n.5.n...n.i.......5..jwwwwbbxxxxxxxxxx
xxxxxxxxxxbwwwwwwt..5....wwwwww.......wwwwwwii......wwwwwwbxxxxxxxxxx
xxxxxxxxxxbsswwwwwg.....wwwwwwww.n.n.wwwwwwwwi..t..wwwwwssbxxxxxxxxxx
xxxxxxxxxxbGsswwwwg.ggnwwbbbbbbww...wwbbbbbbww.n.n.wwwwssGbxxxxxxxxxx
xxxxxxxxxxbbsswwwwwwwwwwwbuu..bww.t.wwb.yu.bwwwwwwwwwwwssbbxxxxxxxxxx
xxxxxxxxxxxbbswwwwwwwwwwwb.yAubww.t.wwbuAuubwwwwwwwwwwwsbbxxxxxxxxxxx
xxxxxxxxxxxxbbwwwwbbbbbbwb.z.ubww...wwb.z..bwbbbbbbwwwwbbxxxxxxxxxxxx
xxxxxxxxxxxxxbbwwwbuuuzbwb+bbbbbb+++bbbbbb+bbb.u.ubwwwbbxxxxxxxxxxxxx
xxxxxxxxxxxxxxbbwwbuA..bbb..b...........b..bbbyzAubwwbbxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxbbwby...bb...b...........b...bb..u.bwbbxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxbbbbbb.br...b...b...b...b...rb.bbbbbbxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxbbb+b..b+b.....7.....b+b..b+bbbxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbb....b.b...b7.7b...b.b....bbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbb....b.b...........b.b....bbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbbt...bzbqq.b...b.qqbzb...tbbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbbz1..b.bbq.......qbb.b..1zbbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbbbbbbb.Gbbbb+++bbbbG.bbbbbbbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbbuuuub.tbb.......bbt.buuuubbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbb.uuub.bb.........bb.buuu.bbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbb..uub.b....ttt....b.buu..bbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxbb....b.....ttttt.....b....bbxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxbbbb+bbbb...ttt...bbbbb+bbbxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxbb.zyz.b....1....b.yzz.bbxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxbb....bb.bb>bb.bb....bbxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxbb......tbbbt......bbxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxbbbbbbbbbbbbbbbbbbbxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:   radiant_caverns_b_rkd
TAGS:   no_monster_gen no_item_gen uniq_d_encompass
ORIENT: encompass
: radiant_caverns_setup(_G)
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx.HH.....xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxHHt..x..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx....xxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxx..3.33...1.......xxb.bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxx..xxxxxxxxxxxxxxxxxbb.bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxx.txxxxxxxxxxxxxxxxxbb...bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxx4.xxxxbbbbbbbbbbbbbbb..]..bbbbbbbbbbbbbbbxxxxxxxxxxxxxxxxx
xxxxxxxxxx..xxxxbb.................................bbxxxxxxxxxxxxxxxx
xxxxxxxxx.t.xxxbb......................t............bbxxxxxxxxxxxxxxx
xxxxxxxx.44xxxbb.....5..mmm...t.........mmm.5......j.bbxxxxxxxxxxxxxx
xxxxxxx..4xxxbb.h..t....mmm.......5.....mmm....t....j.bbxxxxxxxxxxxxx
xxxxxx.3.xxxbb.h..5......t..5..........5........t..j.j.bbxxxxxxxxxxxx
xxxxx.3.xxxbbww..h..n............t................n...wwbbxxxxxxxxxxx
xxxxx..xxxbbwwwwh...t.......n..n.5.n...n.i.......5..jwwwwbbxxxxxxxxxx
xxxxx.xxxxbwwwwwwt..5....wwwwww.......wwwwwwii......wwwwwwbxxxxxxxxxx
xxxxx.xxxxbsswwwwwg.....wwwwwwww.n.n.wwwwwwwwi..t..wwwwwssbxxxxxxxxxx
xxxxx.xxxxbGsswwwwg.ggnwwbbbbbbww...wwbbbbbbww.n.n.wwwwssGbxxxxxxxxxx
xxxx...xxxbbsswwwwwwwwwwwbuu..bww.t.wwb.yu.bwwwwwwwwwwwssbbxxxxxxxxxx
xxx.....xxxbbswwwwwwwwwwwb.yAubww.t.wwbuAuubwwwwwwwwwwwsbbxxxxxxxxxxx
xx..NN...xxxbbwwwwbbbbbbwb.z.ubww...wwb.z..bwbbbbbbwwwwbbxxxxxxxxxxxx
xx..NN.t.xxxxbbwwwbuuuzbwb+bbbbbb+++bbbbbb+bbb.u.ubwwwbbxxxxxxxxxxxxx
xx.t.......xxxbbwwbuA..bbb..b...........b..bbbyzAubwwbbxxxxxxxxxxxxxx
xx..JJt..xx.xxxbbwby...bb...b...........b...bb..u.bwbbxxxxxxxxxxxxxxx
xx.......xxx.xxxbbbbbb.br...b...b...b...b...rb.bbbbbbxxxxxxxxxxxxxxxx
xxx.....xxxxx.xxxxxbbb+b..b+b.....7.....b+b..b+bbbxxxxxxxxxxxxxxxxxxx
xxxx...xxxxxxxt.xxxxbb....b.b...b7.7b...b.b....bbxxxxxxxxxxxxxxxxxxxx
xxxxx..xxxxxxxxt.xxxbb....b.b...........b.b....bbxlllllxxxxxxxxxxxxxx
xxxxxx..xxxxxxxx..xxbbt...bzbqq.b...b.qqbzb...tbbxlKK.lxxxxxxxxxxxxxx
xxxxxxx..xxxxxxx..xxbbz1..b.bbq.......qbb.b..1zbbxl.K.lxxxxxxxxxxxxxx
xxxxxxxx..xxxxxx..xxbbbbbbb.Gbbbb+++bbbbG.bbbbbbbxlllllxxxxxllxxxxxxx
xxxxxxxx..xxxxxx..xxbbuuuub.tbb.......bbt.buuuubbxxxllxxxxxllx.xxxxxx
xxxxxxxx..xxxxxx..xxbb.uuub.bb.........bb.buuu.bbxxllxxxxxllxx.xxxxxx
xxxxxxxx..xxxxxxJ.xxbb..uub.b....ttt....b.buu..bbxllxxxxxllxx...xxxxx
xxxxxx.......xxx.Jxxbb....b.....ttttt.....b....bbxlllxxxxlxxss..<xxxx
xxxxxx.SSStt.xxx..xxxbbbb+bbbb...ttt...bbbbb+bbbxllxllxxlllxxsG.xxxxx
xxxxx..SSS.t.xx....xxxbb.zyz.b....1....b.yzz.bbxllxxllxllxllxxxxxxxxx
xxxxx.t......xx.JJssxxxbb....bb.bb>bb.bb....bbxxlxx..lllxxxllxxxxxxxx
xxxxx........xx).sssxxxxbb......tbbbt......bbxxllxx..LLL..xxllxxxxxxx
xxxxxxxxxxx.xxxxxxxxxxxxxbbbbbbbbbbbbbbbbbbbxxx.llxx.LL..ssxxlxxxxxxx
xxxxxxxxxxx...xxxxxxMM..xxxxxxxxxxxxxxxxxxxxxxx.tllxxssssxxxxlxxxxxxx
xxM...xxxxxxx.xxxxxxMM.t.xxxx............xxxxxxx.Kllxx<xxxllllxxxxxxx
xxs.x.xxxxxxx....xxx.......xx.xxx.[..xxx.xx.....t.Kllxxxlllxxxxxxxxxx
xxssx..M.....xxxx...xxxxxx....xx.{.(.}xx....xxxxxxxxlllllxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

################################################################################
# A subvaulted hexagon encompass by hellmonk.
# Each subvault may place one of several themed monster sets with corresponding
# "special" features or terrain changes. The sets available are giants, elves,
# demons, undead, holy beings, dragons, birds, lightning, fire, spriggans, ice,
# spellcasters, earth/iron. Generic depths monster set can also place.

NAME:     hellmonk_hyper_hexagons
TAGS:     no_monster_gen no_item_gen
ORIENT:   encompass
NSUBST:   | = 4:| / 8:* / 4:H / 32 = |*.. / .
NSUBST:   { = { / [ / ( / } / ] / ) / 3 = > / .
KITEM:    H = any good_item
SUBST:    9 = 8990....
SUBVAULT: A : hex_subvault
SUBVAULT: B : hex_subvault
SUBVAULT: C : hex_subvault
SUBVAULT: E : hex_subvault
SUBVAULT: F : hex_subvault
SUBVAULT: G : hex_subvault
: if crawl.coinflip() then
SUBST:    D- = c, ' = +
:else
SUBVAULT: D : hex_subvault
SUBST:    - = +, ': +++c
:end
SUBST:    c : cccccccccb
LFLOORTILE: floor_depthstone
MAP
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
cccccccccccccccccccccAAAccc.............cccBBBccccccccccccccccccccc
cccccccccccccccccccAAAAAAAccc...{.{...cccBBBBBBBccccccccccccccccccc
cccccccccccccccccAAAAAAAAAAA++c.....c++BBBBBBBBBBBccccccccccccccccc
cccccccccccccccAAAAAAAAAAAAAAAccc.cccBBBBBBBBBBBBBBBccccccccccccccc
cccccccccccccAAAAAAAAAAAAAAAAAAAcccBBBBBBBBBBBBBBBBBBBccccccccccccc
ccccccccccccAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBcccccccccccc
ccccccccccccAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBcccccccccccc
ccccccccccccAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBcccccccccccc
ccccc||||||cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc||||||ccccc
ccccc|9....cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc....9|ccccc
ccccc|9....+AAAAAAAAAAAAAAAAAAAAA'BBBBBBBBBBBBBBBBBBBBB+....9|ccccc
ccccc|9....cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc....9|ccccc
ccccc||||||cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc||||||ccccc
ccccccccccccAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBcccccccccccc
ccccc......cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc......ccccc
ccccc.{.{..cAAAAAAAAAAAAAAAAAAAAAcBBBBBBBBBBBBBBBBBBBBBc..{.{.ccccc
ccccc......ccAAAAAAAAAAAAAAAAAAAcccBBBBBBBBBBBBBBBBBBBcc......ccccc
ccccc....ccccccAAAAAAAAAAAAAAAcccccccBBBBBBBBBBBBBBBcccccc....ccccc
ccccc..cccCCCccccAAAAAAAAAAAccccDDDccccBBBBBBBBBBBccccEEEccc..ccccc
cccccc++CCCCCCCc''cAAAAAAAc--cDDDDDDDc--cBBBBBBBc''cEEEEEEE++cccccc
ccccccCCCCCCCCCCCccccAAAccccDDDDDDDDDDDccccBBBccccEEEEEEEEEEEcccccc
ccccCCCCCCCCCCCCCCCcccccccDDDDDDDDDDDDDDDcccccccEEEEEEEEEEEEEEEcccc
ccCCCCCCCCCCCCCCCCCCCcccDDDDDDDDDDDDDDDDDDDcccEEEEEEEEEEEEEEEEEEEcc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCC-DDDDDDDDDDDDDDDDDDDDD-EEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
cCCCCCCCCCCCCCCCCCCCCCcDDDDDDDDDDDDDDDDDDDDDcEEEEEEEEEEEEEEEEEEEEEc
ccCCCCCCCCCCCCCCCCCCCcccDDDDDDDDDDDDDDDDDDDcccEEEEEEEEEEEEEEEEEEEcc
ccccCCCCCCCCCCCCCCCcccccccDDDDDDDDDDDDDDDcccccccEEEEEEEEEEEEEEEcccc
ccccccCCCCCCCCCCCccccFFFccccDDDDDDDDDDDccccGGGccccEEEEEEEEEEEcccccc
cccccc++CCCCCCCc''cFFFFFFFc--cDDDDDDDc--cGGGGGGGc''cEEEEEEE++cccccc
ccccc..cccCCCccccFFFFFFFFFFFccccDDDccccGGGGGGGGGGGccccEEEccc..ccccc
ccccc....ccccccFFFFFFFFFFFFFFFcccccccGGGGGGGGGGGGGGGcccccc....ccccc
ccccc......ccFFFFFFFFFFFFFFFFFFFcccGGGGGGGGGGGGGGGGGGGcc......ccccc
ccccc.{.{..cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc..{.{.ccccc
ccccc......cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc......ccccc
ccccccccccccFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGcccccccccccc
ccccc||||||cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc||||||ccccc
ccccc|9....cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc....9|ccccc
ccccc|9....+FFFFFFFFFFFFFFFFFFFFF'GGGGGGGGGGGGGGGGGGGGG+....9|ccccc
ccccc|9....cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc....9|ccccc
ccccc||||||cFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGc||||||ccccc
ccccccccccccFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGcccccccccccc
ccccccccccccFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGcccccccccccc
ccccccccccccFFFFFFFFFFFFFFFFFFFFFcGGGGGGGGGGGGGGGGGGGGGcccccccccccc
cccccccccccccFFFFFFFFFFFFFFFFFFFcccGGGGGGGGGGGGGGGGGGGccccccccccccc
cccccccccccccccFFFFFFFFFFFFFFFccc.cccGGGGGGGGGGGGGGGccccccccccccccc
cccccccccccccccccFFFFFFFFFFF++c.....c++GGGGGGGGGGGccccccccccccccccc
cccccccccccccccccccFFFFFFFccc...{.{...cccGGGGGGGccccccccccccccccccc
cccccccccccccccccccccFFFccc.............cccGGGccccccccccccccccccccc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ENDMAP

NAME:   hex_subvault_empty
TAGS:   allow_dup
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   ...............
 ...................
.....................
.....................
.....................
.....................
.....................
.....................
.....................
.....................
.....................
.....................
.....................
 ...................
   ...............
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_big_grid
NSUBST: 3 = 1:3 / * = 3.., 2 = 2:2 / * = 2.., . = 4 = 2... / 28 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   ......xxx......
 ......2.xxx.2......
.........xxx.........
......xxx...xxx......
....2.xxx.3.xxx.2....
......xxx...xxx......
...xxx...AAA...xxx...
...xxx.3.AAA.3.xxx...
...xxx...AAA...xxx...
......xxx...xxx......
....2.xxx.3.xxx.2....
......xxx...xxx......
.........xxx.........
 ......2.xxx.2......
   ......xxx......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_open_curves
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   ..xx.......xx..
 ......x.....x......
........x...x........
........x...x........
.........x.x.........
.........x.x.........
.........x.x.........
.xxxxxxxx.x.xxxxxxxx.
.........x.x.........
.........x.x.........
.........x.x.........
........x...x........
........x...x........
 ......x.....x......
   ..xx.......xx..
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_bowtie
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   ...............
 ...................
.....................
..x...............x..
..xxx...........xxx..
..xxxxx.......xxxxx..
..xxxxxxx...xxxxxxx..
..xxxxxxxx+xxxxxxxx..
..xxxxxxx...xxxxxxx..
..xxxxx.......xxxxx..
..xxx...........xxx..
..x...............x..
.....................
 ...................
   ...............
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_four_corners
NSUBST: 3 = 1:3 / * = 3.., 2 = 2:2 / * = 2.., . = 4 = 2... / 28 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   .....x...x.....
 ......xx...xx......
.......xx...xx.......
......2xx.3.xx2......
..xxxxxxx...xxxxxxx..
..xxxxxxx...xxxxxxx..
.........2.2.........
......3...B...3......
.........2.2.........
..xxxxxxx...xxxxxxx..
..xxxxxxx...xxxxxxx..
......2xx...xx2......
.......xx.3.xx.......
 ......xx...xx......
   .....x...x.....
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_ellipse_pattern
NSUBST: 3 = 1:3 / * = 3.., 2 = 2:2 / * = 2.., . = 4 = 2... / 28 = 1... / *:.
SUBST:  C = AB.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   ......xxx......
 .......xx2xx.......
...xx..xx...xx..xx...
....x...........x....
....xx2.......2xx....
...xx..xxx3xxx..xx...
..xx...x.....x...xx..
..x2...3..C..3...2x..
..xx...x.....x...xx..
...xx..xxx3xxx..xx...
....xx2.......2xx....
....x...........x....
...xx..xx...xx..xx...
 .......xx2xx.......
   ......xxx......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_fishy
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       xxxxxxx
     ...xxxxx...
   ......xxx......
 xx.......x.......xx
xxxxx.....x.....xxxxx
xxxxxx....x....xxxxxx
xxxxxxx..xxx..xxxxxxx
..xxxx..xx.xx..xxxx..
...x....x...x....x...
......A...A...A......
...x....x...x....x...
..xxxx..xx.xx..xxxx..
xxxxxxx..xxx..xxxxxxx
xxxxxx....x....xxxxxx
xxxxx.....x.....xxxxx
 xx.......x.......xx
   ......xxx......
     ...xxxxx...
       xxxxxxx
         xxx
ENDMAP

NAME:   hex_subvault_narrow
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       ......x
     x.......x..
   ..x.xxxx..x...x
 x...x.x.....x...x..
.x.x.x.x..xxxx.x.x...
.x.x.x.x.....x.x.x.x.
.x.x.x.xxxx..x.x.x.x.
.x.x.x.x.....x.x.x.x.
.x.x.x.x..xxxx.x.x.x.
.x.x.x.x.....x.x.x.x.
.x.x.x.xxxx..x.x.x.x.
.x.x.x.x.....x.x.x.x.
.x.x.x.x..xxxx.x.x.x.
.x.x.x.x.....x.x.x.x.
...x.x.xxxx..x.x...x.
 ..x.x.x.....x.x...x
   x...x..xxxx.x..
     ..x.......x
       x......
         ...
ENDMAP

NAME:   hex_subvault_octagon
NSUBST: 3 = 1:3 / * = 3.., 2 = 2:2 / * = 2.., . = 4 = 2... / 28 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   .......2.......
 ......Axx+xxA......
......Axx...xxA......
.....Axx.....xxA.....
....Axx.......xxA....
....xx..A.3.A..xx....
....x....2.2....x....
...2+...3.B.3...+2...
....x....2.2....x....
....xx..A.3.A..xx....
....Axx.......xxA....
.....Axx.....xxA.....
......Axx...xxA......
 ......Axx+xxA......
   .......2.......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_one_slice
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .x.....
     ...xx......
   ......xx.......
 ........xx.........
x.........x....x.....
xxx.......x...xxx....
..xx......xx...x.....
...xxx.....+.........
.....xx....+.....x...
......xx...xx...xxx..
.......xxx..x....x...
..x......xx.x........
.xxx......xxxx..x....
..x....x....xx.xxx...
......xxx.......x....
 ......x...x........
   .......xxx.....
     ......x....
       .......
         ...
ENDMAP

NAME:   hex_subvault_rings
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ..xxxxxxx..
   ..xx.......xx..
 ...x...........x...
...x....xxxxx....x...
..x...xx.....xx...x..
..x..x.........x..x..
.x...x...xxx...x...x.
.x..x..xx...xx..x..x.
.x..x..x.....x..x..x.
.x..x..xx...xx..x..x.
.x...x...xxx...x...x.
..x..x.........x..x..
..x...xx.....xx...x..
...x....xxxxx....x...
 ...x...........x...
   ..xx.......xx..
     ..xxxxxxx..
       .......
         ...
ENDMAP

NAME:   hex_subvault_roundabout
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       xxxxxxx
     .xxxxxxxxx.
   x..xxxxxxxxx..x
 xxxx..xxxxxxx..xxxx
xxxxxx..xxxxx..xxxxxx
xxxxxxx..xxx..xxxxxxx
xxxxxxxx.xxx.xxxxxxxx
xxxxxxxx.xxx.xxxxxxxx
.........xxx.........
......xxxxxxxxx......
.........xxx.........
xxxxxxxx.....xxxxxxxx
xxxxxxxx.....xxxxxxxx
xxxxxxx..xxx..xxxxxxx
xxxxxx..xxxxx..xxxxxx
 xxxx..xxxxxxx..xxxx
   x..xxxxxxxxx..x
     .xxxxxxxxx.
       xxxxxxx
         xxx
ENDMAP

NAME:   hex_subvault_dug_out
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
NSUBST: A = 1:B / *:A
: hex_setup(_G)
MAP
         ...
       .......
     .....x.....
   ....x..xx......
 ...xxxx..xxAxxx....
...xxxxx..xxxxxxx....
..xxxxxx.............
..xxxxxx.............
..xxxxxx..xxx..xxx...
..........xxx..xxxx..
.........Axxx..xxxx..
...xxxxxxxxxx..xxxx..
...xxxxxxxxxx..xxx...
...xxxxxA......xxA...
....xxxx.......xx....
.......x..xxx..xx....
 ......x..xx...x....
   .......x.......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_village
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ....xxx....
   .....xx.xx.....
 .......x...x.......
..xxxx..x...x..xxxx..
..x..x..x...x..x..x..
..x..x..xx+xx..x..x..
..xxx+.........+xxx..
.....................
..........B..........
.....................
..xxx+.........+xxx..
..x..x..xx+xx..x..x..
..x..x..x...x..x..x..
..xxxx..x...x..xxxx..
 .......x...x.......
   .....xx.xx.....
     ....xxx....
       .......
         ...
ENDMAP

NAME:   hex_subvault_spokes
NSUBST: 3 = 1:3 / 2:2 / 4 = 3... / *:., . = 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       ...x...
     .....x.....
   ....A..x..A....
 ...x.....x.....x...
.....x....x....x.....
......x...x...x......
...A...x..x..x...A...
........x3x3x........
........3xxx3........
.xxxxxxxxxxxxxxxxxxx.
........3xxx3........
........x3x3x........
...A...x..x..x...A...
......x...x...x......
.....x....x....x.....
 ...x.....x.....x...
   ....A..x..A....
     .....x.....
       ...x...
         ...
ENDMAP

NAME:   hex_subvault_bell
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       xxxxxxx
     ..xxxxxxx..
   ...xxxxxxxxx...
 .....xxxxxxxxx.....
.....xxxxxxxxxxx.....
.....xxxxxxxxxxx.....
....xxxxxxxxxxxxx....
....xxxxxxxxxxxxx....
...xxxxxxxxxxxxxxx...
...xxxxxxxxxxxxxxx...
..xxxxxxxxxxxxxxxxx..
..xxxxxxxxxxxxxxxxx..
....xxxxxxxxxxxxx....
......xxxxxxxxx......
........xxxxx........
 ........xxx........
   .......B.......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_channel
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ...........
   .....xx+xx.....
 ......xx...xx......
....xxxxA...Axxxx....
..xxxxxxx...xxxxxxx..
..xxxxxxA...Axxxxxx..
..xxxxxxx...xxxxxxx..
..xxxxxxA...Axxxxxx..
..xxxxxxx...xxxxxxx..
..xxxxxxA...Axxxxxx..
..xxxxxxx...xxxxxxx..
..xxxxxxA...Axxxxxx..
..xxxxxxx...xxxxxxx..
....xxxxA...Axxxx....
 ......xx...xx......
   .....xx+xx.....
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_orbs
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       xxxxxxx
     ..xxxxxxx..
   ....xxxxxxx....
 .......xxxxx.......
.........xAx.........
.....................
.....................
...xxx...xxx...xxx...
..xxxxx.xxxxx.xxxxx..
..xxxxA.xxxxx.Axxxx..
..xxxxx.xxxxx.xxxxx..
...xxx...xxx...xxx...
.....................
.....................
.........xAx.........
 .......xxxxx.......
   ....xxxxxxx....
     ..xxxxxxx..
       xxxxxxx
         xxx
ENDMAP

NAME:   hex_subvault_rooms
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         x..
       ..x....
     ....+.....x
   ......x.....+..
 ........x.....x....
xxx+xxx+xxxx+xxx.....
.....x.........x.....
.....x.........x.....
.....x.........x.....
.....x.........+.....
.....xx+xx+xx+xxxx+xx
.....x...x..x........
.....x...+..x........
.....+...x..x........
.....x...x..+........
xxx+xxx+xx..x........
 ........+..x.......
   ......x..x.....
     ....xx+xxxx
       ..x....
         x..
ENDMAP

NAME:   hex_subvault_rooms_two
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .x.....
     ...x.......
   x....+.........
 ..x....x.........+.
...+....xx+xxxx+xxx..
...x....x...x.....x..
...x....x...x.....x..
x+xxx+xxx...x.....x..
........x...+.....+..
........+...x.....x..
........x...x.....x..
xxx+xxxxxx+xx.....x..
......x.....x.....x..
......x.....xxx+xxx..
......+.....x.....+..
 .....x.....x.....x.
   ...x.....+.....
     .x.....x...
       .....x.
         ...
ENDMAP

NAME:   hex_subvault_small_grid
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
SUBST:  x = xxx.
: hex_setup(_G)
MAP
         ...
       .......
     ...x.x.x...
   ....x.x.x.x....
 ...x.x.x.x.x.x.x...
...x.x.x.x.x.x.x.x...
..x.x.x.x.x.x.x.x.x..
.x.x.x.x.x.x.x.x.x.x.
..x.x.x.x.x.x.x.x.x..
.x.x.x.x.x.x.x.x.x.x.
..x.x.x.x.B.x.x.x.x..
.x.x.x.x.x.x.x.x.x.x.
..x.x.x.x.x.x.x.x.x..
.x.x.x.x.x.x.x.x.x.x.
..x.x.x.x.x.x.x.x.x..
...x.x.x.x.x.x.x.x...
 ...x.x.x.x.x.x.x...
   ....x.x.x.x....
     ...x.x.x...
       .......
         ...
ENDMAP

NAME:   hex_subvault_two_sheets
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     .....x.....
   .....xxx.......
 .....xxxxx.........
.....xxxxxx..........
...xxxxxxxx..........
..xxxxxxxxx..........
..xxxxxxxx.......xx..
..xxxxxx.......xxxx..
..xxxx.......xxxxxx..
..xxx......xxxxxxxx..
..x......xxxxxxxxxx..
.........xxxxxxxxxx..
.........xxxxxxxx....
.........xxxxxx......
 ........xxxx.......
   ......xx.......
     ...........
       .......
         ...
ENDMAP

NAME:   hex_subvault_filled
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       ...x...
     ...xxxxx...
   ...xxxxxxxxx...
 ...xxxxxxxxxxxxx...
..xxxxxxxxxxxxxxxxx..
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxxxx.
..xxxxxxxxxxxxxxxxx..
 ...xxxxxxxxxxxxx...
   ...xxxxxxxxx...
     ...xxxxx...
       ...x...
         ...
ENDMAP

NAME:   hex_subvault_double_channel
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       ..xxx..
     ....xxx....
   .......x.......
 .xxxxxx..x..xxxxxx.
..xxx.....x.....xxx..
.xxxxx..xxxxx..xxxxx.
.xxxxxx..xxx..xxxxxx.
.xxxxxx...B...xxxxxx.
.xxxxxxx.....xxxxxxx.
.xxxxxxxx...xxxxxxxx.
.xxxxxxxxx.xxxxxxxxx.
.xxxxxxxxx.xxxxxxxxx.
.xxxxxxxxx.xxxxxxxxx.
.xxxxxxxxx.xxxxxxxxx.
..xxxxxxxx.xxxxxxxx..
 ...xxxxxx.xxxxxx...
   ...xxxx.xxxx...
     ...xx.xx...
       .......
         ...
ENDMAP

NAME:   hex_subvault_uneven
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       .xxxxx.
     ...xxxxx...
   ......xxx......
 xx.......x.......xx
..xx......x......xx..
...xx.....x.....xx...
....xx....x....xx....
......x...x...x......
.......x.....x.......
........xx.xx........
........xxBxx........
.......xxxAxxx.......
....xxx..xAx..xxx....
..xxx....xAx....xxx..
xxx.......x.......xxx
 .........x.........
   .......x.......
     .....x.....
       ..xxx..
         xxx
ENDMAP

NAME:   hex_subvault_angles
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         ...
       .......
     ....xx.....
   .....xx..xx....
 ......xx....xx..xx.
xxxxxxxxxxx...xxxx...
xxxxxxxxxxx....xx....
..xxA.........xx.....
..xx.........xx...x..
..xx........xx...xx..
..xx....xx.xx....xx..
..xx...xx........xx..
..x...xx.........xx..
.....xx.........Axx..
....xx....xxxxxxxxxxx
...xxxx...xxxxxxxxxxx
 .xx..xx....xx......
   ....xx..xx.....
     .....xx....
       .......
         ...
ENDMAP

NAME:   hex_subvault_crossings
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
NSUBST: x = 1:Bx / 12 = Axxx / x
: hex_setup(_G)
MAP
         ..x
       ..xx...
     ..x.xx...x.
   x....x..x.x...x
 ...x..x.x..x...x...
x....xx...xx.x.x.....
.x...xx...xx..x.....x
..x.x..x.x..xx.x...x.
...x....x...xx..x.x..
x.x.x..x.x.x..x..x..x
.x...xx...x....xx.xx.
x.x..xx..x.x...xx.xx.
...xx..xx...x.x..x..x
...xx..xx....x..x.x..
..x..xx..x..x.xx...x.
.x...xx...xx..xx....x
 ...x..x..xx.x..x...
   x....xx..x....x
     ...xx.x.x..
       x..x...
         x.x
ENDMAP

NAME:   hex_subvault_bug
NSUBST: . = 1:3 / 4 = 3... / 2:2 / 12 = 2... / 3:1 / 16 = 1... / *:.
: hex_setup(_G)
MAP
         xxx
       .......
     ....xxx....
   ......x.x......
 ...x....x.x....x...
x..xx...xx.xx...xx..x
x...x.xxxx.xxxx.x...x
x.....xxxx.xxxx.....x
x+xxxxxxxx.xxxxxxxxxx
....xxxxx...xxxxx....
..........B..........
....xxxxx...xxxxx....
xxxxxxxxxx.xxxxxxx+xx
x.....xxxx.xxxx.....x
x...x.xxxx.xxxx.x...x
x..xx...xx.xx...xx..x
 ...x....x.x....x...
   ......x.x......
     ....xxx....
       .......
         xxx
ENDMAP
