##############################################################################
# pan.des: Minivaults particular to Pan, and the lairs of the Pan Demon Lords
#
# Contents:
#   Pan inline functions
#   Entry portals to Pan
#   Panlord vaults: Mnoleg, Lom Lobon, Cerebov, Gloorx Vloq.
#   Lesser demon vaults: repeating rune vaults.
#   Lesser demon vaults: standalone vault.
#
##############################################################################

##############################################################################
# Pan lua functions
###############################################################################

: crawl_require('dlua/vault.lua')

# The generic pan lord warning message.

{{
function pan_lord_epilogue(name)
    local msgs = {
        Mnoleg = "The air here is shimmering with an eerie glow.",
        ['Lom Lobon'] = "You sense a powerful magical presence. It is not pleased.",
        Cerebov = "Searing heat pours from the floors and walls of this place.",
        ['Gloorx Vloq'] = "Shadowy figures dance across your vision."
    }
    local runes = {
        Mnoleg = "glowing",
        ['Lom Lobon'] = "magical",
        Cerebov = "fiery",
        ['Gloorx Vloq'] = "dark"
    }

    crawl.mpr(msgs[name], "warning")
    crawl.mpr("The mighty Pandemonium lord " .. name .. " resides here.", "warning")
    -- Counterpart to branch_rune_desc from lookup-help.cc
    crawl.mpr("They guard the " .. runes[name] .. " rune of Zot.")
    crawl.take_note('Entered the realm of ' .. name .. '.')
    crawl.mark_milestone('br.enter', 'entered the realm of ' .. name .. '.', "")
end

function pan_lord_setup(_G, name)
    _G.tags("unrand")

    local monsters = {
        Mnoleg = "sin beast band w:100 / " ..
                 "neqoxec w:250 / chaos spawn w:250 / " ..
                 "zykzyl w:300 / tormentor / " ..
                 "tentacled monstrosity / protean progenitor band / " ..
                 "very ugly thing / glass eye band / " ..
                 "golden eye band / eye of devastation / "..
                 "shining eye / demonspawn corrupter",
        ['Lom Lobon'] = "hellwing w:100 / sixfirhy w:100 / " ..
                 "smoke demon w:200 / nekomata w:50 / green death w:200 / " ..
                 "blizzard demon w:250 / glowing orange brain / rakshasa / " ..
                 "nagaraja / merfolk aquamancer / jorogumo / " ..
                 "fenstrider witch / draconian annihilator / " ..
                 "deep elf annihilator / titan w:5 / lich w:5 / " ..
                 "demonspawn blood saint",
        Cerebov = "sun moth / efreet / sun demon / ynoxinul / balrug / " ..
                  "undying armoury w:1 / brimstone fiend w:1 / " ..
                  "demonspawn warmonger w:1",
        ['Gloorx Vloq'] = "juggernaut draugr w:75 / " ..
                 "caustic shrike draugr w:50 / " ..
                 "hellephant draugr w:75 / shadow demon w:100 / " ..
                 "soul eater w:200 / reaper w:200 / executioner w:300 / " ..
                 "flayed ghost / laughing skull band / shadow wraith / " ..
                 "demonspawn soul scholar"
    }
    local decName = "empty"

    _G.set_random_mon_list(monsters[name])

    -- Set level colours / tiles, the rune, vengeful demonspawn, and decor tag.
    if name == "Mnoleg" then
        _G.lfloorcol("lightred")
        _G.lrockcol("yellow")
        _G.lfloortile("floor_nerves")
        _G.lrocktile("wall_zot_yellow")
        _G.tile ("c = stone_wall_flesh_cage")
        _G.kitem("O = glowing rune of Zot")
        _G.kmons("& = patrolling demonspawn corrupter")
        decName = "mnolegdec"
    elseif name == "Lom Lobon" then
        _G.lfloorcol("lightgrey")
        _G.lrockcol("white")
        _G.lfloortile("floor_rough_lightgray")
        _G.lrocktile("wall_hall_white")
        _G.tile ("b = wall_crystal_bookcase")
        _G.tile ("c = stone_wall_shoals")
        _G.kitem("O = magical rune of Zot")
        _G.kmons("& = patrolling demonspawn blood saint")
        decName = "lomdec"
    elseif name == "Cerebov" then
        _G.lfloorcol("red")
        _G.lrockcol("red")
        _G.lfloortile("floor_volcanic")
        _G.lrocktile("wall_zot_red")
        _G.kitem("O = fiery rune of Zot")
        _G.tile ("v = dngn_metal_steel_blood")
        _G.kmons("& = patrolling demonspawn warmonger")
        decName = "cerebovdec"
    elseif name == "Gloorx Vloq" then
        _G.lfloorcol("blue")
        _G.lrockcol("blue")
        _G.lfloortile("floor_nerves_darkgray")
        _G.lrocktile("wall_hall_of_shadows")
        _G.tile ("c = stone_wall_shadow_mesh")
        _G.kitem("O = dark rune of Zot")
        _G.kmons("& = patrolling demonspawn soul scholar")
        decName = "gloorxdec"
    end

    -- Make each rune a little bit harder for each one you get.
    if count_pan_runes() > 0 then
        _G.nsubst("& = " .. count_pan_runes() .. ":& / *:`")
    else
        _G.subst("& = .")
    end

    -- Have a decent chance to fancify the floor afterwards.
    if crawl.one_chance_in(3) then
        _G.hook("post_place", function()
            dgn.place_maps{ tag=decName, count=1 }
        end)
    end
end

colours = {
    "magenta", "blue", "cyan", "green",
    "brown", "red", "lightgrey"
}
brightcolours = {
    "lightmagenta", "lightblue", "lightcyan", "lightgreen",
    "yellow", "lightred", "white"
}

disco_choices = {
    function (x, y, ballx, bally, turn, rand)
        local index = ((x + turn) % #colours) + 1
        if rand > 60 then
            return colours[index]
        else
            return brightcolours[index]
        end
    end,
    function (x, y, ballx, bally, turn, rand)
        local index = ((y + turn) % #colours) + 1
        if rand > 60 then
            return colours[index]
        else
            return brightcolours[index]
        end
    end,
    function (x, y, ballx, bally, turn, rand)
        local angle = math.atan(y - bally, x - ballx)
        local segment = (math.floor(angle / (2 * math.pi) * (2 * #colours)) + 2 * #colours) % (2 * #colours)
        local index = (math.floor((segment + turn) / 2) % #colours) + 1
        if rand > 60 then
            return colours[index]
        else
            return brightcolours[index]
        end
    end,
    function (x, y, ballx, bally, turn, rand)
        local distance = math.floor(math.sqrt((x - ballx)^2 + (y - bally)^2))
        local index = ((distance + turn) % #colours) + 1
        if rand > 60 then
            return colours[index]
        else
            return brightcolours[index]
        end
    end
}

colour.add_colour("disco", function(rand, x, y)
    local vault = dgn.vault_at(x, y)
    local ballx = 0
    local bally = 0
    if vault then
        local ul = vault:pos()
        local ulx, uly = ul:xy()
        x, y = x - ulx, y - uly

        local map = vault:map()
        local bx, by = dgn.gly_point(map, "D")
        if bx ~= nil then
            ballx = bx
            bally = by
        end
    end

    local cycle = disco_choices[math.floor((you.turns() % (16 * #disco_choices)) / 16) + 1]
    return cycle(x, y, ballx, bally, you.turns() % 16, rand)
end)

function pan_demonic_rune(e, glyph, place_lord)
    e.subst(glyph .. ' = ' .. (place_lord and glyph or '.') .. ':6 O:1 N:2')
    e.kitem('O = demonic rune of Zot')
    e.kfeat('N = exit_pandemonium')
    if place_lord then
        e.kmons(glyph .. 'ON = pandemonium lord')
    end
end

function pan_lord_vault_contents(e, anyglyph, commonglyph, greaterglyph)
    e.tags('allow_dup')
    e.orient('float')
    e.kmons(anyglyph .. " = any demon w:76 / demonspawn soul scholar w:1 / \
                            demonspawn blood saint w:1 / \
                            demonspawn corrupter w:1 / \
                            demonspawn warmonger w:1")
    e.kmons(commonglyph .. " = common demon")
    e.kmons(greaterglyph .. " = greater demon w:107 / nekomata w:1 / \
                                demonspawn soul scholar w:3 / \
                                demonspawn blood saint w:3 / \
                                demonspawn corrupter w:3 / \
                                demonspawn warmonger w:3")
    e.kfeat('< = {')

    -- Have a small chance to fancify the floor afterwards.
    if crawl.one_chance_in(5) then
        local decName = "pandec"
        if crawl.coinflip() then
            decName = "luniq_decor_lord"
        end

        e.hook("post_place", function()
            dgn.place_maps{ tag=decName, count=1 }
        end)
    end
end

function pan_entry_feature(e, glyph)
    e.tags("extra luniq_enter_pan chance_enter_pan")
-- start TAG_MAJOR_VERSION == 34
    e.depth("Depths, D:21-")
    -- 100% chance of placing on Depths:2
    e.depth_chance("Depths:2", 10000)
    e.depth_chance("D:24", 10000)
-- end TAG_MAJOR_VERSION
-- start TAG_MAJOR_VERSION == 35
--     e.depth("Depths")
--     -- 100% chance of placing on Depths:2
--     e.depth_chance("Depths:2", 10000)
-- end TAG_MAJOR_VERSION
    e.chance(2500)
    e.kfeat(glyph .. " = enter_pandemonium")
end

function pan_entry_vault_contents(e, glyph)
    e.tags("patrolling no_monster_gen nolayout_encompass")
    local tierthree = "rust devil w:5 / sixfirhy / smoke demon / " ..
                      "soul eater / sun demon / ynoxinul w:5"
    local tiertwo = "balrug / blizzard demon / cacodemon / " ..
                    "green death / sin beast / hellion / " ..
                    "reaper / shadow demon / tormentor"

    if e.is_validating() then return end
    if crawl.x_chance_in_y(you.depth() + 3, you.depth() + 5) then
        e.tags("luniq_hellpanabyss_threat_entry")
        e.kmons(glyph .. "1 = " .. tiertwo)
        e.kmons("2 = " .. tierthree)
        e.nsubst("2 = 2 = 22. / *:.")
        e.nsubst("1 = 1:1 / *:.")
    else
        e.subst("12 = .")
        e.kmons(glyph .. " = " .. tiertwo .. " / " ..
                tierthree .. " / " .. tierthree)
    end

    e.ftile(".+12O$ : floor_demonic_red / floor_demonic_blue / " ..
                     "floor_demonic_green / floor_demonic_magenta")
end

function pan_declare_demonic_rune(holy)
  if holy then
    crawl.mpr("The tension of great conflict fills the air!", "warning")
    crawl.mpr("The demonic rune of Zot may be found here.")
  else
    crawl.mpr("A powerful Pandemonium lord resides here.", "warning")
    crawl.mpr("It guards the demonic rune of Zot.")
  end
end

function pan_highlights_setup(e)
  -- Choose fixed demonic rune vaults.
  local set = { "boxes", "hellions", "pain", "frozen", "disco" }
  local vaultone = "_" .. util.random_from(set)
  local vaulttwo = vaultone
  while vaulttwo == vaultone do
     vaulttwo = "_" .. util.random_from(set)
  end
  e.hook('post_place', function ()
    dgn.place_maps{tag=("pan_fixed_rune" .. vaultone), count=1, die_on_error=true}
    dgn.place_maps{tag=("pan_fixed_lure" .. vaulttwo), count=1, die_on_error=true}
    dgn.place_maps{tag=("serial_pan" .. vaultone), count=3}
    dgn.place_maps{tag=("serial_pan" .. vaulttwo), count=3}
  end)
end

function demonic_rune_vault_is_decoy(e)
  local params = dgn.map_parameters()
  if params == nil then
    return false
  end

  local tag, tag2 = table.unpack(params)
  return tag ~= nil and string.find(tag, "lure")
end

function serial_pan_setup(e, set)
  e.tags("serial_pan_" .. set .." unrand transparent allow_dup no_dump")
  e.kfeat("m = iron_grate")
end
}}


##############################################################################
# Entry portals to Pan
##############################################################################

default-depth: Depths

# The generic entry; this is the one that should place in encompass vaults.
# Has a higher weight than everything else.
NAME: pan_entry
TAGS: allow_dup overwrite_floor_cell no_exits replace_portal transparent
TAGS: fallback_enter_pan
WEIGHT: 50
: pan_entry_feature(_G, 'O', true)
MAP
O
ENDMAP

# Other entries; these ones are derived from rand_demon Pan vaults.
NAME:   rand_demon_pan_entry_1
TAGS:   transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
xxxxxxxx@@x
x''1...x''x
x''x...x''x
x''x...x''x
x''x.1.x''x
x''x2O2x''x
x''x.1.x''x
x''x...x''x
x''x...1''x
x@@xxxxxxxx
ENDMAP

NAME:   rand_demon_pan_entry_3
TAGS:   transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'x'x'x'x'x''
''x.x.x.x.x'
'x.x.x2x.x''
''x.x1x1x.x'
'x.x2xOx2x''
''x.x1x1x.x'
'x.x.x2x.x''
''x.x.x.x.x'
'x.x.x.x.x''
''x'x'x'x'x'
''''''''''''
ENDMAP

NAME:   rand_demon_pan_entry_4
TAGS:   transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
'''''''''''
'xxxxxxxxx'
'x...x1+.x'
'x+x+x+x.x'
'x1x..2x2x'
'x+xxx+x.x'
'x2..x1xOx'
'x+x.xxxxx'
'x1x.....+'
'xxxxxxxxx'
'''''''''''
ENDMAP

NAME:   rand_demon_pan_entry_5
TAGS:   transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'''xx++xx'''
''xx....xx''
'xx......xx'
'x..2.....x'
'+...1O...+'
'+...11...+'
'x..2..2..x'
'xx......xx'
''xx....xx''
'''xx++xx'''
''''''''''''
ENDMAP

NAME:   rand_demon_pan_entry_7
TAGS:   transparent
NSUBST: ? = 1:O / 4:1 / 2:2 /*:.
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'xxx''''xxx'
'x?xx+xxx?x'
'xx+....+xx'
''x.x++x.x''
''x.+??+.+''
''+.+??+.x''
''x.x++x.x''
'xx+....+xx'
'x?xxx+xx?x'
'xxx''''xxx'
''''''''''''
ENDMAP

NAME:   rand_demon_pan_entry_8
TAGS:   transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
 '''''''''''
''''xxxxxxx'
''xxx....1x'
'xx..1..O.x'
'x........x'
'xx.......x'
''xx21..1.x'
''''22...xx'
'''''x...x''
''x''xx.xx''
 @''''xxx'''
  '''''''''
ENDMAP

NAME:   rand_demon_pan_entry_9
TAGS:   transparent
NSUBST: ^ = 4:1 / 2:2 / *:.
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'xxxxxxxxxx'
'x.+.....xx'
'x.xxxxxx.x'
'x.xO^^^x.x'
'x.x^^^^x.x'
'x.x^^^^x.x'
'x.x^^^^x.x'
'x.xxxx+x.x'
'xx....2x.x'
'xxxxxxxx+x'
''''''''''''
ENDMAP

###################################
# More entries based on panlord vaults.

NAME:  grunt_pan_entry_in_and_out
TAGS:  transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'x+xxxxxx+x'
'x.x.2O.x.x'
'x2x....x2x'
'x.x.11.x.x'
'x2x....x2x'
'x.xx++xx.x'
'x2xx..xx2x'
'x.xx..xx.x'
'x2..11..2x'
'xxxxxxxxxx'
''''''''''''
ENDMAP

NAME:  grunt_pan_entry_spiral
TAGS:  transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
''xxxxxxxxx'
'xx.x2.2..+'
'x.x.xxxxxx'
'x2x1x.x.xx'
'x.x.2O1x2x'
'x2x1$$.x.x'
'xx.x.x1x2x'
'xxxxxx.x.x'
'+..2.2x.xx'
'xxxxxxxxx''
''''''''''''
ENDMAP

NAME:  grunt_pan_entry_zigzag
TAGS:  transparent
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
''''''''''''
'xxxxxxxxxx'
'x..2..2..+'
'x.2.xxxxxx'
'xx.1.xx''''
''xx.21xx'''
'''xx1O.xx''
''''xx.1.xx'
'xxxxxx.2.x'
'+..2..2..x'
'xxxxxxxxxx'
''''''''''''
ENDMAP

NAME:  grunt_pan_entry_sceptre
: pan_entry_feature(_G, 'O')
: pan_entry_vault_contents(_G, 'O')
MAP
 @''''''''@
@''xxxxxx''@
''xx.2O.xx''
x+x......x+x
x.x.1..1.x.x
x.x......x.x
x.x..22..x.x
x2xx....xx2x
x.2xx++xx2.x
xx..2..2..xx
 xxx.11.xxx
   xxxxxx
ENDMAP

##############################################################################
# Random unguarded exits
##############################################################################
default-depth: Pan

NAME:   pan_exit
TAGS:   extra allow_dup transparent no_dump
CHANCE: 100%
{{
local exit_chance = 5 + 3*count_pan_runes()
local floor_chance = 100 - exit_chance
kfeat("O = exit_pandemonium w:" .. exit_chance .. " / floor w:" .. floor_chance)
}}
MAP
O
ENDMAP

NAME:   pan_to_abyss
TAGS:   extra allow_dup transparent no_dump
CHANCE: 100%
{{
local exit_chance = 25 + 10*count_pan_runes()
local floor_chance = 100 - exit_chance
kfeat("O = exit_through_abyss w:" .. exit_chance ..
      " / floor w:" .. floor_chance)
}}
MAP
O
ENDMAP


##############################################################################
# Pan Demon Lairs
#
# NOTE: The pandemonium lord levels are requested by tag; if you change the
# tag, also update dungeon.cc.
#
# You can define alternate levels for a pandemonium lord by using the same
# TAGS: and a different NAME:
##############################################################################

###########################################################################
# Mnoleg
#
NAME:     mnoleg
TAGS:     mnoleg uniq_mnoleg
ORIENT:   northeast
TILE:     c = dngn_stone_wall_yellow
MONS:     patrolling Mnoleg, neqoxec / chaos spawn w:2 / brain worm w:2
MONS:     zykzyl, tentacled monstrosity w:30 / sin beast band / tormentor
MONS:     protean progenitor band
ITEM:     potion of mutation q:1
NSUBST:   2 = 4:3 / 1:4 / 3:5 / 3 = 234 / *:2
: pan_lord_setup(_G, 'Mnoleg')
epilogue{{
  pan_lord_epilogue('Mnoleg')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x..................2.............xxxx
x.....2..........................xxxx
x..ccccccccc......cccc..ccccccc..xxxx
x..ccccccccc.2....ccccc..cccccc..xxxx
x..ccccccccc........cccc..ccccc..xxxx
x..ccccccccc....1.dcOcccc..cccc..xxxx
x2.ccccccccc...2....cccccc2.ccc..xxxx
x..ccccccccc......ccccccccc..cc..xxxx
x..cccccccc........ccccccccc..c..xxxx
x..ccccccc...ccc....ccccccccc....xxxx
x..cccccc...ccccc....ccccccccc...xxxx
x..ccccc...ccccccc....ccccccccc..xxxx
x..cccc...ccccccccc....ccccccc...xxxx
x..ccc.2.ccccccccccc..2.ccccc....xxxx
x..cc.....ccccccccccc....ccc.....xxxx
x..c...c...ccccccccccc....c.2....xxxx
x.....ccc.2.ccccccccccc.......c..xxxx
x....ccccc..&ccccccccccc.....cc..xxxx
x.2.ccccccc&.&ccccccccccc...ccc..xxxx
x...........&.....2........cccc..xxxx
x...c..ccccccc..ccccccc...ccccc..xxxx
x..ccc......2c..c2cccc...cccccc..xxxx
x.ccccc..ccc.c..c2ccc.2.ccccccc..xxxx
x.cccccc..cc.c..c.cc...cccccccc..xxxx
x.ccccccc..c.c..c.c...ccccccccc..xxxx
x.cccccccc...c..c....cccccccccc..xxxx
x.ccccccccc..c..c...ccccccccccc..xxxx
x................................xxxx
x................................xxxx
xxxxxxxxxxxxxx@@xxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     mnoleg_st
TAGS:     mnoleg uniq_mnoleg
ORIENT:   southwest
MONS:     patrolling Mnoleg
MONS:     neqoxec / chaos spawn w:2, very ugly thing, brain worm
MONS:     sin beast band, tentacled monstrosity, tormentor
KMONS:    A = zykzyl
KMONS:    B = protean progenitor
ITEM:     potion of mutation q:1 pre_id
SUBST:    D = 5:20 6 7 A B
SHUFFLE:  qep
NSUBST:   q = 2:6 / 1:7 / *:.,  e = 2:A / *:., p = 3:B / *:.
: pan_lord_setup(_G, 'Mnoleg')
epilogue{{
  pan_lord_epilogue('Mnoleg')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxx@xxxxxxxxx
xxc...........................cxx
xxc..ccccccc..c..c.c.c.c.c.c.ccxx
xxc...ccccc..ccc..c.........c.cxx
xxc.c5.ccc.5ccccc..c.2.7.2.c..cxx
xcc.cc..c..ccccccc..c.2.2.c...cxx
xc..ccc...ccccccccc..c.5.c..c.cxx
xcc.cccc...ccccccccc..c.c..cc.cxx
xxc..c.cc...ccccccccc..c..cc..cxx
xcc.ccqqcc...ccccccccc...cccc.ccx
xc..ccqqqcc...ccccccccc.ccccc..cx
xcc.ccqqq..c...ccccc..ccccccc.ccx
xxc..cqq...c....ccc....c...c..cxx
xcc3cc......cc...c...cc.....c.cxx
xc..cc3......cc.....c....4...ccxx
xcc..cc....eeecc...ccc..4B4..ccxx
xxc...cc3.eeecc&..ccccc..4..cccxx
xxcc...cceeecc&..cc..ccc...ccccxx
xxccc...ccecc...cc....cccccccccxx
xxc.c....ccc&..cc......ccccccccxx
xxcp.cc...c&...........4cccccccxx
xxc.pp.c.....c...........ccccccxx
xxcppppcc...cc............cccccxx
xxc.ppppcc4cc..............ccccxx
xxcp.pp.pccc........1....7..cccxx
xxc....3ccc.................cccxx
xxc3...cccc..........d....A.cccxx
xxc..3cccccc..........cc....cccxx
xxc..cccccccc.........cOc..ccccxx
xxc.cccccccccc5....A...cc.cccccxx
xxccccccccccccc..........ccccccxx
xxcccccccccccccccccccccccccccccxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

# The eyes probably make this vault harder than the others, but it's still Mnoleg.
NAME:     evilmike_mnoleg_eyes
TAGS:     mnoleg uniq_mnoleg
ORIENT:   northwest
MONS:     patrolling mnoleg
MONS:     glass eye / eye of devastation / golden eye w:2
MONS:     protean progenitor, shadow demon / tentacled monstrosity
MONS:     zykzyl, neqoxec / chaos spawn w:2 / great orb of eyes w:2
ITEM:     potion of mutation pre_id
KFEAT:    T = fountain_eyes
SHUFFLE:  '-
NSUBST:   O = 1:O / 1:d / *:|
NSUBST:   C = 1:4 / *:N, N = 2:4 / *:6
NSUBST:   M = 2:3 / 2 = 34. / *:., E = 2:2 / 2 = 22. / *:.
NSUBST:   ' = 2:3 / 2 = 34. / 1:5 / 2:6 / *:.
NSUBST:   - = 3:2 / 2 = 2. / 1:5 / 2:6 / *:.
: pan_lord_setup(_G, 'Mnoleg')
epilogue{{
  pan_lord_epilogue('Mnoleg')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xcccccccccccccccccccccccccccccccccccx
xcOcccccccccccccccccccccOcccccccccccx
xcc...ccccccccccccccc...ccccccccccccx
xcc.ccMcccccccccccccMcc.ccccccccccccx
xcc.ccM.ccccccccccc.Mcc.ccccccccccccx
xcccMMC..ccccccccc..CMMcccccccccccccx
xcccc.....ccccccc.....ccccc''cccccccx
xccccc.....ccccc.....ccccc''''ccccccx
xcccccc.............ccccc''''''cccccx
xccccccc...EEE.....ccccc''''''''ccccx
xcccccccc.EEEEE...ccccc''''''''''cccx
xcccccccc.EE1EE...cccc.'''''''''''ccx
xcccccccc.EEEEE...ccc'''cc'''''''..cc
xcccccccc..EEE....cc'''cccc'''''.....
xcccccccc.........cc'''cccc'''cc....@
xccccccc...........cc'''cc'''cc......
xcccccc.............cc''''''cc.....cc
xccccc.....ccccc.....cc''''cc.....ccx
xcccc.....ccccccc..c..cc''cc.....ccxx
xcccMMC..ccccc--cc..c.&cccc.....ccxxx
xcc.ccM.ccccc----cc..&..cc.....ccxxxx
xcc.ccMccccc------cc&.&.......ccxxxxx
xcc...ccccc---cc---cc..T.....cccxxxxx
xcOccccccc---cccc---cc......ccccxxxxx
xcccccccc----cccc---cc......ccccxxxxx
xccccccc------cc---cc........cccxxxxx
xcccccc-----------cc........N.ccxxxxx
xcccccc----------cc.....cc.N2..cxxxxx
xccccccc--------cc.....cccc..N.cxxxxx
xcccccccc------cc.....cccccc..Ncxxxxx
xccccccccc-----c.....cccccccccccxxxxx
xcccccccccc---......ccxxxxxxxxxxxxxxx
xccccccccccc-......ccxxxxxxxxxxxxxxxx
xcccccccccccc.....ccxxxxxxxxxxxxxxxxx
xccccccccccccc...ccxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxc.@.cxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     mnoleg_grunt
TAGS:     mnoleg uniq_mnoleg
ORIENT:   west
MONS:     patrolling Mnoleg, patrolling zykzyl
MONS:     neqoxec / chaos spawn w:2, protean progenitor
MONS:     sin beast band, tentacled monstrosity, very ugly thing
ITEM:     potion of mutation pre_id q:1
SHUFFLE:  Od, 1e
SUBST:    e = 4
: pan_lord_setup(_G, 'Mnoleg')
epilogue{{
  pan_lord_epilogue('Mnoleg')
}}
MAP
xxxxx@@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxc..cccc.............cccccccccccc..cx
xxxxc..ccc...........2...cccccccccc...cx
xxxxc..cc....ccccc...cc.3.cccccccc..2.cx
xxxxc........cccc...cccc..ccccccc.....cx
xxxxc.7......ccc...ccccc..cccccc......cx
xxxxc....cc..cc...ccccc...ccccc...cc..cx
xxxxc...ccc..c...ccccc...ccccc...ccc..cx
xxxxc..ccc...c..cccccc..ccccc...ccc...cx
xxxxccccc...cc..cccccc..cccc...ccc...ccx
xxxxcccc...ccc.6.ccccc...cc...ccc...cccx
xxxxccc...ccccc...ccccc...4..ccc...ccccx
xxxxcc...ccccccc..5ccccc.3..ccc...cccccx
xxxxc...ccc..cccc.....ccc..ccc...ccc..cx
xxxxc..ccc....ccc.2....cccccc5..ccc...cx
xxxxc..cc.6....cc..cc.3..ccc...ccc..3.cx
xxxxc.5....cc....4.cd1cc...7..ccc.....cx
xxxxc.....ccc..7...cceOc.4....cc....5.cx
xxxxc.3..ccc...ccc..3.cc..cc....6.cc..cx
xxxxc...ccc..5cccccc....2.ccc....ccc..cx
xxxxc..ccc...ccc..ccc.....cccc..ccc...cx
xxxxccccc...ccc..3.ccccc5..ccccccc...ccx
xxxxcccc...ccc..4...ccccc...ccccc...cccx
xxxxccc...ccc...cc...ccccc.6.ccc...ccccx
xxxxcc...ccc...cccc..cccccc..cc...cccccx
xxxxc...ccc...ccccc..cccccc..c...ccc..cx
xxxxc..ccc...ccccc...ccccc...c..ccc...cx
xxxxc..cc...ccccc...ccccc...cc..cc....cx
xxxxc......cccccc..ccccc...ccc......7.cx
xxxxc.....ccccccc..cccc...cccc........cx
xxxxc.2..cccccccc.3.cc...ccccc....cc..cx
xxxxc...cccccccccc...2...........ccc..cx
xxxxc..cccccccccccc.............cccc..cx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@@xx
ENDMAP

NAME:     mnoleg_grunt_wretched_star
TAGS:     mnoleg uniq_mnoleg
ORIENT:   centre
MONS:     patrolling Mnoleg, patrolling zykzyl
MONS:     neqoxec / chaos spawn w:2, protean progenitor
MONS:     sin beast band / tentacled monstrosity
MONS:     very ugly thing / glass eye band w:15 / golden eye band w:5 / \
          eye of devastation / great orb of eyes
ITEM:     potion of mutation pre_id q:1
KFEAT:    T = fountain_eyes
NSUBST:   O = 1:O / 1:d / *:|
: pan_lord_setup(_G, 'Mnoleg')
epilogue{{
  pan_lord_epilogue('Mnoleg')
}}
MAP
              .@.@.
           xx.......xx
         xxx..&ccc...xxx
       xxxc...ccOcc...cxxx
      xx.ccc..c.c.c..ccc.xx
     xx.3.....cc.cc.....3.xx
    xxcc......c...c......ccxx
   xx.cccc.5.cc...cc.6.cccc.xx
   x.3.ccc...c.....c...ccc.3.x
  xxc..cccc..c..2..c..cccc..cxx
  xcc....cc..c.....c..cc....ccx
 xx.c..6...T.........5...4..c.xx
 x..........3.......3..........x
 ......cccc..cc...cc..cccc......
..&ccccc.....c..4..c.....ccccc...
@.cc.c........5............c.cc.@
..cOc....2......1......2....cOc..
@.cc.c............5........c.cc.@
...ccccc.....c..4..c.....ccccc&..
 ......cccc..cc...cc..cccc......
 x..........3.......3..........x
 xx.c..4...5.........T...6..c.xx
  xcc....cc..c.....c..cc....ccx
  xxc..cccc..c..2..c..cccc..cxx
   x.3.ccc...c.....c...ccc.3.x
   xx.cccc.6.cc...cc.5.cccc.xx
    xxcc......c...c......ccxx
     xx.3.....cc.cc.....3.xx
      xx.ccc..c.c.c..ccc.xx
       xxxc...ccOcc...cxxx
         xxx...ccc&..xxx
           xx.......xx
              .@.@.
ENDMAP


#######################################################################
# Lom Lobon
#
NAME:     lom_lobon
TAGS:     lom_lobon uniq_lom_lobon no_rotate no_pool_fixup
ORIENT:   north
MONS:     patrolling Lom Lobon, glowing orange brain, rakshasa / nekomata
MONS:     nagaraja w:5 / merfolk aquamancer w:5 / jorogumo w:5 / \
          fenstrider witch w:5 / lich / \
          draconian annihilator / deep elf annihilator
: pan_lord_setup(_G, 'Lom Lobon')
epilogue{{
  pan_lord_epilogue('Lom Lobon')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxwwwwwwwwwwww.......wwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxwwwwwwwwwwwwbbbwwwwwww.......wwwwwwwxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxwwwwwwwwwwwwbbbbbbbbbbbwwwwww.........wwwwwwxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxwwwwwwwwwwwwbbbbwwwwwwwwwbbbbwwwwww.........wwwwwwxxxxxxxxxxxxxxx
xxxxxxxxxxxxxwwwwwwwbbbbbbbbwwwwwwwwwwwwwwwbbbwwwww...........wwwwwxxxxxxxxxxxxx
xxxxxxxxxxxxwwwwwbbbb......bbbwwwwwwwwwwww...bbwwwww.............wwwxxxxxxxxxxxx
xxxxxxxxxxxxwwwbbb...........bbbwwwwww........bbwwwww.............wwxxxxxxxxxxxx
xxxxxxxxxxxwwwbb...............bbwwww..........bwwwwww.............wwxxxxxxxxxxx
xxxxxxxxxxxwwbb........1O.......bbww...........bbwwww..............wwxxxxxxxxxxx
xxxxxxxxxxwwwb...................bw......2......bwww.....U....2.....wwxxxxxxxxxx
xxxxxxxxxxwwbb...................bb.............bww.................wwxxxxxxxxxx
xxxxxxxxxxwwbb..3................bbb............bbw..............4..wwxxxxxxxxxx
xxxxxxxxxwwbbb...................b.b....&.&.....4....................wwxxxxxxxxx
xxxxxxxxxwwbwbb.................bb.......U......4..........U..........wxxxxxxxxx
xxxxxxxxxwwbwwbb...............bb..b....&.&.....bbw..............4.....xxxxxxxxx
xxxxxxxxxwwbbwwbbb...........bbb..bb............bwww...................xxxxxxxxx
xxxxxxxxxwwwbwwwwb..b..2..bbbb....b.............bwww...................xxxxxxxxx
xxxxxxxxxxwwbwwww...bbbbbbb.......bw.....3.....bbwwww...U.....3.......xxxxxxxxxx
xxxxxxxxxxwwbbww.................bbww........wwbwwwww.................xxxxxxxxxx
xxxxxxxxxxwwwbbw................bbwwwww....wwwbbwwww..................xxxxxxxxxx
xxxxxxxxxxwwwwbb...4...U...3....bwwwwwwwwwwwwbbwww....................xxxxxxxxxx
xxxxxxxxxxxwwwwbbb...........bbbbbwwwwwwwwwbbbwww....................xxxxxxxxxxx
xxxxxxxxxxxwwwwwwbbbb.....bbbbwwwbbbbwwwbbbbwwww....................xxxxxxxxxxxx
xxxxxxxxxxxwwwwwwwwwbbbbbbbwwwwwwwwwbbbbbwwwww......4.....4........xxxxxxxxxxxxx
xxxxxxxxxxxxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww......................xxxxxxxxxxxxxx
xxxxxxxxxxxxwwwwwwwwwwwwwwwwwwwwwwwwwwwww.......................xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxwwwwwwwwwwwwwwwwwwwww........................xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxwwwwwww......................xxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...@.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     lom_lobon_st
TAGS:     lom_lobon no_pool_fixup uniq_lom_lobon
ORIENT:   northwest
MONS:     patrolling Lom Lobon
MONS:     blizzard demon, green death
MONS:     nagaraja / merfolk aquamancer / jorogumo / fenstrider witch
MONS:     draconian annihilator, sixfirhy
SUBST:    0 = 2344444556
NSUBST:   Q = 1:O / *:4, 9 = 5 = 2233455 / *:.
NSUBST:   B = 1:. / *:b
TILE:     v = dngn_metal_wall_blue
: pan_lord_setup(_G, 'Lom Lobon')
epilogue{{
  pan_lord_epilogue('Lom Lobon')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxwxxwwwwwwwxxxxxxxwwwwwwwwwxxxxxxxxxxxx
xxxxxxxxwxwwwwbbbbbbbwwxxwwwbbbbbbbwwwxxxxxxxxxxx
xxxxxxxwwwwwbbbb...bbbbwwwbbbb...bbbbwwwxxwxxxxxx
xxxxwxxwwwwbb....0....bbwbb....0....bbwwwwwwxxxxx
xxxwwwwwwwbb...........bbb...........bbwwwwwwxxxx
xxxwwwwwwbb...wwwwwww.......wwwwwww...bbwwwwxxxxx
xxxxwwwwbb...wwwwwwwww..9..wwwwwwwww...bbwwwwxxxx
xxwwwwwbb...wwbbbbbbbww.9.wwbbbbbbbww...bbwwwwxxx
xxxwwwbb...wwbbwwwwwbbw...wbbwwwwwbbww...bbwwwxxx
xxxwwbb...wwbbwwwwwwwbb...bbwwwwwwwbbww...bbwwwxx
xxwwbb...wwbbwwvvvwwwwbbBbbwwwwvvvwwbbww...bbwxxx
xwwwbb..wwbbwwvv.vvwwwwb.bwwwwvv.vvwwbbww..bbwwxx
xxwbb...wwbwwwv.Q.vwwwwb.bwwwwv.Q.vwwwbww...bbwwx
xxwbb.0.wwbwwwvv.+vwwwwb.bwwwwv+.vvwwwbww.0.bbwwx
xwwbb...wwbwwwwvvv.wwwbb.bbwww.vvvwwwwbww...bbwxx
xxwwbb..wwbbwwwwwww.wbb...bbw.wwwwwwwbbww..bbwxxx
xxwwbb...wwbbwwwwwww.........wwwwwwwbbww...bbwxxx
xwwwwbb...wwbbwwwwwb.........bwwwwwbbww...bbwwxxx
xxxwwwbb...wwbbwwwbb.........bbwwwbbww...bbwwxxxx
xxxxwwwbb.....bbbbb...........bbbbb.....bbwwwwxxx
xxxwwwwwb.99..B.........1.........B..99.bwwwwwxxx
xxxwwwwbb.....bbbbb...........bbbbb.....bbwwwwwxx
xxwwwwbb...wwbbwwwbb.........bbwwwbbww...bbwwwxxx
xwwwwbb...wwbbwwwwwb.........bwwwwwbbww...bbwwwxx
xxwwbb...wwbbwwwwwww.........wwwwwwwbbww...bbwwxx
xxwwbb..wwbbwwwwwww.wbb...bbw.wwwwwwwbbww..bbwwxx
xwwbb...wwbwwwwvvv.wwwbb.bbwww.vvvwwwwbww...bbwwx
xwwbb.0.wwbwwwvv.+vwwwwb.bwwwwv+.vvwwwbww.0.bbwxx
xxwbb...wwbwwwv.Q.vwwwwb.bwwwwv.Q.vwwwbww...bbwwx
xxxwbb..wwbbwwvv.vvwwwwb.bwwwwvv.vvwwbbww..bbwwxx
xxwwbb...wwbbwwvvvwwwwbbBbbwwwwvvvwwbbww...bbwwxx
xxxxwbb...wwbbwwwwwwwbb...bbwwwwwwwbbww...bbwwwxx
xxxxwwbb...wwbbwwwwwbbw...wbbwwwwwbbww&..bbwwwxxx
xxxxxwwbb...wwbbbbbbbww.9.wwbbbbbbbww&.&bbwwwwxxx
xxxxwwwwbb...wwwwwwwww..9..wwwwwwwww..&....wwwxxx
xxxwwwwwwbb...wwwwwww.......wwwwwww...b.....wwwxx
xxxxwwwwwwbb...........bbb...........bb.......wxx
xxxxxxwwwwwbb....0....bbwbb....0....bbw....6....x
xxxxxxwxwwwwbbbb...bbbbwwwbbbb...bbbbwww......6..
xxxxxxxxxwwwwwbbbbbbbwwwwwwwbbbbbbbwwwwww.6......
xxxxxxxxxwxwwwwwwwwwwwwwxxxwwwwwwwwwwxxxw........
xxxxxxxxxxxxxxxxwwxxxxxxxxxxxxxxwwxwxxxxxx.......
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx..@..
ENDMAP

NAME:     lom_lobon_spiral_st
TAGS:     lom_lobon no_pool_fixup patrolling uniq_lom_lobon
ORIENT:   northeast
MONS:     Lom Lobon, titan, shock serpent
MONS:     nagaraja / merfolk aquamancer / jorogumo / fenstrider witch
KMONS:    S = storm dragon
KMONS:    d = draconian annihilator
KMONS:    e = deep elf annihilator / nekomata w:6
KFEAT:    S = deep_water
KPROP:    'eF = no_tele_into
SUBST:    F = 4, z = b..
NSUBST:   D = 1:S / *:w
: pan_lord_setup(_G, 'Lom Lobon')
epilogue{{
  pan_lord_epilogue('Lom Lobon')
}}
MAP
cccccccccccccccccccccccccccccccccccccccc
cbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc
cbbbbbb.....bb+..2..bbbbbwwwbbbbbbbbbbbc
cbbbb.........bb...bbbwwwwwwwwwbbbbbbbbc
cbbb...........bbObbwww&...&wwwwwbbbbbbc
cbb.............bbbww...&.&...wwwwbbbbbc
cbb.............bbww.....w..z...wwwbbbbc
cb.......1.......bw....www.......wwbbbbc
cb...............bw...wwwww...V..wwwbbbc
cb...............bb..wwwwwww......wwbbbc
cbb.............bbb.....wwwww...z.wwbbbc
cbb.............bbbb...2..wwwww....wwbbc
cbbb...........bbbbbbb.......www...wwwbc
cbbbbb.......bbbbbbbbbbbbbb.z.bbb...wwwc
cbbbbbbb...bbbbbbbbbbbbbwwww....bb..wwwc
cbbbbbb...bbbbbbbbbbbwwwwwwwww...bb..wwc
cbbbbb..wbbbbbbbbbbwwwwwwwwwwww...b..wwc
cbbb...wwwbbbbbbbbwwwwwwwwwwwwww..bb.wwc
cbb...wwwwwbbbbbbbwwwwww''wwwwww...bz.wc
cbb....wwwwwbbbbb.wwwww'Fe'wwwww...b.zwc
cbb.z...wwwwwwbbb.wwwwww''wwwwww...bz.wc
cbb...z.wwww...z2..wwwwwwwwwwwww..bb..Dc
cwb.d.......www.z...wwwwwwwwwww...bw..wc
cwbb...wwwwwwwwbbb...wwwwwwwww...bbw..wc
cwbbbdwwwwwwwwbbbbb....wwww.....bbww.wwc
cwSbbbbwwwwbbbbwwwbbb.........bbbww..wwc
cwwwbbbbbbbbwwwwwwwwbbb....bbbbwww...wwc
cwwwwwbbbbwwwwwwwwwwwwbbbbbbwwwDww...wwc
cwwwwwwwwwwwww.4.wwwwwwwwwwwwwwwww....wc
cwwwwwwwwww........wwwwwwwwwwwwww.....wc
cwwwwwwww...........wwwwwwwwwwww.....wwc
cwwwwwww.....U...U......wwwwwwww.....wwc
cwwwwbbbb..................wwww..z..wwwc
cwwbbb.........z....ww...z..........wwDc
cwbb..3...z.......wwwwww...........wwwwc
cwb$.........ww..wwwwwwwww.......wwwwwwc
cwb$..3.....wwww..wwwwwwwww....wwwwwwwwc
cwbb....3.bbwwww...wwwwwwwwwwwwwwwwwwwcc
cwwbbb$$bbbwwwwww....wwwwwwwwwwwwwwwwccc
ccwwwbbbbwwwww...w....wwwwwwwwwwwwwwcccc
cccwwwwwwwwww..4.....4.wwwwwwwwwwwcccccc
cccccwwwwww......z.z...wwwwwwwwwcccccccc
cccccccccccccccc..@..ccccccccccccccccccc
ENDMAP

NAME:     lom_lobon_grunt
TAGS:     lom_lobon no_pool_fixup uniq_lom_lobon
ORIENT:   north
MONS:     patrolling Lom Lobon
MONS:     nagaraja w:5 / merfolk aquamancer w:5 / fenstrider witch w:5 / \
          rakshasa w:20 / glowing orange brain / green death
MONS:     jorogumo w:5 / blizzard demon / spriggan air mage w:5 / nekomata w:5
MONS:     deep elf annihilator / draconian annihilator / titan w:4 / lich w:4
KPROP:    ?U$"W~ = no_tele_into
NSUBST:   2? = 5:2 / 7:3 / 6:4 / * = 22234
SUBST:    W = ww., -' = ..w, ~ = .
: pan_lord_setup(_G, 'Lom Lobon')
epilogue{{
  pan_lord_epilogue('Lom Lobon')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxwwwwwwbbbbbbbbbwwwwwwxxxxxxxxwwwwwxxxxxxxxxxxxx
xxxxxxxxxwwwwbbbbwwwwwwwbbbbwwwwwwwwwwwwwwwwwwwxxxxxxxxxx
xxxxxxxxwwwbbbwwwwWWWWWWwwwbbbwwwwwwwwwWWWwwwwwwxxxxxxxxx
xxxxxxxwwwbbwwwwWW------WWWwwbbwwwwwwwW'''Wwwwwwwwwxxxxxx
xxxxxxwwwbbwwwWW--..2...---WWwbbwwwwwW'$$$'Wwwwwwwwwwxxxx
xxxxxwwwbbwwwW--...........--WwbbwwwwW'~U~'Wwwwwwwwwwxxxx
xxxxwwwbbwwwW-...------......-WwbbwwwW'?~?'Wwwwwwwwwwwxxx
xxxwwwbbwwwW-..--WWWWWW----.2.-WwbbwwwW'''Wwwwwwwwwwwwwxx
xxxwwbbwwwW-..-WWwwwwwwWWWW--..-WwbbwwwWWWwwwwwwwwwwwwwwx
xxwwwbwwwbb...bbwwwwwwwwwwwWW-..-WwbwwwwwwwwWWWWwwwwwwwwx
xxwwbbwbbb..2..bbbwwwwwwwwwwW-..-WwbbwwwwwWW----WWwwwwwwx
xxwwbwbb.........bbwwwwwwwwwwW-2.-WwbwwwwW--.2.2--Wwwwwwx
xwwwbbb...........bbwwwwwwwwwW-..-WwbwwwwW-.......-Wwwwwx
xwwbbb.............bwwwwwwwwwW-..-WwbbwwwW-...U....-Wwwwx
xwwbbbbb...........bbwwwWWWwwwW-..-WwwwwW-...2.2...-Wwwwx
xwwbb..bb...........bwwW'''WwwW-...-WWWW-.2..---....-Wwwx
xwwbb...b...........bwW'$~?'WwW-&.&.----....-WWW-...-Wwwx
xwwbbO2.+.2...1...2.bwW'$U~'WwW-.U.2.......-WwwwW-...-Wwx
xwwbb...b...........bwW'$~?'WwW-&.&.-------WwwwwwW-2.-Wwx
xwwbb..bb...........bwwW'''WwwW-...-WWWWWWWwwwwwwW-..-Wwx
xwwbbbbb...........bbwwwWWWwwwW-..-WwwwwwwwwwwwwwW-..-Wwx
xwwbbb.............bwwwwwwwwwW-..-WwbbwwxxxxxxwwwW-..-Wwx
xwwwbbb...........bbwwwwwwwwwW-..-WwbwwwxxxxxxxwwW-.2-Wwx
xxwwbwbb.........bbwwwwwwwwwwW-2.-WwbwwxxxxxxxxxwW-..-Wwx
xxwwbbwbbb..2..bbbwwwwwwwwwwW-..-WwbbwwxxxxxxxxxwW-..-Wwx
xxwwwbwwwbb...bbwwwwwwwwwwwWW-..-WwbwwwxxxxxxxxxW-...-Wxx
xxxwwbbwwwW-..-WWwwwwwwWWWW--..-WwbbwwxxxxxxxxxW-.2.-Wxxx
xxxwwwbbwwwW-..--WWWWWW----.2.-WwbbwwwxxxxxxxxxW-...-Wxxx
xxxxwwwbbwwwW-...------......-WwbbwwwxxxxxxxxxW-....-Wxxx
xxxxxwwwbbwwwW--...........--WwbbwwwxxxxxxxxxW-....-Wxxxx
xxxxxxwwwbbwwwWW--..2...---WWwbbwwwxxxxxxxxxxW-...-Wxxxxx
xxxxxxxwwwbbwwwwWW------WWWwwbbwwwxxxxxxxxxxxW-...-Wxxxxx
xxxxxxxxwwwbbbwwwwWWWWWWwwwbbbwwwxxxxxxxxxxxW-.2.-Wxxxxxx
xxxxxxxxxwwwwbbbbwwwwwwwbbbbwwwwxxxxxxxxxxxxW-...-Wxxxxxx
xxxxxxxxxxwwwwwwbbbbbbbbbwwwwwwxxxxxxxxxxxxxW-..-Wxxxxxxx
xxxxxxxxxxxxwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxW-..-Wxxxxxxx
xxxxxxxxxxxxxxxwwwwwwwwwwwxxxxxxxxxxxxxxxxxxW-..-Wxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-.@@.-xxxxxxx
ENDMAP

NAME:     lom_lobon_grunt_wind_tunnels
TAGS:     lom_lobon no_pool_fixup uniq_lom_lobon
ORIENT:   west
MONS:     patrolling Lom Lobon, patrolling titan, patrolling wind drake
MONS:     blizzard demon / titan / spriggan air mage / storm dragon
MONS:     draconian annihilator / deep elf annihilator / \
          nagaraja w:5 / merfolk aquamancer w:5 / jorogumo w:5 / \
          fenstrider witch w:5 / rakshasa w:20 / glowing orange brain / \
          blizzard demon / green death / nekomata w:5 / lich w:5
SHUFFLE:  O2
KPROP:    13'F = no_tele_into
SUBST:    F = 4
: pan_lord_setup(_G, 'Lom Lobon')
epilogue{{
  pan_lord_epilogue('Lom Lobon')
}}
MAP
ccccccccccccccccccccccccccccccccccccccccccc
cbbbbbbbbbbwwwwwwwwwwwwwwwwwwwwwccccccccccc
cbbbbbbbb..5..........5........wwwwwccccccc
cbbbbb......wwwwwwwwwwwwwww........wwwccccc
cbbb........ww'3''''F'''''ww.........wwcccc
cbbb...5.....ww''''F'''''3'ww.......5.wwccc
cbb......5....wwwwwwwwwwwwwww..........wccc
cbb.......bb......5..........5....5....wwcc
cbb......bbbbb..........................wcc
cb.3..3.bbbbbbbbwwwwwwwwwwwwwwwww.......wcc
cb......bcccccccccccccccccccccccw...3...wcc
cbb..4..bbbbbbbbbbbbbbbbbccccwwww......wwcc
cbb...........wwwwbbbbbbbccwww........wwccc
cbb......3....5..wwwbbbbbccw.........wwcccc
cbb................wwbbbbcww...3...wwwccccc
cbbb...3............wwbbbcw......wwwccccccc
cbbbb................wbbbcw..U...cccccccccc
cbbbbbb......ww......wwbbcw.&........cccccc
cbbb..bb....wwww....5.wbbcw....5..........c
cbb.O......ww'Fww.....wwbcw.&.............@
cbb.2......ww1'ww.....wwbcw.&.............@
cbbb..bb....wwww....5.wbbcw....5..........c
cbbbbbb......ww......wwbbcw.&........cccccc
cbbbb................wbbbcw..U...cccccccccc
cbbb...3............wwbbbcw......wwwccccccc
cbb................wwbbbbcww...3...wwwccccc
cbb......3....5..wwwbbbbbccw.........wwcccc
cbb...........wwwwbbbbbbbccwww........wwccc
cbb..4..bbbbbbbbbbbbbbbbbccccwwww......wwcc
cb......bcccccccccccccccccccccccw...3...wcc
cb.3..3.bbbbbbbbwwwwwwwwwwwwwwwww.......wcc
cbb......bbbbb..........................wcc
cbb.......bb.....5...........5....5....wwcc
cbb......5....wwwwwwwwwwwwwww..........wccc
cbbb...5.....ww''''F'''''3'ww.......5.wwccc
cbbb........ww'3''''F'''''ww.........wwcccc
cbbbbb......wwwwwwwwwwwwwww........wwwccccc
cbbbbbbbb..5..........5........wwwwwccccccc
cbbbbbbbbbbwwwwwwwwwwwwwwwwwwwwwccccccccccc
ccccccccccccccccccccccccccccccccccccccccccc
ENDMAP


#############################################################################
# Cerebov
#
NAME:      cerebov
TAGS:      cerebov uniq_cerebov
ORIENT:    northeast
KMONS:     1 = patrolling Cerebov
KMONS:     2B = balrug
KMONS:     3 = brimstone fiend
FTILE:     `+$|O123& = floor_metal_infernal
: pan_lord_setup(_G, 'Cerebov')
epilogue{{
  pan_lord_epilogue('Cerebov')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...............................xxxx
.............vvvvv.............xxxx
.............v$$$v.............xxxx
.............v|||v.............xxxx
.............v$$$v.............xxxx
.vvvvv...vvvvvv+vvvvvv...vvvvv.xxxx
.v|$|vvvvv```````````vvvvv$|$v.xxxx
.v$|$+`````vvvvvvvvv`````+|$|v.xxxx
.v|$|v`vvvvvvvvOvvvvvvvv`v$|$v.xxxx
.vvvvv`vvvvvv``3``vvvvvv`vvvvv.xxxx
...v```vv`````vvv`````vv```v...xxxx
...v`vvvv````vv1vv````vvvv`v...xxxx
...v`vv``````v```v``````vv`v...xxxx
...v`vvvv`````````````vvvv`v...xxxx
...v```vv`````````````vv```v...xxxx
.vvvvv`vv``2```````2``vv`vvvvv.xxxx
.v|$|v`vv``2```````2``vv`v$|$v.xxxx
.v|$|+`vv```vv```vv```vv`+$|$v.xxxx
.v|$|v`vv```vv+++vv```vv`v$|$v.xxxx
.vvvvv`vvvvvvv+++vvvvvvv`vvvvv.xxxx
....v``vvvvvvv```vvvvvvv``v....xxxx
....vv```````````````````vv....xxxx
.....vv`vv+vv`````vv+vv`vv.....xxxx
......vvv|||v``&``v$$$vvv......xxxx
........v|$|vv&`&vv$|$v........xxxx
......B.v|||v``&``v$$$v.B......xxxx
........vvvvv`````vvvvv........xxxx
...............................xxxx
...............@...............xxxx
ENDMAP

NAME:      cerebov_st
TAGS:      cerebov patrolling uniq_cerebov
ORIENT:    north
MONS:      patrolling Cerebov, balrug, brimstone fiend, red devil
KMONS:     5B = sun demon
KMONS:     6C = sun moth
KMONS:     7 = undying armoury
FTILE:     `+$|O1234567& = floor_metal_infernal
: pan_lord_setup(_G, 'Cerebov')
epilogue{{
  pan_lord_epilogue('Cerebov')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xx.....................................................................xx
xx...............................C.....C...............................xx
xx..................................B..................................xx
xx.............................vvv.....vvv.............................xx
xx...vvvvv.....................vvv.v.v.vvv.....................vvvvv...xx
xx...v|$|v..vv..vv..vv..vv..vv.vvv.....vvv.vv..vv..vv..vv..vv..v|||v...xx
xx...v$|$vvvvvvvvvvvvvvvvvvvvvvvvvvv`vvvvvvvvvvvvvvvvvvvvvvvvvvv|$|v...xx
xx...v|$|v```````````````````````vvv`vvv```````````````````````v|||v...xx
xx...vvvv+`vvvvvvvvvvvvvvvvvvvvv`v`````v`vvvvvvvvvvvvvvvvvvvvv`+vvvv...xx
xx....vv```vvvvvvvvvvvvvvvvvvvvv+vvv`vvv+vvvvvvvvvvvvvvvvvvvvv```vv....xx
xx.....v`vvvvvvv```````````v```````v`v```````v`v`````5``5.+``vvv`v.....xx
xx....vv`vvvvvvv+v+vvvvvvv+v`v`v`v`````v`v`v`v`v``v``v``v.v`$||v`vv....xx
xx....vv`vv||v```````v$$vv+v`````````````````v`+`````````3v`$||v`vv....xx
xx.....v`vv||v`v`1`v`v$$v4`v`v```2`````2```v`v`v``v``v``v.v`$$$v`v.....xx
xx....vv`vv||v`v```v`v$$vO3v`````````````````v`v`````5``5.+`$$$v`vv....xx
xx....vv`vv+vv```````vv+vvvv`v`````&`&`````v`v`vvvvvvvvvvvvvvvvv`vv....xx
xx.....v`vv``2```````2``v``+````````7````````+`````````````+```v`v.....xx
xx....vv`vv``2```````2``v``v`v`````&`&`````v`vvvvvvvvvvvvvvv```v`vv....xx
xx....vv`vv`````````````v``v`````````````````v```v``4``v$|$v`6`v`vv....xx
xx.....v`vv````v```v````v``v`v```2`````2```v`v```+``2`7+|$|v`2`v`v.....xx
xx....vv`vv```vv+++vv```v``v`````````````````v`4`v``4``v$|$v```v`vv....xx
xx....vv`vvvvvv`````vvvvv``v`v`v`v`````v`v`v`v`4`vvvvvvvvvvv```v`vv....xx
xx.....v`vvv```````````````v```````v`v```````v```vvvvvvvvvvv+vvv`v.....xx
xx....vv```vvvvvvvvvvvvvvvvvvvvv+vvv`vvv+vvvvv```+```````````v```vv....xx
xx...vvvv+`vvvvvvvvvvvvvvvvvvvvv`v`````v`vvvvvvvvvvvvvvvvvvvvv`+vvvv...xx
xx...v$$$v```````````````````````vvv`vvv```````````````````````v$$$v...xx
xx...v|||vvvvvvvvvvvvvvvvvvvvvvvvvvv`vvvvvvvvvvvvvvvvvvvvvvvvvvv$|$v...xx
xx...v$$$v..vv..vv..vv..vv..vv.vvv.....vvv.vv..vv..vv..vv..vv..v$$$v...xx
xx...vvvvv.....................vvv.v.v.vvv.....................vvvvv...xx
xx.............................vvv.....vvv.............................xx
xx..................................B..................................xx
xx...............................C.....C...............................xx
xx.....................................................................xx
xx.................................@@@.................................xx
ENDMAP

NAME:     evilmike_cerebov_lava
TAGS:     cerebov patrolling uniq_cerebov
ORIENT:   northwest
MONS:     Cerebov
KMONS:    2B = balrug
KMONS:    3 = brimstone fiend
KMONS:    4D = sun demon
KMONS:    5E = sun moth
KMONS:    6 = undying armoury
SHUFFLE:  XY
SUBST:    X : v, Y : v`, L : lll`
SUBST:    U : W`, W : V`, V : v`
NSUBST:   Q = 1:3 / 2:|, ! = 3:2 / 2:5 / *:4, ? = 2:2 / 2:|
KPROP:    l = no_cloud_gen
FTILE:    `+$%|O1234567& = floor_metal_infernal
: pan_lord_setup(_G, 'Cerebov')
epilogue{{
  pan_lord_epilogue('Cerebov')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xx..........................................
xx..........................................
xx..............vvvvvvv.....................
xx...vvvvv......v%|||%v......vvvvv..........
xx...v|$$v......v%|Q|%v......v$$|v..........
xx...v$?$vvvvvvvv%|||%vvvvvvvv$?$v..........
xx...v$$$vvvvvvvvvv+vvvvvvvvvv$$$v...lll....
xx...vvvv+v`````````````````v+vvvv..lllll...
xx.....vvv``vVvWvU`!`UvWvVv``vvv....llvll...
xx.....vv``vv`````````````vv``vv....lllll...
xx.....vv`vv!`````````````!vv`vv.....lll....
xx.....vv`V`````LLL`lll`````V`vv............
xx.....vv`v````LLLL`llll````v`vv............
xx.....vv`W```LLLL```llll```W`vvvvvvvvvv....
xx.....vv`v```LLLL```llll```v2vvvvvvvvvvvv..
xx..vvvvv`U``LLLL`````llll`````&````vllvvv..
xx..v%%%v```LLvvv``````llll```vWvWv`vE...vv.
xx..v|||v``LLvv`v`Y````llll```&`````+.......
xx..v|Q|+`6LLvOX3`X``1`lllll```6````+.D.B..@
xx..v|||v``LLvv`v`Y````llll```&`````+.......
xx..v%%%v```LLvvv``````llll```vWvWv`vE...vv.
xx..vvvvv`U``LLLL`````llll`````&````vllvvv..
xx.....vv`v```LLLL```llll```v2vvvvvvvvvvvv..
xx.....vv`W```LLLL```llll```W`vvvvvvvvvv....
xx.....vv`v````LLLL`llll````v`vv............
xx.....vv`V`````LLL`lll`````V`vv............
xx.....vv`vv!`````````````!vv`vv.....lll....
xx.....vv``vv`````````````vv``vv....lllll...
xx.....vvv``vVvWvU`!`UvWvVv``vvv....llvll...
xx...vvvv+v`````````````````v+vvvv..lllll...
xx...v$$$vvvvvvvvvv+vvvvvvvvvv$$$v...lll....
xx...v$?$vvvvvvvv%|||%vvvvvvvv$?$v..........
xx...v|$$v......v%|Q|%v......v$$|v..........
xx...vvvvv......v%|||%v......vvvvv..........
xx..............vvvvvvv.....................
xx..........................................
xx..........................................
ENDMAP

NAME:     cerebov_grunt
TAGS:     cerebov uniq_cerebov
ORIENT:   northwest
MONS:     patrolling Cerebov, balrug, brimstone fiend
KMONS:    4D = sun demon
KMONS:    5 = red devil
KMONS:    6 = sun moth
KMONS:    7 = undying armoury
NSUBST:   5 = 2:6 / * = DDD55
FTILE:    `+$|O12347 = floor_metal_infernal
: pan_lord_setup(_G, 'Cerebov')
epilogue{{
  pan_lord_epilogue('Cerebov')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxx.............................
xxxx............vvvvv............
xxxx............v|||v............
xxxx............v|||v............
xxxx..........vvv|||vvv..........
xxxx.........vvvvv+vvvvv.........
xxxx........vvv```4```vvv........
xxxx.......vvv````7````vvv.......
xxxx......vvv2```vvv```2vvv......
xxxx.vvvvvv`````vvOvv`````vvvvvv.
xxxx.v|$$v`````vv$3$vv`````v$||v.
xxxx.v||$+4``vvv$vvv$vvv``4+$$|v.
xxxx.v|$$v```vll`$1$`llv```v$||v.
xxxx.vvvvv```vll$```$llv```vvvvv.
xxxx....vv```vvl`2`2`lvv```vv....
xxxx....vv````vl`vvv`lv````vv....
xxxx....vvv```v`lllll`v```vvv....
xxxx.....vv2````lllll````2vv.....
xxxx.....vvv```vvlllvv```vvv.....
xxxx......vv````v```v````vv......
xxxx......vv`````````````vv......
xxxx.....vvv+v4```````4v+vvv.....
xxxx.....v$$$vvv`````vvv|||v.....
xxxx.....v$|$vvvv+++vvvv|$|v.....
xxxx.....v$$$vvv.....vvv|||v.....
xxxx.....vvvvv..5...5..vvvvv.....
xxxx.............................
xxxx...........5.&.&.5...........
xxxx.............................
xxxx............&.5.&............
xxxx..............@..............
ENDMAP

NAME:     cerebov_grunt_fire_and_steel
TAGS:     cerebov uniq_cerebov
ORIENT:   north
MONS:     patrolling Cerebov, balrug, brimstone fiend, sun demon
MONS:     sun moth, undying armoury
NSUBST:   O = 1:O / *:|, 4 = 3:5 / *:4
FTILE:    `+$|O123456& = floor_metal_infernal
: pan_lord_setup(_G, 'Cerebov')
epilogue{{
  pan_lord_epilogue('Cerebov')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
....................................................
..................lllllll...lllllll...lllllll.......
....llll...llll...lvvvvvl...lvvvvvl...lvvvvvl.......
....lvvl...lvvl...lv|||vl...lv|||vl...lv$|$vl.......
@..llvvv+++vvvll..lv|$|vl...lv|||vl..llv|O|vll.....@
.lllvv```````vvllllv|||vlllllv|||vllllvv$|$vvll.....
.lvvv````4````vvllvvv+vvvlllvvv+vvvllvvvv+vvvvll....
.lvv``4`````2``vvvvvl`lvvvvvvvl`lvvvvvvl```lvvvllll.
.llv```vvvvv```vlllll4lllllllll4lllllvll```llvvvvvl.
...+`4`v|$|v```+`````````&`&`````````+``4`2``v$|$vl.
...+```v$|$+2`6+```2`````````2```````+```1`3`+|O$vl.
...+`4`v|$|v```+`````````&`&`````````+``4`2``v$|$vl.
.llv```vvvvv```vlllll4lllllllll4lllllvll```llvvvvvl.
.lvv``4`````2``vvvvvl`lvvvvvvvl`lvvvvvvl```lvvvllll.
.lvvv````4````vvllvvv+vvvlllvvv+vvvllvvvv+vvvvll....
.lllvv```````vvllllv$$$vlllllv$$$vllllvv$|$vvll.....
@..llvvv+++vvvll..lv$$$vl...lv$|$vl..llv|O|vll.....@
....lvvl...lvvl...lv$$$vl...lv$$$vl...lv$|$vl.......
....llll...llll...lvvvvvl...lvvvvvl...lvvvvvl.......
..................lllllll...lllllll...lllllll.......
....@..........................................@....
ENDMAP

##############################################################################
# Gloorx Vloq
#
NAME:     gloorx_vloq
TAGS:     gloorx_vloq uniq_gloorx_vloq
ORIENT:   southwest
MONS:     patrolling Gloorx Vloq, Executioner, curse skull, reaper
MONS:     caustic shrike draugr / juggernaut draugr / hellephant draugr
SHUFFLE:  1O
: pan_lord_setup(_G, 'Gloorx Vloq')
epilogue{{
  pan_lord_epilogue('Gloorx Vloq')
}}
MAP
xxxxxxxxxxxxxxxxxx@@xxxxxxxxxxxxxxx
xxxx..............................x
xxxx..............................x
xxxx..............................x
xxxx.x.x.x.x.x.x.x..x.x.x.x.x.x.x.x
xxxx..............................x
xxxx.x.xxxx+xxxxxxxxxxxx+xxxxxx.x.x
xxxx...xx....................xx...x
xxxx.x.x..ccccc..5..5..ccccc..x.x.x
xxxx...x.cc.4......3.....4.cc.x...x
xxxx.x.x.c..ccccc.cc.ccccc..c.x.x.x
xxxx...x.c.cc.....cc.....cc.c.x...x
xxxx.x.x.c.c.2...cccc...2.c.c.x.x.x
xxxx...x...c...ccc..ccc...c...+...x
xxxx.x.x.4.....2..1O..2.....4.x.x.x
xxxx...+...c...ccc..ccc...c...x...x
xxxx.x.x.c.c.2...cccc...2.c.c.x.x.x
xxxx...x.c.cc.....cc.....cc.c.x...x
xxxx.x.x.c..ccccc.cc.ccccc..c.x.x.x
xxxx...x.cc.4.....3......4.cc.x...x
xxxx.x.x..ccccc..5..5..ccccc..x.x.x
xxxx...xx....................xx...x
xxxx.x.xxxxxx+xxxxxxxxxxxx+xxxx.x.x
xxxx...........&..&&..&...........x
xxxx.x.x.x.x.x.x.x..x.x.x.x.x.x.x.x
xxxx..............................x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:   gloorx_vloq_st
TAGS:   gloorx_vloq uniq_gloorx_vloq
ORIENT: southeast
MONS:   patrolling Gloorx Vloq, Executioner, curse skull
MONS:   soul eater, flayed ghost, shadow demon
MONS:   caustic shrike draugr / juggernaut draugr / hellephant draugr
: pan_lord_setup(_G, 'Gloorx Vloq')
epilogue{{
  pan_lord_epilogue('Gloorx Vloq')
}}
MAP
xxxxxxxxxxxxxxxxxx.@.xxxxxxxxxxxxxxxxxx
xxxxx.............................xxxxx
xxxx...xxx.x.xxx.x.x.x.xxx.x.xxx...xxxx
xxx....xxx.x.xxx.x5x5x.xxx.x.xxx....xxx
xx.................7.................xx
x..4..ccccccccccccccccccccccccccc..4..x
xx.3.xcxxxxxxxxxxxxxxxxxxxxxxxxxcx.3.xx
x.x.x.cx.x4x.x.x.x.x.x.x.x.x4x.xc.x.x.x
x..x..cxx.x.x.x.x.xOx.x.x.x.x.xxc..x..x
x.x.x.cx.x.x.x.x.xxxxx.x.x.x.x.xc.x.x.x
xx...xcxx.x.x.x.x.....x.x.x.x.xxcx...xx
x.x.x.cx.x.x.x.x.x...x.x.x.x.x.xc.x.x.x
x..x..cxx.x.x.x.x.....x.x.x.x.xxc..x..x
x.x.x.cx.x.x2x.x.x...x.x.x2x.x.xc.x.x.x
xx...xcxx.x.x.x.x.....x.x.x.x.xxcx...xx
x.x.x.cx.x.x.x.x.x.1.x.x.x.x.x.xc.x.x.x
x5.x.7cxx.x.x.x.x.....x.x.x.x.xxc7.x.5x
x.x.x.cx2x.x.x.x.x...x.x.x.x.x2xc.x.x.x
xx.6.xcxx.x.x.x.x.....x.x.x.x.xxcx.6.xx
x.x.x.cx.x.x.x.x.x...x.x.x.x.x.xc.x.x.x
x..x..cxx.x.x.x.x4...4x.x.x.x.xxc..x..x
x.x.x.cx.x.x.x.x.x...x.x.x.x.x.xc.x.x.x
xx...xccx.x.x.x.x.....x.x.x.x.xccx...xx
xxx.x.xccx.x.x.x.x...x.x.x.x.xccx.x.xxx
xxxx....ccc2x.x.x.....x.x.x2ccc....xxxx
xxxxx.....cccc.x.x...x.x.cccc.....xxxxx
xxxxxxx......ccccx...xcccc......xxxxxxx
xxxxxxxxx.......cc+++cc.......xxxxxxxxx
xxxxxxxxxxxx.......2.......xxxxxxxxxxxx
xxxxxxxxxxxxxxx.&.&.&.&.xxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     evilmike_gloorx_vloq_box
TAGS:     gloorx_vloq uniq_gloorx_vloq
ORIENT:   southeast
MONS:     patrolling Gloorx Vloq
MONS:     executioner, curse skull, reaper
MONS:     shadow demon, spectral emperor scorpion
MONS:     caustic shrike draugr / juggernaut draugr / hellephant draugr
KMONS:    O = flayed ghost
SHUFFLE:  Cd / De
SUBST:    Cd = c, D = ., e = +, X : xx., V : x.
: pan_lord_setup(_G, 'Gloorx Vloq')
epilogue{{
  pan_lord_epilogue('Gloorx Vloq')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x.5..........................5.xx
x5x.V.x.x.V.x.x.V.x.x.V.x.x.V.5xx
x..x.x.V.x.x.V.x2x.V.x.x.V.x2V.xx
x.V.........................x..xx
x..x.........................x.xx
x.x....ccccccccccccccccccc..V..xx
x..V...cxxxxxxxxxxxxxxxxxc...x.xx
x.x....cxxxxxxxxxxxxxx..3c..x..xx
x..x...cxxxxxxxxxxxxx..X.c...V.xx
x.V....cxxxxxxxxxxx......c..x..xx
x4.x...cxxxxxxxx.....X.X.c...x.xx
x.x..cccxxxx2............c..V..xx
x....c7+...........X.X.X.cc&.x.xx
....cc6c.................+4.x&.xx
@...cO6c1....2...X.X.X.X.dC..V.xx
....cc6c.................+4.x&.xx
x....c7+...........X.X.X.cc&.x.xx
x.x..cccxxxx2............c..V..xx
x4.x...cxxxxxxxx.....X.X.c...x.xx
x.V....cxxxxxxxxxxx......c..x..xx
x..x...cxxxxxxxxxxxxx..X.c...V.xx
x.x....cxxxxxxxxxxxxxx..3c..x..xx
x..V...cxxxxxxxxxxxxxxxxxc...x.xx
x.x....ccccccccccccccccccc..V..xx
x..x.........................x.xx
x.V.........................x..xx
x..x.x.V.x.x.V.x2x.V.x.x.V.x2V.xx
x5x.V.x.x.V.x.x.V.x.x.V.x.x.V.5xx
x.5..........................5.xx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     gloorx_vloq_grunt
TAGS:     gloorx_vloq uniq_gloorx_vloq
ORIENT:   west
MONS:     patrolling Gloorx Vloq, Executioner, curse skull, reaper
MONS:     caustic shrike draugr / juggernaut draugr / hellephant draugr
MONS:     laughing skull, shadow demon
: pan_lord_setup(_G, 'Gloorx Vloq')
epilogue{{
  pan_lord_epilogue('Gloorx Vloq')
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxx.......................xxxxxx
xxxxx.6.4.x...x...x...x...x.4...xxxx
xxxx.6.6.........................xxx
xxx.6.x..ccccccccccccccccc....x...xx
xxx.4..6.c...x...x...x...cc....x..xx
xx......6c....x.x.x.x.x.x.cc....7..x
xx.x.x.x.c.....x...x...x.2.cc....4.x
xx.......+......x.x.x.x.x.x.cc.....x
xx.......+.......x...x...x...cc..x.x
xx....5..+......x.x.x.x.x.x.x.cc...x
xx.x3x.x.c.....x...x...x...x...c...x
xxx...7.xc....ccccccccc.x.x.x.xc...x
xx.x...x.c...ccccc.2.x...x.2.xcc.x.x
xxx.x&x&xccccc....x.x.x.x.x.x.xc...x
xx.x.x.x.cc........x...x...x62.c.5.x
xxx.x.x.xc.c......x.x.x.x.x6x.xc....
xx.x.x.x.cOc.1...x...x.2.x6.6xcc.x.@
xxx.x.x.xc.c......x.x.x.x.x6x.xc....
xx.x.x.x.cc........x...x...x62.c.5.x
xxx.x&x&xccccc....x.x.x.x.x.x.xc...x
xx.x...x.c...ccccc.2.x...x.2.xcc.x.x
xxx...7.xc....ccccccccc.x.x.x.xc...x
xx.x3x.x.c.....x...x...x...x...c...x
xx....5..+......x.x.x.x.x.x.x.cc...x
xx.......+.......x...x...x...cc..x.x
xx.......+......x.x.x.x.x.x.cc.....x
xx.x.x.x.c.....x...x...x.2.cc....4.x
xx......6c....x.x.x.x.x.x.cc....7..x
xxx.4..6.c...x...x...x...cc....x..xx
xxx.6.x..ccccccccccccccccc....x...xx
xxxx.6.6.........................xxx
xxxxx.6.4.x...x...x...x...x.4...xxxx
xxxxxxx.......................xxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

NAME:     gloorx_vloq_grunt_torture_chamber
TAGS:     gloorx_vloq uniq_gloorx_vloq
ORIENT:   centre
MONS:     patrolling Gloorx Vloq, Executioner, curse skull, reaper
MONS:     caustic shrike draugr / juggernaut draugr / hellephant draugr
MONS:     laughing skull, shadow demon
: pan_lord_setup(_G, 'Gloorx Vloq')
epilogue{{
  pan_lord_epilogue('Gloorx Vloq')
}}
MAP
xxxxxxxxxxxxxxxx.@.xxxxxxxxxxxxxxxx
x.c.c.c.....................c.c.c.x
xc.c.c.......................c.c.cx
x.c.c.........................c.c.x
xc.c.............7.............c.cx
x.c..5.......................5..c.x
xc.........c.......c.......c.....cx
x..4.x.x.x.c.x.x.x.c.x.x.x.c.x..4.x
x..........c.......c.......c......x
x.x....c...c...c...c...c...c....x.x
x...cccccccccccccccccccc+++cccc...x
x...c..c...c...c...c...c...c..c...x
x...c..c....2..c.......c.2....c...x
x...c..c.....cccc+cccc.c......c...x
x6..c..c..4..c.c.....c.c...4..c..6x
x&..c........c.1...2.c........c..&x
x6..+........c...cc..c........+..6x
x66.+..2.3...c..cOc..c...3.2..+.66x
x6..+........c..cc...c........+..6x
x&..c........c.2...2.c........c..&x
x6..c..4...c.c.....c.c..4..c..c..6x
x...c......c.cccc+cccc.....c..c...x
x...c....2.c.......c..2....c..c...x
x...c..c...c...c...c...c...c..c...x
x...cccc+++cccccccccccccccccccc...x
x.x....c...c...c...c...c...c....x.x
x......c.......c.......c..........x
x.4..x.c.x.x.x.c.x.x.x.c.x.x.x..4.x
xc.....c.......c.......c.........cx
x.c..5.......................5..c.x
xc.c.............7.............c.cx
x.c.c.........................c.c.x
xc.c.c.......................c.c.cx
x.c.c.c.....................c.c.c.x
xxxxxxxxxxxxxxxx.@.xxxxxxxxxxxxxxxx
ENDMAP


#############################################################################
# Pandemonium lesser demon vaults: repeating rune vaults.
#############################################################################
# Pandemonium demon vaults are selected by tag. They must have the tag "pan",
# or they won't even be considered. Tags are case-sensitive.
#
# Tagging these levels also ensures they won't be generated in the main
# dungeon.
#
# The first block consists of repeating vaults featuring a rune and Pan lord.
# TAG: allow_dup
# : pan_demonic(_G, 'P', true)     -- place the rune with a pandemonium lord
# : pan_demonic(_G, 'P')           -- place the rune without lord; have to
#                                  -- put down the Pan lord manually
#
# Of these maps, rand_demon_1 to rand_demon_9 are ancient heritage.

NAME:   rand_demon_1
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
.xx.xxCx.xx.
..x.xC.x.x..
..x.x..x.x..
..x.x..x.x..
..x.x..x.x..
..x.x(Px.x..
..x.x..x.x..
..x.x..x.x..
..x.x.Cx.x..
.xx.xCxx.xx.
............
ENDMAP

###################################

NAME:   rand_demon_2
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
............
.xxxxxxxxBx.
.B.....xx.x.
.xxxxxxAx.x.
.xxBx..xx.x.
.x.x.C<.x.x.
.x.x.PC.x.x.
.x.xx..xBxx.
.x.xAxxxxxx.
.x.xx.....B.
.xBxxxxxxxx.
............
ENDMAP

###################################

NAME:   rand_demon_3
NSUBST: A = 1:< / *:B
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B<', 'C')
MAP
............
.x.x.xBx.x..
..x.xBxBx.x.
.x.x.xAx.x..
..xBxAxAxBx.
.xBxAxPxAxB.
..xBxAxAxBx.
.x.x.xAxBx..
..x.xBxBx.x.
.x.x.xBx.x..
..x.x.x.x.x.
............
ENDMAP

###################################

NAME:    rand_demon_4
MONS:    pandemonium lord
SHUFFLE: $(|
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B<', 'C')
MAP
............
.xxxxxxxxx..
.x$+*+C+(x..
.xxxxxxx+x..
.xA+A+A+|x..
.x+xxxxx+x..
.xA+*x1+Px..
.x+x+xxxxx..
.x*xA+A+A+..
.xxxxxxxxx..
............
............
ENDMAP

###################################

NAME:   rand_demon_5
MONS:   pandemonium lord
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
..mxxxxxxm..
.mxx....xxm.
.xx......xx.
.x..AAAC..x.
.x..A|PA..x.
.x..A(|A..x.
.x..C1AA..x.
.xx......xx.
.mxx....xxm.
..mxxxxxxm..
............
ENDMAP

###################################

NAME:   rand_demon_6
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
............
......A.....
............
.C..........
..........A.
.....(P.....
............
............
.A.......C..
............
............
ENDMAP

###################################

NAME:   rand_demon_7
NSUBST: | = 1:( / *:|
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
.xxx....xxx.
.x|xx=xxx|x.
.xx+....+xx.
..x.x++x.x..
..x.+PC+.=..
..=.+CA+.x..
..x.x++x.x..
.xx+....+xx.
.x|xxx=xx|x.
.xxx....xxx.
............
ENDMAP

###################################

NAME:   rand_demon_8
MONS:   pandemonium lord
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
....xxxxxxx.
..xxx....1x.
.xx..C..P.x.
.x.....(..x.
.xx.......x.
..xxAA..C.x.
....AA...xx.
.....x...x..
..G..xx.xx..
......xxx...
............
ENDMAP

###################################

NAME:   rand_demon_9
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
.xxxxxxxxxx.
.xA+C+C+Cxx.
.x+xxxxxxAx.
.xCx....x+x.
.x+x.P..xAx.
.xCx..(.x+x.
.x+x....xCx.
.xAxxxx+x+x.
.xxA+A+CxCx.
.xxxxxxxx=x.
............
ENDMAP

###################################

NAME:   evilmike_mini_pan_diamond
SUBST:  m : nx, n : mnxx.
NSUBST: 1 = 1:< / *:1
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
    .....
   ..m.m..
  ..mmBmm..
 ..mm.n.mm..
..mmA...Amm..
.mm...C...mm.
..Bn.CPC.nB..
.mm...C...mm.
..mmA...Amm..
 ..mm.n.mm..
  ..mmBmm..
   ..m.m..
    .....
ENDMAP

###################################

NAME:   evilmike_mini_pan_thingy
KITEM:  | = |
KFEAT:  | = (
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
     .....
    ..x+x.
  ...xx.x.
  .cccc.x.
 ..c|Cc.x.
..xcAcB.x......
.xxccBcAxxxxxx.
.+.....1.....+.
.xxxxxxAcBccxx.
......x.BcAcx..
     .x.cCPc..
     .x.cccc.
     .x.xx...
     .x+x..
     .....
ENDMAP

###################################

NAME:   evilmike_mini_pan_other_thingy
KITEM:  | = |
KFEAT:  | = (
SUBST:  d : +x, X : c., Y : ccx
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
@...........@
.............
xxxxxd+dxxxxx
xxxxY...Yxxxx
xxxYY...YYxxx
xxxY.....Yxxx
xxYY.....YYxx
xYY..C.C..YYx
xY..AXcXA..Yx
xY.B.cPc.B.Yx
xY....c....Yx
xYY.A...A.YYx
xxYY..C..YYxx
xxxYY*|*YYxxx
xxxxYYYYYxxxx
xxxxxxxxxxxxx
ENDMAP

###################################

NAME:    evilmike_mini_pan_3x3
KITEM:   | = |
KFEAT:   | = (
NSUBST:  1 = 1:P / 3:C / 2:B / 2:A / 1:(
SHUFFLE: =X
SUBST:   X = x, = = +
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
.............
.xxx.xxx.xxx.
.x1x.x1x.x1x.
.xx+.x+x.+xx.
.............
.xxx.X=X.xxx.
.x1+.=1=.+1x.
.xxx.X=X.xxx.
.............
.xx+.x+x.+xx.
.x1x.x1x.x1x.
.xxx.xxx.xxx.
.............
ENDMAP

###################################

NAME:   evilmike_mini_pan_corridor
SUBST:  Y : Xx, X : x., Z : c.
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
xxxxxxxxxxxxxxxxxxx
xxxxxxxcccccxxxxxxx
xxxxxxcc<..ccxxxxxx
xXXXXXYAZBZAYXXXXXx
@...B...cPc...B...@
xXXXXXYAZBZAYXXXXXx
xxxxxxcc..Cccxxxxxx
xxxxxxxcccccxxxxxxx
xxxxxxxxxxxxxxxxxxx
ENDMAP

###################################

NAME:   evilmike_mini_pan_pillars
SUBST:  X : x.., Y : x+, Z : cx
NSUBST: | = 1:( / *:|
KITEM:  ( = |
KFEAT:  ( = (
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
xxxxxxxxxxxxxx.@
xc|.........|x..
xc.Z.Z.Z.Z.Z.x..
xc....B.B....x..
xc.Z.A...A.Z.x..
xc..B.CXC.B..Y..
xcPZ..X1X..Z.+..
xc..B.CXC.B..Y..
xc.Z.A...A.Z.x..
xc....B.B....x..
xc.Z.Z.Z.Z.Z.x..
xc|.........|x..
xxxxxxxxxxxxxx.@
ENDMAP

###################################

# I'm sorry
NAME:   evilmike_mini_pan_murderfest
WEIGHT: 2
MONS:   pandemonium lord
KITEM:  ( = |
KFEAT:  ( = (
NSUBST: | = 1:P / 1:( / *:|
SUBST:  + : +., X : =c, c : cccx
# I don't want this vault to be an autoexplore trap
MARKER: G = lua:props_marker { stop_explore = "ominous statue." }
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxxxxxxxxxxxxx
xcccccccccccccccx
xc|c.........c|cx
xcc+..A.C..A.+ccx
xc..C.......C..cx
xc.A..=====....cx
xccccXX...==.A.cx
...........=...cx
@.......G..=.1.cx
...........=...cx
xccccXX...==...cx
xc.A..=====..A.cx
xc..C.......C..cx
xcc+.A..C.A..+ccx
xc|c.........c|cx
xcccccccccccccccx
xxxxxxxxxxxxxxxxx
ENDMAP

###################################

NAME:    evilmike_mini_pan_rooms
WEIGHT:  3
SUBST:   + : +.
SHUFFLE: 123(P
KITEM:   | = |
KFEAT:   | = (
SUBST:   123 = A, 4 = BC, 5 = B
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxxxxxxxxxx
xx5..xxxxx..4x
xx.|..+.+..P.x
xx4..xx.xx..5x
xxxxxxx.xxxxxx
......x.xx..4x
@.....+.+..3.x
......x.xx..5x
xxxxxxx.xxxxxx
xx4..xx.xx..5x
xx.1..+.+..2.x
xx5..xxxxx..4x
xxxxxxxxxxxxxx
ENDMAP

###################################

NAME:   evilmike_mini_pan_layers
KITEM:  ( = |
KFEAT:  ( = (
SUBST:  x = x:9 +:1
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
         ...
        ..x..
       ...B...
      ..xxxxx..
     .....A.....
    ..xxxxxxxxx..
   .......A.......
  ..xxxxxxxxxxxxx..
 ........B(C........
..xxxxxxxxxxxxxxxxx..
.........APA.........
..xxxxxxxxxxxxxxxxx..
 ........C|B........
  ..xxxxxxxxxxxxx..
   .......A.......
    ..xxxxxxxxx..
     .....A.....
      ..xxxxx..
       ...B...
        ..x..
         ...
ENDMAP

###################################

NAME:   evilmike_mini_pan_corner
SUBST:  X : x., Y : c.
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxx@xxxxxx
xxxxxX.xxxxxx
xxxxXX.xxxxxx
xxxXXX.xxxxxx
xxXXXX.xxxxxx
xXXXXX.Yccccx
@.....(.YYYcx
xxxxxY...BYcx
xxxxxcY.BCAcx
xxxxxcYBCPAcx
xxxxxcYYAAYcx
xxxxxcccccccx
xxxxxxxxxxxxx
ENDMAP

###################################

NAME:    evilmike_mini_pan_branches
KITEM:   | = |
KFEAT:   | = (
SHUFFLE: P|
SUBST:   D = C
MONS:    pandemonium lord
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxxxxxxxxxxxx
xxxxxxxxxxccccxx
xxxxxxxxxxcP.ccx
xxxxxxxxxxccc.cx
xxxxxxxxxxx|c1cx
xxxxxxxx*xxAc.cx
xxxx%xxxCxx.c.cx
xxxxBxxx.xx.c.cx
xxxx.xxx.xx.c.cx
@.............cx
xxxx.xxx.xx.c.cx
xxxxBxxx.xx.c.cx
xxxx%xxxCxx.c.cx
xxxxxxxx*xxAc.cx
xxxxxxxxxxx|cDcx
xxxxxxxxxxccc.cx
xxxxxxxxxxc(.ccx
xxxxxxxxxxccccxx
xxxxxxxxxxxxxxxx
ENDMAP

###################################

NAME:   evilmike_mini_pan_T
KITEM:  | = |
KFEAT:  | = (
SUBST:  + : +..
MONS:   pandemonium lord
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxxxxxxxxxxxx
xxxxxxxcccxxxxxx
xxxxxxxcP+...xxx
xxxxxxxccc.C.xxx
xxxxxxxxxxA.Bxxx
xxxxxxxxxx...xxx
xxxxxxxxxx...xxx
..............xx
@.....A......1xx
..............xx
xxxxxxxxxx...xxx
xxxxxxxxxx...xxx
xxxxxxxxxxB.Axxx
xxxxxxxccc.C.xxx
xxxxxxxc|+...xxx
xxxxxxxcccxxxxxx
xxxxxxxxxxxxxxxx
ENDMAP

###################################

# based slightly on rand_demon_3
NAME:    evilmike_mini_pan_possible_glass
SHUFFLE: mnxcll
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
 ...........
.............
..m.m.m.m.m..
...mBm.mBm...
..mBm.<.mBm..
...m.....m...
..m.B.P.3.m..
...m.....m...
..mBm.C.mBm..
...mBm.mBm...
..m.m.m.m.m..
.............
 ...........
ENDMAP

###################################

NAME:   evilmike_mini_pan_pillars_b
SUBST:  X : x., Y : mmxxl
MONS:   pandemonium lord
NSUBST: D = 1:P / 3:C / 3:B / 3:A / 1:( / 3:|
KITEM:  ( = |
KFEAT:  ( = (
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
@.xxxxxxxxxxx
..xXDXDXDXDXx
..x.Y.Y.Y.YDx
..xX.X.X.X.Xx
..x.Y.Y.Y.YDx
..xX.X.X.X.Xx
....Y.Y1Y.YDx
..xX.X.X.X.Xx
..x.Y.Y.Y.YDx
..xX.X.X.X.Xx
..x.Y.Y.Y.YDx
..xXDXDXDXDXx
@.xxxxxxxxxxx
ENDMAP

###################################

NAME:   evilmike_mini_pan_doors
KITEM:  | = |
KFEAT:  | = (
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
..x+xxxx+x..
.xx......xx.
.+.xA..Bx.+.
.x.Bc++cA.x.
.x..+|C+..x.
.x..+CP+..x.
.x.Ac++cB.x.
.+.xB..Ax.+.
.xx......xx.
..x+xxxx+x..
............
ENDMAP

###################################

NAME:   evilmike_mini_pan_doors_b
# The doors are not treated as large gates, but individually:
MARKER: X = lua: props_marker { connected_exclude="true" }
SUBST:  X = +
NSUBST: D = 2:C / 2:B / 2:A / 1:P / 1:|
KITEM:  | = |
KFEAT:  | = (
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
xxxxxxxxxxxxx
xxxxDxDxDxDxx
xxx.........x
xxxXXXXXXXXXx
@...........x
xxxXXXXXXXXXx
xxx.........x
xxxxDxDxDxDxx
xxxxxxxxxxxxx
ENDMAP

###################################

NAME:   evilmike_mini_pan_V
KITEM:  ( = |
KFEAT:  ( = (
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
x.@.xxxxxxxxxxxxxxxxx.@.x
xx...xxxxxxxxxxxxxxx...xx
xxx.A.xxxxxxxxxxxxx.A.xxx
xxxx...xxxxxxxxxxx...xxxx
xxxxx.B.xxxxxxxxx.B.xxxxx
xxxxxx...xxcccxx...xxxxxx
xxxxxxx.C.xcPcx.C.xxxxxxx
xxxxxxxx...c+c...xxxxxxxx
 xxxxxxxx..A.A..xxxxxxxx
  xxxxxxxx..1..xxxxxxxx
   xxxxxxxxA.Axxxxxxxx
    xxxxxxxx(xxxxxxxx
     xxxxxxxxxxxxxxx
ENDMAP

###################################

NAME: nicolae_pan_door_chamber
WEIGHT: 5
MARKER: + = lua:props_marker { connected_exclude="true" }
MARKER: - = lua:props_marker { connected_exclude="true" }
NSUBST: + = 1:P / 1:( / 2:B / 2:C / *:+
SUBST: - = +
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
   x..@..x
 xxx.....xxx
 xx...A...xx
xx.-------.xx
...-+++++-...
...-+++++-...
@.A-+++++-A.@
...-+++++-...
...-+++++-...
xx.-------.xx
 xx...A...xx
 xxx.....xxx
   x..@..x
ENDMAP

###################################

NAME: nicolae_pan_diamonds
TAGS: allow_dup
ORIENT: float
MONS: pandemonium lord, greater demon, any demon
NSUBST: P = 1:P / *:(
: pan_demonic_rune(_G, 'P')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
       c
      cxc
     cxmxc
    cxmPmxc
   cxm...mxc
    cxm.mxc
   cxm...mxc
  cxm..C..mxc
   cxm...mxc
  cxcxm.mxcxc
 cxmxm...mxmxc
 .m.m.A.A.m.m.
@m.C...1...C.m@
 .m.m.A.A.m.m.
 cxmxm...mxmxc
  cxcxm.mxcxc
   cxm...mxc
  cxm..C..mxc
   cxm...mxc
    cxm.mxc
   cxm...mxc
    cxmPmxc
     cxmxc
      cxc
       c
ENDMAP

###################################

NAME: nicolae_pan_giant_door
TAGS: no_trap_gen
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
     ..@..
   .........
 ....G...G....
 @..xxx=xxx..@
 ...xcA=Acx...
  ..xcA=Acx..
    xcA=Acx
    xcA=Acx
    xcA=Acx
    ccc=ccc
    c.A(A.c
    cA.P.Ac
    ccccccc
ENDMAP

###################################

NAME: nicolae_pan_hourglass
NSUBST: P = 1:P / *:(
MONS: common demon, greater demon
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
   xxxxxxxxx
  xm...P...mx
 xm.C.....C.mx
 xm...xxx...mx
 xm..xxxxx..mx
 xm..BxxxB..mx
  xm.......mx
   xm..C..mx
    xm.B.mx
    ..mBm..
    @BBmBB@
    ..mBm..
    xm.B.mx
   xm..C..mx
  xm.......mx
 xm..BxxxB..mx
 xm..xxxxx..mx
 xm...xxx...mx
 xm.C.....C.mx
  xm...P...mx
   xxxxxxxxx
ENDMAP

###################################

NAME: nicolae_pan_double_arrow
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
       c
      ccc
     ccxcc
    ccxxxcc
   ccxxxxxcc
  ccxxx.xxxcc
 ccxxx...xxxcc
ccxxx.....xxxcc
 xxx..B.B..xxx
  x.........x
  .B.x...x.B.
 ...xx.<.xx...
...xxx...xxx...
..xxxx...xxxx..
@xxxxx.P.xxxxx@
..xxxx...xxxx..
...xxx...xxx...
 ...xx.C.xx...
  .B.x...x.B.
  x.........x
 xxx..B.B..xxx
ccxxx.....xxxcc
 ccxxx...xxxcc
  ccxxx.xxxcc
   ccxxxxxcc
    ccxxxcc
     ccxcc
      ccc
       c
ENDMAP

###################################

NAME: nicolae_pan_glass_arcs
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C<')
MAP
     ccccc
  ccccccccccc
  ...ccccc...
  n.A..c..A.n
 ..nn..<..nn..
 ...nn...nn...
 @A.nn.P.nn.A@
 ...nn...nn...
 ..nn..C..nn..
  n.A..c..A.n
  ...ccccc...
  ccccccccccc
     ccccc
ENDMAP

###################################

NAME:   nicolae_pan_performance_anxiety
TAGS:   no_trap_gen
WEIGHT: 1
KMONS:  p = human / elf / dwarf ; nothing / kobold ; nothing / mummy / \
            naga ; nothing / troll / draconian / demigod ; nothing / \
            spriggan ; nothing / minotaur ; nothing / demonspawn ; nothing / \
            revenant / tengu ; nothing / merfolk ; nothing / poltergeist / \
            felid / octopode ; nothing / djinni ; nothing / \
            gargoyle ; nothing / formicid ; nothing / vine stalker ; nothing / \
            barachi ; nothing / gnoll ; nothing / centaur ; nothing / \
            oni ; nothing / goblin ; nothing
NSUBST: t = 10:p / *:', b = 10:p / *:'
KPROP:  p' = no_tele_into
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B<', 'C')
MAP
      ccccc
    ccctttccc
   cctttttttcc
   cttnnnnnttc
  cctnn.B.nntcc
  ctnn.C.C.nntc
..cnn.C...C.nnc..
@....B..P..B....@
..cnn.C...C.nnc..
  cbnn.C.C.nnbc
  ccbnn.<.nnbcc
   cbbnnnnnbbc
   ccbbbbbbbcc
    cccbbbccc
      ccccc
ENDMAP

###################################

NAME:    grunt_pan_in_and_out
TAGS:    no_trap_gen
KMONS:   d = pandemonium lord
KFEAT:   d = (
: pan_demonic_rune(_G, 'e')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
.c+cccccc+c.
.c.c.de.c.c.
.cBc....cBc.
.c.c.CC.c.c.
.cBc....cBc.
.c.cc++cc.c.
.cBcc..ccBc.
.c.cc..cc.c.
.cB..CC..Bc.
.cccccccccc.
............
ENDMAP

NAME:    grunt_pan_spiral
TAGS:    no_trap_gen
KMONS:   d = pandemonium lord
KFEAT:   d = (
: pan_demonic_rune(_G, 'g')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
..ccccccccc.
.cc.cB.B..+.
.c.c.ccccc+.
.cBcCc.c.cc.
.c.c.deCcBc.
.cBcCfg.c.c.
.cc.c.cCcBc.
.+ccccc.c.c.
.+..B.Bc.cc.
.ccccccccc..
............
ENDMAP

NAME:    grunt_pan_zigzag
TAGS:    no_trap_gen
KMONS:   d = pandemonium lord
KFEAT:   d = (
: pan_demonic_rune(_G, 'e')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
............
.cccccccccc.
.c..B..B..+.
.c.B.cccccc.
.cc.C.cc....
..cc.dCcc...
...ccCe.cc..
....cc.C.cc.
.cccccc.B.c.
.+..B..B..c.
.cccccccccc.
............
ENDMAP

NAME:    grunt_pan_pentagram
TAGS:    no_trap_gen
: pan_demonic_rune(_G, 'P', true)
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
    ...........
  ...cccc+cccc...
 ..ccc.......ccc..
 .cc.cc..B..cc.cc.
..c...+cc.cc+...c..
.c+...c.ccc.c...+c.
.c..B.cCcccCc.B..c.
.c....cc+.+cc....c.
.c..cccc.P.cccc..c.
.c.cc.C+.(.+C.cc.c.
.cc+ccccc+ccccc+cc.
.c......cCc......c.
.cc..B..c.c..B..cc.
..cc....c+c....cc..
 ..+c....c....c+..
  ..ccc..c..ccc..
   ...ccccccc...
     .........
ENDMAP

NAME:    grunt_pan_sceptre
TAGS:    allow_dup no_trap_gen
ORIENT:  float
KMONS:   d = pandemonium lord
KFEAT:   d = (
: pan_demonic_rune(_G, 'e')
: pan_lord_vault_contents(_G, 'A', 'B', 'C')
MAP
 @........@
@B.cccccc.B@
..cc.de.cc..
c+c......c+c
c.c.C..C.c.c
c.c......c.c
c.c..BB..c.c
cBcc....ccBc
c..cc++cc..c
cc..B..B..cc
 ccc.CC.ccc
   cccccc
ENDMAP

################################################################################
# A Pandemonium lord with a mercantile bent has set up a bazaar in Pandemonium.
# There are three mostly-usual stores, but the center store is where the Pan
# lord keeps their most special merchandise: the demonic rune of Zot.
# If you already have the demonic rune, it's got a selection of randarts for
# you instead.
NAME:    nicolae_pan_bazaar_rune
TAGS:    patrolling transparent no_item_gen
WEIGHT:  5
ORIENT:  float
{{
  local shoplord = string.gsub(crawl.make_name(), " ", "_")
  local shops = { "Zone", "Stash", "Warehouse", "Hoard", "Trove", "Cache",
                  "Depot", "Stock", "Depository", "Bin", "Store", "Supply",
                  "Sales", "Hole", "Deals", "Outlet", "Market", "Inventory" }
  local shopsuffix = shops[ crawl.random2(#shops) + 1 ]
  kmons("Z = pandemonium lord name:" .. shoplord)
  if you.have_rune("demonic") or is_validating() then
    kfeat("Z = general shop name:" .. shoplord .. " type:Rarities suffix:"
               .. shopsuffix .. " ; any weapon randart | any armour randart | "
               .. "any jewellery randart | any randbook")
  else
    kfeat("Z = general shop name:" .. shoplord .. " type:Demonic_Rune suffix:"
               .. shopsuffix .. " count:1 ; demonic rune of Zot")
  end
  kfeat("H = general shop name:" .. shoplord .. " type:Assorted" ..
        " suffix:Sundries ; any | any good_item | star_item")
  kfeat("J = scroll shop name:" .. shoplord .. " type:Exquisite" ..
        " suffix:Manuscripts ; " .. string.gsub(dgn.good_scrolls, "/", "|"))
  kfeat("K = distillery shop name:" .. shoplord .. " type:Quality" ..
        " suffix:Elixirs ; " .. string.gsub(dgn.loot_potions, "/", "|"))
  kfeat("L = general shop name:" .. shoplord .. " type:Fine" ..
        " suffix:Accessories ; any misc | any wand w:15")
  kfeat("M = jewellery shop name:" .. shoplord)
  kfeat("N = book shop name:" .. shoplord)
  kfeat("O = general shop name:" .. shoplord .. " type:Superb" ..
        " suffix:Hardware ; any weapon good_item | any armour good_item")
  kfeat("S = general shop name:" .. shoplord .. " type:Infernal " ..
        "suffix:Boutique ; any weapon good_item ego:draining | " ..
        "any weapon good_item ego:pain | any weapon good_item ego:chaos | " ..
        "any weapon good_item ego:vampirism | demon blade good_item | " ..
        "demon trident good_item | demon whip good_item | " ..
        "staff of necromancy w:3 | scroll of torment q:2 w:5 | " ..
        "scroll of torment q:3 w:5 | randbook disc:necromancy")
}}
# 2/3 chance of nothing, 4/15 chance of gold, 1/15 chance of a lot of gold
KITEM:   HJKLMNOS-_ = $ w:4 / $ good_item w:1 / nothing w:10
# Fountains just get a 1/6 chance of a regular stack of gold
KITEM:   TUY = $ / nothing w:50
# Monsters in the outer promenade area: 1/9 chance of a guest, 1/9 chance of
# a greater demon, 2/9 chance of any demon or demonspawn, 5/9 chance of nothing.
# Guests are demon summoning monsters from other branches, who are here to
# commune with demons, make deals, or just browse the pandemonic bazaar.
KMONS:   HJKLMNOS-_ = deep elf demonologist / kobold demonologist / \
           mummy priest / orc high priest / orc sorcerer / dread lich / \
           greater demon w:55 / nekomata w:5 / demonspawn warmonger w:2 / \
           demonspawn soul scholar w:2 / demonspawn blood saint w:2 / \
           demonspawn corrupter w:2 / any demon w:112 / nothing w:300
KMONS:   YPQR = greater demon w:340 / nekomata w:20 / demonspawn soul scholar / \
           demonspawn blood saint / demonspawn corrupter / demonspawn warmonger
KFEAT:   _ = altar_gozag
KFEAT:   P = exit_pandemonium
KFEAT:   QR = transit_pandemonium
KFEAT:   Y = Y
SHUFFLE: Pp/Qq/Rr, S_, TU
SUBST:   p = +, qr = c
NSUBST:  D = + / x, E = + / x, F = + / x
NSUBST:  S = H / J / K
SHUFFLE: HJKLMNOS
FTILE:   HJKLMNOPQRSTUYZcx-+_. = floor_limestone
# This vault has a special announcement to provide a heads-up that this rune
# is not obtained in the usual way. It uses yellow text to evoke Gozag's gold
# related messages, as well the messages from arriving in the four unique
# lords' levels.
epilogue {{
if not you.have_rune("demonic") then
    crawl.mpr("A powerful Pandemonium lord resides here.", "warning")
    crawl.mpr("<yellow>A demonic rune of Zot can be found here... " ..
              "for a price.</yellow>")
end
}}
MAP
        xxDxx
       xx...xx
       D.....D
      xx.....xx
  xxDxx...U...xxDxx
 xx...---...---...xx
 x....-_-...-S-....x
xx....---...---....xx
x...T...ccccc...T...x
xx.....cc...cc.....xx
 F.....r..P..q.....E
 xx---ccY...Ycc---xx
  x-S-c...Z...c-_-x
 xx---ccQ...Rcc---xx
 F.....c..Y..c.....E
xx.....cc...cc.....xx
x...U...ccpcc...U...x
xx....---...---....xx
 F....-_-...-S-....E
 xx...---...---...xx
  xxFxx...T...xxExx
      xx.....xx
       F.....E
       xx...xx
        xxxxx
ENDMAP

#############################################################################
# Pandemonium lesser demon vaults: (announced) rune serial vaults
#############################################################################

# Place (two) big, fancy demonic rune vaults, (with an announced guarantee of
# the demonic rune's presence) in some fixed thematic threats and a few
# essentially-decorative small vaults.
# TODO: use subvaults of layout_pan_divisions to accomplish this.
NAME:   pan_demonic_rune_highlights
# mark this as removed so that it doesn't get tested, remove if this ever is
# made to work:
TAGS:   removed
ORIENT: float
WEIGHT: 0
: pan_highlights_setup(_G)
epilogue{{
  pan_declare_demonic_rune()
}}

# Concept inherited from lemuel_draining_boxes.
NAME:   regret_index_pan_draining_boxed
TAGS:   pan_fixed_rune_boxes pan_fixed_lure_boxes transparent
ORIENT: float
MONS:   pandemonium lord, ghost moth
MONS:   demonspawn soul scholar, sin beast, any demon, wyrmhole
KMONS:  7O = ghost moth
: if demonic_rune_vault_is_decoy() then
KITEM:  O = superb_item / demonic rune of zot mimic
: else
KITEM:  O = potion of mutation pre_id, demonic rune of zot
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune()
end
}}
: end
KFEAT:  m = iron_grate
KFEAT:  { = {
SUBST:  n : m.
KMASK:  2O = opaque
KPROP:  2 = no_tele_into
MAP
  ...................
  .............mmm...
....vvvvvvvvvvvm2mvv...
...vv.3.4......mmm*vv..
..vv=mm7.5.........*v..
..v.mOm.5..........*v..
..v3mmm5.6.........mmm.
..v.7.510.5........m2m.
..v4.5.0{5.........mmm.
..v.5.6.5...........v..
..v....5............v..
..v.........mmm.....v..
..v.........m2m....vv..
.mmm........mmm....v...
.m2m...................
.mmm...................
..v*..............nnn..
..vv**mmm.....vv..n2n..
...vvvm2mvvvvvv...nnn..
  ....mmm..............
  .....................
ENDMAP

NAME:    serial_pan_draining_one
MONS:    ghost moth, any demon
SHUFFLE: CDE
SUBST:   C : vv..., DE = .
KMASK:   1 = opaque
: serial_pan_setup(_G, "boxes")
MAP
  .D..EE
  .D..EE
...D.2..
..mmm...
CCm1mDDD
..mmm...
.2.C..
...C..
ENDMAP

NAME:    serial_pan_draining_two
MONS:    ghost moth, any demon
SHUFFLE: CD
SUBST:   C : vvv., D = .
KMASK:   1 = opaque
: serial_pan_setup(_G, "boxes")
MAP
  ..DvC
  ..DvC
....2..
..mmm..
..m1m..
..mmm..
..2....
CvD..
CvD..
ENDMAP

NAME:    serial_pan_draining_three
WEIGHT:  4
MONS:    ghost moth, any demon
SUBST:   - : +.
: serial_pan_setup(_G, "boxes")
MAP
.mmm+m
.m1-2+
.m-m-m
.+2-1m
.m+mmm
......
ENDMAP

###################################

NAME:    lemuel_hellion_island
TAGS:    pan_fixed_rune_hellions pan_fixed_lure_hellions
ORIENT:  float
MONS:    fire bat, hellion, hellephant
KMONS:   O = pandemonium lord
: if demonic_rune_vault_is_decoy() then
KITEM:   O = superb_item / demonic rune of zot mimic
: else
KITEM:   O = potion of mutation pre_id, demonic rune of zot
KFEAT:   { = {
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune()
end
}}
: end
SHUFFLE: Aa / Bb / Cc / Dd / Ee / Ff / Gg / Hh
SUBST:   ABCabc = l, DEFdef = .
SUBST:   G : l., g : l., H : l., h : l.
MAP
    1.AlllB..
  ..FlllllllA..
 .ElllllllllllB.
.Flllllh2alllllC1
.Ellllg2{2bllllD.
Dllllf2.2.2cllllC
lllle2.2O||.dllll
lllld.||32.2ellll
Cllllc2.2.2fllllD
.Dllllb2.2gllllE.
1Cllllla2hlllllF.
 .BlllllllllllE.
  ..AlllllllF.
    ..BlllA.1
ENDMAP

NAME:    serial_pan_hellions_one
MONS:    hellion, any demon
SHUFFLE: 12
: serial_pan_setup(_G, "hellions")
MAP
  ....
 .ll...
.ll.l..
.l12.l.
.ll1ll.
..lll.
 ....
ENDMAP

NAME:    serial_pan_hellions_two
MONS:    hellion, any demon
SHUFFLE: 12
: serial_pan_setup(_G, "hellions")
MAP
  ...l.
 .lll.l.
.ll12.1l
 .lll.l.
  ...l.
ENDMAP

NAME:    serial_pan_hellions_three
MONS:    hellion, any demon
SHUFFLE: 12
: serial_pan_setup(_G, "hellions")
MAP
   .l.
  ...l.
 .l.ll.
...l.ll
l.l.12l
.lll2ll
 ..lll
ENDMAP

########################################

NAME:    lemuel_hall_of_pain
TAGS:    pan_fixed_rune_pain pan_fixed_lure_pain
ORIENT:  float
MONS:    pandemonium lord, brimstone fiend
MONS:    tormentor, smoke demon, any demon
: if demonic_rune_vault_is_decoy() then
KITEM:   O = superb_item / demonic rune of zot mimic
: else
KITEM:   O = potion of mutation pre_id, demonic rune of zot
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune()
end
}}
: end
KFEAT:   m = iron_grate
KFEAT:   { = {
NSUBST:  3 = 6:3 / *:.
NSUBST:  4 = 16:4 / 4 = 4. / 2 = 234 / *:.
MAP
.......@.......
cccccc+++cccccc
cOc4cl...lc4c|c
c1c4cl.5.lc4c|c
c0c4cl...lc4c0c
c5c4cl...lc4c5c
c3c4cl...lc4c3c
c5c4ml...lm4c5c
c3c4cl...lc4c3c
c5c4cl.5.lc4c5c
c3c4ml...lm4c3c
c3c4cl...lc4c3c
c5c4cl...lc4c5c
c.m4ml...lm4m.c
c.c4cl.5.lc4c.c
c.cccl5.5lccc.c
c.+..5.5.5..+.c
ccccccccccccccc
ENDMAP

NAME:    serial_pan_pain_one
MONS:    smoke demon, tormentor, any demon
KMASK:   1' = opaque
: serial_pan_setup(_G, "pain")
MAP
 xxxxxxxx
 x1''''1x
 xxmxxmxx
 xll32llx
 @......@
xxxxxxxxxx
ENDMAP

NAME:    serial_pan_pain_two
MONS:    smoke demon, tormentor, any demon
KMASK:   1 = opaque
: serial_pan_setup(_G, "pain")
MAP
 xxxxxxx
 x11m2xx
 xmmx3xx
 xllx.xx
 @.....@
xxxxxxxxx
ENDMAP

########################################

NAME:   grunt_pan_frozen_over
TAGS:   pan_fixed_rune_frozen pan_fixed_lure_frozen
TAGS:   no_pool_fixup no_monster_gen transparent
ORIENT: float
MONS:   blizzard demon, demonspawn soul scholar
MONS:   walking frostbound tome, ice devil
KMONS:  56 = ice statue
KMONS:  7 = executioner simulacrum
KMONS:  P = pandemonium lord
: if demonic_rune_vault_is_decoy() then
KITEM:  O = superb_item / demonic rune of zot mimic
: else
KITEM:  O = potion of mutation pre_id, demonic rune of zot
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune()
end
}}
: end
KFEAT: 5 = W
KFEAT: 6 = w
KFEAT: { = {
SUBST: A : wWW., B : wWW., C : WW., D : WW.
MAP
ccccccccccccccccccc
4AwcwA1*1O1*1AwcwA4
.AwcwB*12P21*BwcwA.
4AwccwB%131%BwccwA4
 7BwccwA313AwccwB7
 .Bwwcc65556ccwwB.
  .CCwwDwwwDwwCC.
   ..CCwwwwwCC..
     .7DDDDD7.
       .4.4.
ENDMAP

NAME:   serial_pan_frozen_one
TAGS:   no_pool_fixup
MONS:   any demon
KMONS:  2 = blizzard demon
KFEAT:  2 = w
: serial_pan_setup(_G, "frozen")
MAP
  ...ccccc
 ..wwccccc
 .wwwccccc
 .ww2ccccc
1ccccGcccc
 .ww2c2ww.
 .wwwcwww.
 ..wwcww..
  ...c...
     1
ENDMAP

NAME:   serial_pan_frozen_two
TAGS:   no_pool_fixup
MONS:   any demon
KMONS:  2 = blizzard demon
KFEAT:  2 = w
: serial_pan_setup(_G, "frozen")
MAP
   cccccc
    .w2Gc
c   .wwwc
c1....wwc
cww....1c
cwww.   c
cG2w.
cccccc
ENDMAP

NAME:   serial_pan_frozen_three
TAGS:   no_pool_fixup
MONS:   any demon
KMONS:  2 = patrolling blizzard demon
KFEAT:  2 = w
: serial_pan_setup(_G, "frozen")
MAP
ccccc
.ww2c
.wwwc
.1wwcc
....Gcccc
   ..ww2c
    .wwwc
    .1wwc
    ...c
ENDMAP

########################################

NAME:    pan_disco_hall
TAGS:    pan_fixed_rune_disco pan_fixed_lure_disco no_rotate
ORIENT:  southeast
MONS:    rakshasa, demonspawn corrupter, demonspawn blood saint
MONS:    dancing weapon ; demon trident good_item ego:distortion
MONS:    dancing weapon ; lajatang good_item ego:distortion
MONS:    dancing weapon ; demon blade good_item ego:distortion
MONS:    brimstone fiend / ice fiend / tzitzimitl / hell sentinel
KMONS:   8 = nekomata
KMONS:   p = demonic plant
KMONS:   P = pandemonium lord
ITEM:    any potion
: if demonic_rune_vault_is_decoy() then
KITEM:   O = superb_item / demonic rune of zot mimic
: else
KITEM:   O = potion of mutation pre_id, demonic rune of zot
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune()
end
}}
: end
KFEAT:   D = granite_statue
KFEAT:   X = rock_wall
KFEAT:   _ = floor
KFEAT: { = {
# Previously a raw average of 9.2 place:Pan spawns.
NSUBST:  - = 2:7 / 7:0 / 5 = 00. / *:.
SHUFFLE: 123, 456
COLOUR:  D = random
COLOUR:  P.xp012345678dO = disco
# WALL_ZOT_BLUE and FLOOR_PEBBLE are the bases
# for disco-coloured variants of the tiles thereof.
RTILE:   x = wall_zot_blue
FTILE:   D.xpP012345678dO = floor_pebble
FTILE:   _{+S = floor_hall
TILE:    D = dngn_disco_ball
: vault_metal_statue_setup(_G, "S", "dimensional conduit")
: set_feature_name("granite_statue", "weirdly glowing ball")
MARKER:  D = lua:props_marker { veto_destroy="veto" }
MAP
               xx+xx
               xp.px
               x...x
   xxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxx
   x....................x1-------------3x
   x.x.S.x.x.x.S.x.x.x..x-8-----------2-x
   x.0...............0..x---------------xxxxxxXXX
   x.x.x.x.S.x.x.x.S.x..x---------------_....xXXX
xxxx.....................---------------_.d4.xXXX
xp.x.....................---------------_....xXXX
+.._.........{..........D-------P-------_.O5.xXXX
xp.x.....................---------------_....xXXX
xxxx.....................---------------_.d6.xXXX
   x.xxxxxxxxxxxxxxxxx..x---------------_....xXXX
   x.x0d0x.d0x0d.x0d0x..x---------------xxxxxxXXX
   x.x0..x0..x..0x..0x..x-8-----------1-xxxxxxXXX
   x._..............._..x2-------------3xxxxxxXXX
   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXX
   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ENDMAP

NAME: serial_pan_fixed_disco_one
MONS: demonic plant
: serial_pan_setup(_G, "disco")
MAP
xxxxxxx
x.0...x
x.....x
@..1..@
x.....x
x...0.x
xxxxxxx
ENDMAP

NAME:   serial_pan_fixed_disco_two
WEIGHT: 8
TILE:   x : wall_zot_white / wall_zot_darkgray
: serial_pan_setup(_G, "disco")
MAP
    .........
    .x.x0x.x.
.............
.x.x0x.x.
.........
ENDMAP

#############################################################################
# Pandemonium vaults: non-panlord-related.
#############################################################################

NAME:   pan_surprise
TAGS:   extra
KMONS:  1 = executioner
# It may be a surprise for the executioner as well...
MAP
xxxx
xx.x
x1x@
xxx
ENDMAP

###################################

NAME:   pan_captured_pigsty
TAGS:   extra
MONS:   red devil, holy swine
KFEAT:  o = iron_grate
{{
local function swineherd_die(monster, killer_type, killer_index, silent, wizard)
  local p = dgn.find_marker_positions_by_prop("pigsty_gate", 1)[1]
  if (p == nil) then
    crawl.mpr("Error: someone stolen the pigsty gate!")
    return
  end
  if dgn.grid(p.x, p.y) ~= dgn.fnum("iron_grate") then
    return
  end
  dgn.grid(p.x, p.y, "floor")
  if (you.see_cell(p.x, p.y)) then
    crawl.mpr("The grate goes up!")
  else
    crawl.mpr("You hear a sound of rusty metal sliding.")
  end
end
}}
MARKER: 1 = lua:MonPropsMarker:new {monster_dies_lua_key = swineherd_die}
MARKER: o = lua:props_marker {pigsty_gate=1}
MAP
xxxxx
x222x
x222x
xxoxx
@..1@
ENDMAP

###################################
# A couple of small vaults featuring bloodied demonspawn divinity decor.

NAME:    pan_blood_fountain_1
TAGS:    extra allow_dup transparent
CHANCE:  10%
KFEAT:   T = altar_trog / altar_nemelex_xobeh w:5
KFEAT:   K = altar_kikubaaqudgha
KFEAT:   M = altar_makhleb
KFEAT:   L = altar_lugonu
KFEAT:   t = demonic_tree
: if crawl.one_chance_in(3) then
SHUFFLE: YT / xK / GM / tL
TILE:    x = wall_undead
:   vault_granite_statue_setup(_G, "G", "scintillating statue")
: else
SUBST:   T = Y
: end
SUBST:   ' = '..
NSUBST:  ' = 2:' / * = '.., ` = 3:' / * = ' .:80
KPROP:   '" = bloody
MAP
 ```
`'Y'`
`'"'`
`'T'`
 ```@
ENDMAP

NAME:    pan_blood_fountain_2
TAGS:    extra allow_dup transparent
CHANCE:  5%
KFEAT:   T = altar_trog / altar_nemelex_xobeh w:5
KFEAT:   K = altar_kikubaaqudgha
KFEAT:   M = altar_makhleb
KFEAT:   L = altar_lugonu
KFEAT:   t = demonic_tree
: if crawl.one_chance_in(3) then
SHUFFLE: YT / xK / GM / tL
TILE:    x = wall_undead
:   vault_granite_statue_setup(_G, "G", "scintillating statue")
: else
SUBST:   T = Y
: end
SUBST:   ' = '..
NSUBST:  ' = 2:' / * = '.., ` = 3:' / * = ' .:80
KPROP:   '" = bloody
MAP
 @`````
 '''`'''
`'Y'`'Y'`
`''"'"''`
 ``'T'``
  `'''`
   ```
ENDMAP

NAME:   pan_blood_fountain_small
TAGS:   extra allow_dup transparent
CHANCE: 15%
MAP
Y
ENDMAP

##################################
NAME:   reaverb_pan_chaos_star
TAGS:   extra transparent pandec
KFEAT:  ^ = devourer's trap
MAP
        ...
 ....  ..x..  ....
 .xx.  .x.x.  .xx.
 .x... ..x.. ...x.
 ...x.. .x. ..x...
   ..x...x...x..
    ..x.....x..
 ... ..^.x.... ...
..x.....xxx.....x..
.x.xxx.xxxxx.xxx.x.
..x.....xxx.....x..
 ... ....x.^.. ...
    ..x.....x..
   ..x...x...x..
 ...x.. .x....x...
 .x... ..x.. ...x.
 .xx.  .x.x.  .xx.
 ....  ..x..  ....
        ...
ENDMAP

###################################
NAME:  reaverb_pan_squares
TAGS:  extra transparent pandec
SUBST: - = xxx+
MAP
.......
.xxx-x.
.x...x.
.x...x.
.x...x.
.x...x.
.xxx+x.
 .x..x.
 .x..x.
 .xx+x.
  .x.x.
  .x+x.
  .....
ENDMAP

###################################
NAME: reaverb_pan_figure_eight
TAGS: extra decor transparent pandec
MAP
    x@x
   xx.xx
  xx...xx
xxx..x..xxx
@...xxx...@
xxx..x..xxx
  xx...xx
  xx...xx
xxx..x..xxx
@...xxx...@
xxx..x..xxx
  xx...xx
   xx.xx
    x@x
ENDMAP

###################################

NAME: nicolae_pan_sigil_obb
TAGS: transparent extra allow_dup luniq_pan_sigil pandec
SHUFFLE: ef
SUBST: a : .x, b : .x, c : .x, d : .x, e : .x, f : ., g : .x, h : .x, \
       i : .x, j : .x, k : .x, l : .x, m : .x, n : .x, o : .x
MAP
...........................
..nl.j....fe.d.ef....j.ln..
.oc.g.h.bkaxxxxxakb.h.g.co.
.m.x...x..fe.x.ef..x...x.m.
..g.x.x.h....x....h.x.x.g..
.i...xxxxxxxxxxxxxxxxx...i.
..g.x.x.h....x....h.x.x.g..
.m.x...x..fe.x.ef..x...x.m.
.oc.g.h.bkaxxxxxakb.h.g.co.
..nl.j....fe.d.ef....j.ln..
...........................
ENDMAP

NAME: nicolae_pan_sigil_nadil
TAGS: transparent extra allow_dup luniq_pan_sigil pandec
SUBST: a : .x, b : .x, c : .x, d : .x, e : .x, f : .x, g : .x, h : .x, \
       i : .x, j : .x, k : .x, l : .x, m : .x, n : .x
MAP
..........
.cc.dd.b...
.cxxxxx.....
..xx...a.l...
.dx.x.e...j...
.dx..x.f..i....
..x.e.x..xxx.k..
.b.a.f.xx.n.xxk..
.......x..m..x....
...l..x..ghg..x....
 ...jixnmhxhmnxij...
  ....x..ghg..x..l...
   ....x..m..x.......
    ..kxx.n.xx.f.a.b.
     ..k.xxx..x.e.x..
      ....i..f.x..xd.
       ...j...e.x.xd.
        ...l.a...xx..
         .....xxxxxc.
          ...b.dd.cc.
           ..........
ENDMAP

NAME: nicolae_pan_sigil_itan
TAGS: transparent extra allow_dup luniq_pan_sigil pandec
SUBST: a : .x, b : .x, c : .x, d : .x, e : .x, f : .x, g : .x, \
       h : .x, i : .x, j : .x, k : .x, l : .x, m : .x, n : .x, \
       o : .x, p : .x, q : .x
MAP
...................
....b.c.d.d.c.b....
.....bcd.g.dcb.....
....aaxee.eexaa....
.p.k...x.f.x...k.p.
...k..q.x.x.q..k...
.llx.....x.....xll.
....x.h..x..h.x....
.o...x...x...x...o.
..n..x..ixi..x..n..
...m.xj..x..jx.m...
..n..x..ixi..x..n..
.o...x...x...x...o.
....x.h..x..h.x....
.llx.....x.....xll.
...k..q.x.x.q..k...
.p.k...x.f.x...k.p.
....aaxee.eexaa....
.....bcd.g.dcb.....
....b.c.d.d.c.b....
...................
ENDMAP

NAME: nicolae_pan_sigil_eeng
TAGS: transparent extra allow_dup luniq_pan_sigil pandec
SUBST: a : .x, b : .x, c : .x, d : .x, e : .x, f : .x, g : .x, h : .x, i : .x, \
       j : .x, k : .x, l : .x, m : .x, n : .x
MAP
       .........
      .....j.....
      ..i.xxx.i..
     ....x.x.x....
    ..l.x..x..x.l..
   ..k.cxbaxabxc.k..
 ...l.n...m.m...n.l...
.....c.h...d...h.c.....
..i.xx..g.exe.g..xx.i..
...x.b...f.x.f...b.x...
..x..am.e..x..e.ma..x..
.jxxxx.dxxxxxxxd.xxxxj.
..x..am.e..x..e.ma..x..
...x.b...f.x.f...b.x...
..i.xx..g.exe.g..xx.i..
.....c.h...d...h.c.....
 ...l.n...m.m...n.l...
   ..k.cxbaxabxc.k..
    ..l.x..x..x.l..
     ....x.x.x....
      ..i.xxx.i..
      .....j.....
       .........
ENDMAP

NAME: nicolae_pan_sigil_uleosi
TAGS: transparent extra allow_dup luniq_pan_sigil pandec
SUBST: a : .x, b : .x, c : .x, d : .x, e : .x, f : .x, g : .x, h : .x, i : .x, \
       j : .x, k : .x, l : .x, m : .x, n : .x, o : .x, p : .x, q : .x, r : .x, \
       s : .x, t : .x, u : .x, v : .x, w : .x, y : .x
MAP
                 ..........
       ....................
     ..............e...b...
    ....tuv....y..fxd.cxa..
   ......j....w....x...x...
  ...q..xxx..s...onx.g.xno.
 .....px.k.xr......x...x...
 .....x.....x......xxxxx...
 ....x...i...x...i...x.....
....lx..ihi.mxm.ihi..xl....
.....x...i...x...i...x....
...xxxxx......x.....x.....
...x...x......rx.k.xp.....
.onx.g.xno...s..xxx..q...
...x...x....w....j......
..axc.dxf..y....vut....
...b...e..............
....................
..........
ENDMAP

NAME: nicolae_pan_mnolegish_1
TAGS: transparent extra allow_dup luniq_decor_lord mnolegdec
SHUFFLE: AB, DG/CH, EI/FJ
SUBST: ACEHI : c, BDF : ., GI : @
TILE: c = stone_wall_flesh_cage
MAP
ccc.@.ccccccccc
ccAA...ccc.cccD
cAAAc...c...cDG
.AAccc.......DD
@.ccccc...c...c
.BBccc...ccc.CC
cBBBc.....cccCH
ccBB...c...cccC
ccc...ccc...ccc
cc...ccccc...cc
c...ccccc...ccc
...ccccc...cccc
@.cccccEE.FFccc
.cccccEEEcFFFcc
cccccEIEcccFJFc
ENDMAP

NAME: nicolae_pan_mnolegish_2
TAGS: extra allow_dup luniq_decor_lord mnolegdec
SHUFFLE: Aa/Bb, Dd/Ee, Ff/Gg, Hh/Ii, jklm
SUBST: ADFH = @, adfh = ., BbEeGgIi = c, j : ., k : .c, l : .c, m : .c
TILE: c = stone_wall_flesh_cage
MAP
cccdDdccceEeccc
ccccdddceeecccc
cccccdd.eeccccc
accccc...cccccf
Aacccjj.kkcccfF
aaacjjjckkkcfff
caa.jjccckk.ffc
cc...ccccc...cc
cbb.mmcccll.ggc
bbbcmmmclllcggg
Bbcccmm.llcccgG
bccccc...cccccg
cccccii.hhccccc
cccciiichhhcccc
ccciIiccchHhccc
ENDMAP

NAME: nicolae_pan_mnolegish_3
TAGS: transparent extra allow_dup luniq_decor_lord mnolegdec
SHUFFLE: ABC
SUBST: ' = @..., AB = ., C = c, D : .c, E : .c, F : .c
TILE: c = stone_wall_flesh_cage
MAP
cccccc'ccccccc
ccccc...cccEcc
ccccBB.CCcEEEc
ccc.BBcCC.EEcc
cc...ccc...ccc
c...cccAA...cc
'..ccc.AAc...c
c...c...ccc..'
cc.....ccc...c
ccc...ccc...cc
ccDD.ccc...Fcc
cDDDccc...FFFc
ccDccc...ccFcc
ccccc.@.cccccc
ENDMAP

NAME: nicolae_pan_mnolegish_4
TAGS: transparent extra allow_dup luniq_decor_lord mnolegdec
SHUFFLE: AB, CD, EFGH, IJKL, MN, OP, QR, ST
SUBST: ACEI = ., BDFGHJKLNPRT = c, MOQS = @
TILE: c = stone_wall_flesh_cage
MAP
cMMcccccccccNNc
T..BBB...FFF..O
T..BB...FFF...O
cAAc...ccc...Ic
cAA...HHc...IIc
cA...cHH...cIIc
c...GGc...ccI.c
c..cGG...KKc..c
c.Ecc...cKK...c
cEEc...LLc...Cc
cEE...cLL...CCc
cE...ccc...cCCc
S...JJJ...DD..P
S..JJJ...DDD..P
cRRcccccccccQQc
ENDMAP

NAME: nicolae_pan_mnolegish_5
TAGS: transparent extra allow_dup luniq_decor_lord mnolegdec
SHUFFLE: ABCDEF
SUBST: A : .c, B : .c, CDEF : ., G : .c, H : .c, I : .c
TILE: c = stone_wall_flesh_cage
MAP
...............
.cccccccAAAccc.
.cGGGccAAAccHc.
.cGGGc.AAccHHc.
.cGcc...ccHHHc.
.cccBB.CCccHHc.
.ccBBBcCCCccHc.
.cBBBcccCC.Hcc.
..BBccccc...cc.
...cccccDD.FFc.
..EEcccDDDcFFF.
.cEEEcDDDcccFF.
.ccEE.DDccIccF.
.ccc...ccIIIcc.
...............
ENDMAP

NAME:  nicolae_pan_lom_lobonic_1
TAGS:  transparent extra allow_dup no_pool_fixup luniq_decor_lord lomdec
KFEAT: bz = b
SHUFFLE: BQ / BQ / ''
SUBST: ' = ., Q = b, B : wb
COLOUR: x = white
TILE: x = wall_hall_white
TILE: z = wall_crystal_bookcase
MAP
@.xxxxxxxxxxx.@
...wwwwwwwww...
x...wbbzbbw...x
xw...b...b...wx
xww.........wwx
xwbb..BBB..bbwx
xwb..BQQQB..bwx
xwz..BQQQB..zwx
xwb..BQQQB..bwx
xwbb..BBB..bbwx
xww.........wwx
xw...b...b...wx
x...wbbzbbw...x
...wwwwwwwww...
@.xxxxxxxxxxx.@
ENDMAP

NAME: nicolae_pan_lom_lobonic_2
TAGS: transparent extra allow_dup no_pool_fixup luniq_decor_lord lomdec
KFEAT: bz = b
SHUFFLE: Dd/Ee
SUBST: A : .w, B : .w, C : .w, D = ., d = w, Ee = b, W = .w
COLOUR: x = white
TILE: x = wall_hall_white
TILE: z = wall_crystal_bookcase
MAP
   xxxxx..@..
 xxxwwwww...bb
 xwwwwwwww...bb
xxwwbbbbbw...Ab
xwwbbBBBbz...Ab
xwbb.........bb
xwb........bbb
xwb..WwwDDddwbb
xwz..wwwwwwwwwb
xwb..wwwWWWwwwb
xwb...w.....wW.
xwww..........@
xxwww...bzb....
 xxw...bb bbCCC
  x..@bb   bbb
ENDMAP

NAME: nicolae_pan_lom_lobonic_3
TAGS: transparent extra allow_dup no_pool_fixup luniq_decor_lord lomdec
KFEAT: bz = b
SUBST: - = ..w, B = bw, X = ..x, p = ..b
COLOUR: x = white
TILE: x = wall_hall_white
TILE: z = wall_crystal_bookcase
MAP
        bbbbb
   xx  bbwwBbb
@.xxxxbb--wwBbb
..xxxxzp..-wwBbb
..XxxXp....-wwBb
............-wwb
@...........-wwz
............-wwb
..XxxXp....-wwBb
..xxxxzp..-wwBbb
@.xxxxbb--wwBbb
   xx  bbwwBbb
        bbbbb
ENDMAP

NAME: nicolae_pan_lom_lobonic_4
TAGS: transparent extra allow_dup no_pool_fixup luniq_decor_lord lomdec
KFEAT: bz = b
SHUFFLE: IJKL
SUBST: A : .w, B : .w, C : .w, D : .w, E : .w, F : .w, G : .w, H : .w, \
       I : .b, JKL : .
COLOUR: x = white
TILE: x = wall_hall_white
TILE: z = wall_crystal_bookcase
MAP
   bbbbbb
   bCCCCbbbb
  @....CbFFbb
bb.....zbFFEbb
bD..BB.K..EEEb
bD..BBBK..EEEb
bD...BBbzIbbEb
bDDbLLbbA..bbb
bbbz..zAAA..b
 bGG..J.AA..b
 bGGHHb.....b
 bbHHHbb...@
  bbHHHbbbb
   bbbbb
ENDMAP

NAME: nicolae_pan_cerebovesque_1
TAGS: transparent extra allow_dup luniq_decor_lord cerebovdec
SUBST: A : .lv, B : .lv, C : .lv
TILE: v = dngn_metal_steel_blood
MAP
...............
.vvvvv...vvvvv.
.vAAAv...vBBBv.
.vAAAvv+vvBBBv.
.vAAA.....BBBv.
.vvv.......vvv.
...v..CCC..v...
...+..CCC..+...
...v..CCC..v...
.vvv.......vvv.
.vBBB.....AAAv.
.vBBBvv+vvAAAv.
.vBBBv...vAAAv.
.vvvvv...vvvvv.
...............
ENDMAP

NAME: nicolae_pan_cerebovesque_2
TAGS: transparent extra allow_dup luniq_decor_lord cerebovdec
SHUFFLE: Aa/Bb, CD
SUBST: Bb : v, a : ., A : .lv, C : +, D : v+, E : .v, F : .v, L : .l, V : .v
TILE: v = dngn_metal_steel_blood
MAP
  ..........
  .vvv..vvv.
  .vAvCCvAv.
  .vva..avv.
....D....D....
.Evvv....vvvE.
.FvV..LL..VvF.
.FvV..LL..VvF.
.Evvv....vvvE.
....D....D....
  .vva..avv.
  .vAvCCvAv.
  .vvv..vvv.
  ..........
ENDMAP

NAME: nicolae_pan_cerebovesque_3
TAGS: transparent extra allow_dup luniq_decor_lord cerebovdec
SHUFFLE: EFG, HIJ
SUBST: GJ = v, EFHI = +
TILE: v = dngn_metal_steel_blood
MAP
@....vvvv....@
.vvv.v..v.vvv.
.vvv.H..H.vvv.
.vvv.vIIv.vvv.
.....J..J.....
vvEvGv..vGvEvv
v..F......F..v
v..F......F..v
vvEvGv..vGvEvv
.....J..J.....
.vvv.vIIv.vvv.
.vvv.H..H.vvv.
.vvv.v..v.vvv.
@....vvvv....@
ENDMAP

NAME: nicolae_pan_cerebovesque_4
TAGS: extra allow_dup luniq_decor_lord cerebovdec
SHUFFLE: AB/GH, CD, EF
SUBST: A : .l, B = l, G : .v, CEH : v, DF : +
TILE: v = dngn_metal_steel_blood
MAP
     .@@.vvvvvvv
     ....D..v..v
     ....C..E..v
     ....vvvvFvv
     ....ABBA..@
.........ABBA..@
...vDDvAAvvvv...
...C..vBBv..C...
...C..vBBv..C...
...vvvvAAvDDv...
@..ABBA.........
@..ABBA....
vvFvvvv....
v..E..C....
v..v..D....
vvvvvvv.@@.
ENDMAP

NAME: nicolae_pan_gloorx_vloqian_1
TAGS: transparent extra allow_dup luniq_decor_lord gloorxdec
SHUFFLE: Aa/Bb, de, DE
SUBST: aD = x, be = ., A = +, B = c, d : .x, E : .x
COLOUR: x = blue
TILE: x = wall_hall_of_shadows
TILE: c = stone_wall_shadow_mesh
MAP
xxxxxx.@.xxxxxx
x..d.e.d.e.d..x
x.D.E.D.E.D.E.x
xd.e.d...d.e.dx
x.E.ccABAcc.D.x
xe.dcababacd.ex
..D.Aba.abA.E..
@d..Ba...aB..d@
..E.Aba.abA.D..
xe.dcababacd.ex
x.D.ccABAcc.E.x
xd.e.d...d.e.dx
x.E.D.E.D.E.D.x
x..d.e.d.e.d..x
xxxxxx.@.xxxxxx
ENDMAP

NAME: nicolae_pan_gloorx_vloqian_2
TAGS: transparent extra allow_dup luniq_decor_lord gloorxdec
SUBST: A : .x, B : .x, C : .x, D : .x, E : .x, F : .x, G : Hc, H : ..c
COLOUR: x = blue
TILE: x = wall_hall_of_shadows
TILE: c = stone_wall_shadow_mesh
MAP
...............
.A.B..D.D..B.A.
..x....x....x..
.B.C..E.E..C.B.
....F.....F....
.....ccHcc.....
.D.E.cGGGc.E.D.
..x..HGGGH..x..
.D.E.cGGGc.E.D.
.....ccHcc.....
....F.....F....
.B.C..E.E..C.B.
..x....x....x..
.A.B..D.D..B.A.
...............
ENDMAP

NAME: nicolae_pan_gloorx_vloqian_3
TAGS: transparent extra allow_dup luniq_decor_lord gloorxdec
SHUFFLE: abfg/dehi
: if crawl.coinflip() then
SUBST: d = a, e = b, h = f, i = g
: end
SUBST: dehi = .
SHUFFLE: ab/gf
: if crawl.coinflip() then
SUBST: f = b, g = a
: end
SUBST: fg = .
SHUFFLE: ab
SUBST: a = x, b = .
COLOUR: x = blue
TILE: x = wall_hall_of_shadows
TILE: c = stone_wall_shadow_mesh
MAP
    ccccccc
   ccabdeacc
  @.ifghifg.@
 c..bdeabde..c
ccifghifghifgcc
cabdeabdeabdeac
cfghifghifghifc
cdeabdeabdeabdc
chifghifghifghc
cabdeabdeabdeac
ccghifghifghicc
 c..bdeabde..c
  @.ghifghi.@
   ccabdeacc
    ccccccc
ENDMAP

NAME: nicolae_pan_gloorx_vloqian_4
TAGS: transparent extra allow_dup luniq_decor_lord gloorxdec
SHUFFLE: ab, de, fg
SUBST: a = x, b = ., df = c, e : .ccc, g : .ccc
COLOUR: x = blue
TILE: x = wall_hall_of_shadows
TILE: c = stone_wall_shadow_mesh
MAP
...............
.ababababababa.
.b...........b.
.a.ccdcecdcc.a.
.b.c.......c.b.
.a.c.cc.cc.c.a.
.b.c.f...f.c.b.
.a...g...g...a.
.b.c.f...f.c.b.
.a.c.cc.cc.c.a.
.b.c.......c.b.
.a.ccdcecdcc.a.
.b...........b.
.ababababababa.
...............
ENDMAP

NAME:    nicolae_pan_sick_transit
TAGS:    transparent extra decor allow_dup pandec
DEPTH:   Pan
SHUFFLE: Aai/Bbj/Cck/Ddl/Eem/Ffn/Ggo/Hhp, Ffn/Qqr/Qqr, Ggo/Sst/Sst
SHUFFLE: Hhp/Uuv/Uuv
SUBST:   ABCDFGHijklnop = x, abcdfgh = -, EQSU = @, emqrstuv = .
SUBST:   I : x., J : x., K : x., L: x., M: x., N : x.
KFEAT:   - = transit_pandemonium w:36 / permanent teleport trap w:1 / \
             exit_pandemonium w:1 / exit_through_abyss w:1
MAP
    xxxAxxx
   xxxxaxxxx
  Hpx.....xjB
 xph..I.I..bjx
xxx..KJ.JK..xxx
xx..KLM.MLK..xx
xx.IJMN.NMJI.xx
Gg...........cC
xx.IJMN.NMJI.xx
xx..KLM.MLK..xx
xxx..KJ.JK..xxx
 xnf..I.I..dlx
  Fnx.....xlD
   xxxxexxxx
    xxxExxx
ENDMAP

NAME: nicolae_pan_strange_glyphs
TAGS: allow_dup luniq transparent decor extra pandec
DEPTH: Pan
# 2/15 chance of five glyphs, 1/3 chance of four glyphs, 1/3 chance of three,
# 2/15 chance of two, 1/15 chance of just one.
: local count = crawl.random2(15)
: if count < 13 then
SUBST: Ee = _
: end
: if count < 8 then
SUBST: Dd = _
: end
: if count < 3 then
SUBST: Cc = _
: end
: if count < 1 then
SUBST: Bb = _
: end
SUBVAULT: A : sub_strange_glyph
SUBVAULT: B : sub_strange_glyph
SUBVAULT: C : sub_strange_glyph
SUBVAULT: D : sub_strange_glyph
SUBVAULT: E : sub_strange_glyph
SUBST: bcde = .
CLEAR: _
MAP
.........bbbbbbbbccccccccddddddddeeeeeeee
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.AAAAAAA.BBBBBBBbCCCCCCCcDDDDDDDdEEEEEEEe
.........bbbbbbbbccccccccddddddddeeeeeeee
ENDMAP

NAME: nicolae_pan_strange_glyph_acedia
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: abcde
SUBST: abcd = x, e : x.
MAP
.x..a.b
x.x.a.b
x.x.a.b
.xxxxxx
..c.d.e
..c.d.e
..c.d.e
ENDMAP

NAME: nicolae_pan_strange_glyph_angst
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: AaBbCc/dd-D-E/-E-Ddd
SUBST: AC- = ., Bbd = x, ac = X, E = .D, D : .x, X = .x
MAP
xxxxx.X
ABC..x.
ABC...x
ABC...x
ABC...x
ABC...x
abc..Xx
ENDMAP

NAME: nicolae_pan_strange_glyph_contempt
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: ab, cd, ef
SUBST: ace = x, bdf = .
NSUBST: A = . / x, B = . / x, C = . / x, D = . / x
MAP
ab.xeex
AA.cx.f
BB.c.xf
CC.xddx
DD....x
ba...x.
.bxxx..
ENDMAP

NAME: nicolae_pan_strange_glyph_despair
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: Aa, Bb
SUBST: AB = X, ab = ., X = .x
MAP
xa....x
Axxxxxx
..x...X
...x...
.xxxx..
.x...xb
xxX..Bx
ENDMAP

NAME: nicolae_pan_strange_glyph_disappointment
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: PQ/PQ/pq, RS/RS/rs, TU/TU/tu
SUBST: PRT = x, QSU = ., prt = Y, qsu = x, Y : xx.
MAP
xxx.xxx
..x.x.x
...x..x
......x
YxPxRxT
x.Q.S.U
x.Q.S.U
ENDMAP

NAME: nicolae_pan_strange_glyph_disgust
TAGS: unrand sub_strange_glyph allow_dup
NSUBST: X = Y / x, Y = 2:x... / 1:x. / *:x
MAP
..xxxxx
.x..X..
x..YxY.
X...X..
x..YxY.
.x..X..
..xxxxx
ENDMAP

NAME: nicolae_pan_strange_glyph_envy
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: ab, cd, ef, gh
SUBST: ac = ., bdeg = x, fhX = .x
MAP
exX.Xxg
f.x.x.h
.cd.dc.
.x...x.
x.....x
x..a..x
.xxbxx.
ENDMAP

NAME: nicolae_pan_strange_glyph_fear
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: ABCDabcd/-X--XyzX/--X-XXyz/---XzXXy, ab, yz, \
         12345/rrprp/prrpp
SUBST: AXyacd = x, BCDbz- = ., 245p = x, 13r = ., Q : ...x, V = .x
MAP
V.xDDDx
x.Aa.dC
x.A.x.C
x.Ab.cC
x2xBBBx
134....
115QQQQ
ENDMAP

NAME: nicolae_pan_strange_glyph_humiliation
TAGS: unrand sub_strange_glyph allow_dup
SUBST: A : ..x, B : xx., C : xx.
MAP
x.A...x
x..A.x.
x...x..
xBBxxx.
x.x...x
xx....x
xCCxxx.
ENDMAP

NAME: nicolae_pan_strange_glyph_loneliness
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: abcd
SUBST: X = .x, abc = x, d = .
MAP
xbxxx.X
a.c..x.
xdx...x
x.....x
x...X.x
.x...x.
X.xxx.X
ENDMAP

NAME: nicolae_pan_strange_glyph_melancholia
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: pq, rs, tu, vw, yz
SUBST: prtvy = x, qsuwz = .
MAP
txx.xxv
u..x..w
..yzy..
x..x..x
xpqxrsx
xqpxsrx
x..x..x
ENDMAP

NAME: nicolae_pan_strange_glyph_rage
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: PQS/pqs, YZ/yz
SUBST: S : .P, P : .x, Qpr = ., s = q, q : .x, \
       Y : .x, Z : .x, yz = .
MAP
xyyYzzx
xYY...x
x....x.
xxxxx..
x..Q...
x...Q..
xPPPPSS
ENDMAP

NAME: nicolae_pan_strange_glyph_regret
TAGS: unrand sub_strange_glyph allow_dup
SUBST: X : .x, Y : ..x, Z : ...x
MAP
xxxxxxx
X.Y.Z.x
X.Y...x
X....x.
.....x.
...xx..
xxx....
ENDMAP

NAME: nicolae_pan_strange_glyph_schadenfreude
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: ab
SUBST: c = a, b = ., a : ..x, d : .x
MAP
xxxxaac
...x..b
...x..b
x..xxxx
x.d...x
.x...x.
d.xxx..
ENDMAP

NAME: nicolae_pan_strange_glyph_spite
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: ab, cd, ef, gh
SUBST: aceg = x, bdfh = .
MAP
xxxxxxb
x....ax
.x....x
.gh...x
..x...x
e.gh.cx
fxxxxxd
ENDMAP

NAME: nicolae_pan_strange_glyph_worry
TAGS: unrand sub_strange_glyph allow_dup
SHUFFLE: Aa, Bb, Cc
SUBST: ABC = x, abc = ., q = .pr, p : .x, r : .x, Q = .PR, P : .x, R : .x
MAP
.xpqrx.
x.....x
xAA.CCx
xaxbxcx
x.BBB.x
x.....x
.xPQRx.
ENDMAP

NAME:    regret_index_pan_guarantee_froz
TAGS:    luniq no_pool_fixup allow_dup extra pandec
WEIGHT:  3
KMONS:   P = demonic plant
KFEAT:   m = iron_grate
SHUFFLE: w-, ----lPm, wl
KPROP:   ? = no_tele_into
SUBST:   - = ., ? = PPGGYmmlw, ! : PGGmm, c : cx
TILE:    G = dngn_statue_ancient_evil
MAP
ccccc...@
.ww!c---.
.wwwc-?-.
..wwcc--.
@....cccc
   ..ww!c
    .wwwc
    ..wwc
    @...c
ENDMAP

NAME:    regret_index_pan_divided_teeth
TAGS:    transparent allow_dup extra pandec
KFEAT:   ^ : alarm trap / dispersal trap
SHUFFLE: ABCDEFHI
SUBST:   A : cccxxxxYG^..., B : x.., C : x.., DEFHI = .
SUBST:   c : cxx, - : xx+, ? : xx+, ! : xx+
TILE:    G = dngn_statue_ancient_evil
MAP
    x         x
   xxx..   ..xxx
 .xx.xx.. ..xx.xx.
..+...+.....+...+..
.x?.A.!x...x!.B.-x.
 x..C..x...x..D..x
xx.EFE.xx.xx.HIH.xx
ccccccccccccccccccccccc
    xx.HIH.xx.xx.EFE.xx
     x..D..x...x..C..x
    .x-.B.!x...x!.A.?x.
    ..+...+.....+...+..
     .xx.xx.. ..xx.xx.
       xxx..   ..xxx
        x         x
ENDMAP

NAME:    regret_index_pan_diabol
TAGS:    transparent allow_dup extra pandec
SHUFFLE: ABCDEFHI
SUBST:   A : cccxxxxYG..., B : x., C : x., DEFHI = ., c : cxx
TILE:    G = dngn_statue_ancient_evil
MAP
   xxx
  xx.xx
 xx.A.xx
xx..BC.xx
x.D...E.x
xx.FHI.xx
 xx...xx
    @xxxxxxx@
      xxxxx...xx
        xx.IHF.xx
        x.E...D.x
        xx.CB..xx
         xx.A.xx
          xx.xx
           xxx
ENDMAP

NAME:    regret_index_pan_glitter_hall
TAGS:    transparent allow_dup extra pandec
SHUFFLE: ABCDEFHIJK
SUBST:   A : mmxxxxYG..., B : x., C : x., DEFHIJK = x
SUBST:   y : x', z : x'
CLEAR:   '
TILE:    G = dngn_statue_ancient_evil
MAP
xxxxxxxxxxy
xAA...........
xAA.B.C.D.D.E.
x.............
x.B.H..I..J.K.
x....H..I.J.K.
x.C...xxxxxxz
x...I.x
x.D..Ix
x.....x
y.D.JJx
 .....x
 .E.KKz
 .....
ENDMAP

### Holy Pan Level ############################################################
#
# The angels have gained a foothold in pandemonium.
#
# This level's main feature is a TSO fortress with a lot of loot. Smaller
# features are a temple of Zin, a weird Ely pasture in a cave, and a river for
# some reason. There's also a cave with a pearl dragon and apis.
#
# This level has a lot of open space where it mostly is up to the RNG to place
# monsters.
#
# Four exits are given, with one placed randomly and the others in a room.
#
# My opinion is that in the long term this concept would work better as a
# portal vault (for pan, even).
#
NAME:   evilmike_holy_pan
TAGS:   no_pool_fixup
ORIENT: encompass
MONS:   angel
MONS:   cherub
MONS:   angel
MONS:   fravashi
MONS:   ophan
MONS:   daeva
KMONS:  89 = pearl dragon
KMONS:  0A = apis
KMONS:  BE = cherub god:Elyvilon
KMONS:  DZ = daeva god:Zin
KMONS:  S = patrolling seraph
KMONS:  P = sacred lotus
# There's a somewhat iffy interaction with pregen here. As long as only one
# pan level is ever pregenerated, it should be basically fine.
: if you.have_rune("demonic") then
KFEAT:  O = exit_pandemonium
: else
KITEM:  O = demonic rune of Zot
: end
ITEM:   w:5 any / potion of curing
ITEM:   any / potion of heal wounds
ITEM:   any good_item
ITEM:   potion of cancellation
ITEM:   potion of might / potion of brilliance
ITEM:   any
KFEAT:  _ = altar_the_shining_one
KFEAT:  E = altar_elyvilon
KFEAT:  Z = altar_zin
KFEAT:  P = w
NSUBST: . = 1:> / *:., i = 2=ghh / 3=ghhiii / *:i
TILE:   c = wall_church
COLOUR: c = yellow
TILE:   C = wall_stone_white
TILE:   v = dngn_metal_wall_white
COLOUR: v& = white
FTILE:  _124S~cG|*'O = floor_limestone
FTILE:  "E80B;$ = floor_grass
COLOUR: "80B;$ = green
FTILE:  -ZDghi&v = floor_vault
KPROP:  ;E8$ = no_tele_into
SUBST:  ~& = +, '"-; = ., C = c
: vault_metal_statue_setup(_G, "GH", "golden statue")
: set_feature_name("metal_wall", "silver wall")
: set_random_mon_list("angel w:20 / cherub / ophan / daeva /\
:                      fravashi / apis w:20")
epilogue{{
if not you.have_rune("demonic") then
  pan_declare_demonic_rune(true)
end
}}
MAP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxCCCCCxxxxxxxxxxxxwwwwxxxxxxxxxwwwxxxwwwxxxxxxCCCCCCCCCCCCCCCCCxxxxxxxxxxx
xxxxxxxC%%%CxxxxxxxxxxPwwwwwwwwxxxwwwxwwwwwwwwxxxxxxCCCCC.......CCCCCxxxxxxxxxxx
xxxxxxxC%.%CxxxxxxxxxxwwwwwwwwwwwwxxxwwwwwwwwxxxxxxxC...+..{.(..+...Cxxxxxxxxxxx
xxxxxxCCC+CCCxxxxxx""""wwwwwwwwwwwwwwwwwwwwCCCCCCCCCC.CCC.......CCC.Cxxxxxxxxxxx
xxxCCCC.....Cxxxx""0"""wwwwwPwwwww;wwwwwwww+........+.CCCCCC+CCCCCC.Cxxxxxxxxxxx
xxxCddC.A...CCC"""""""""wwwwwwww;;;;wwwwwwwCCCCCCCCCC.CCCCCC.CCCCCC.Cxxxxxxxxxxx
xxxCd[+9......+""B"wPwB"""wwwww;;E;;wwwwwwwxxxxxxxxxC.CCCCCC.CCCCCC.Cxxxxxxxxxxx
xxxCddC.A...CCCx""""ww"""""wwwww;;;wwwwwwwxxxxxxxxxxC.C6CCCC+CCCC6C.Cxxxxxxxxxxx
xxxCCCC.....Cxxxxx""""""""""wwwww;;wwwwwxxxxxxxxxxxxC.CC.........CC.Cxxxxxxxxxxx
xxxxxxCCC+CCCxxxxx""0"""xx"""wwwwwwwwwwxxxxxxxxxxxxxC..+.C.C.C.C.+..Cxxxxxxxxxxx
xxxxxxxCe.eCxxxxxxx""""xxxxxx"wwPwwwwwxxxxxxxxxxxxxxCCCC.........CCCCxxxxxxxxxxx
xxxxxxxCeeeCxxxxxxxxx"xxxxxx""wwwwwwwxxxxxxxxxxxxxxxCCCCCCCC+CCCCCCCCxxxxxxxxxxx
xxxxxxxCCCCCxxxxxxxxxxxxxxxx"wwwwwwwwww.xxxxxxxxxxxxxxxxxxxC.Cxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx.wwwwwxwwwww.xxxxxxxxxxxxxxxxxxxC.Cxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx.wwwwwwwwww..xxxxxxxxxxxxxxxxxxxxC.Cxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx..wwwwwwwwwwww.xxxxxxxxxxxxxxxxxxxxC.Cxxxxxxxxxxxxxxxxxx
xCCCCCCCCCCCxxxxxxxxxxx..wwwwxwwwwwww.xx..xxxxx..xxx..xxxxxC+Cx..xxxxxxxxxxxxxxx
xCf63......Cxxxxxxx.....wwwwxxwwwww........xx..........xxxx........xxxxxxxxxxxxx
xCCCCCCCC..Cxxxx.......wwwwxxwwww...............xx...................xxxxxxxxxxx
xxxxxxxCCC.Cxx........wwwwwwwwcccc.............................cccc...xxxxxxxxxx
xxxxxxxxxC+Cx...xx...wwwwwwwwwc4*ccccccccccccccccccccccccccccccc*4c...xxxxxxxxxx
xxxxxxxxx......xxx..wwwwwwwww.c*'ccccccccccccccccccccccccccccccc'*c...xxxxxxxxxx
xxxxxxxx.....xxxx...wwwwwwwww.ccc+..........3.......3..........+ccc...xxxxxxxxxx
xxxxxxxx....xxxxx..wwwwwwwww...cc...............5...............cc...xxxxxxxxxxx
xxxxxxx....xxxxx...wwwwwwww....cc..www.ccccccccccccccccccc.www..cc...xxxxxxxxxxx
xxxxxx.....xxxx....wwwwwwwww...cc..wHw.cccccccc|O|cccccccc.wHw..cc....xxxxxxxxxx
xxxxxx....xxxx...wwwwwxxwwww...cc..www.ccw5''|||||||''5wcc.www..cc....xxxxxxxxxx
xxxxxx....xxx...wwwwwxxwwww....cc......ccw''||||'||||''wcc......cc....xxxxxxxxxx
xxxxxx...xxx...wwwwwwwwwww..xx.cc..ccc+cccccccccSccccccccc+ccc..cc.....xxxxxxxxx
xxxxx....xx....wwwwwwwwww..xx..cc..c'''ccwwwcccc'ccccwwwcc***c..cc.....xxxxxxxxx
xxxx...........wwwxwwwwww.xxx..cc..c1'1cGw'2'cc1_1cc'2'wGc***c..cc......xxxxxxxx
xxxx..........wwwwxxwwww..xxx..cc..ccccccw''''c'4'c''''wcccccc..cc........xxxxxx
xxxx...xxx....wwwxxxwwww.xxx...cc..ccwwcGw''''c'''c''''wGcwwcc..cc.........xxxxx
xxxxx..xxx...wwwwxxxwww.xxxx...cc..cc22ccw''''''G''''''wcc22cc..cc..........xxxx
xxxxx...xxx..wwwxxxwww...xx....cc..cc''~'''''''''''''''''~''cc..cc..........xxxx
xxxxx...xx...wwwwwwww..........cc..cc''ccw'''''''''''''wcc''cc..cc.....xx....xxx
xxxx...xxx..wwwwwwww...xx......cc..cc''cGw'''''''''''''wGc''cc..cc....xxxx...xxx
xxx...xxx..wwwwwww...xxxxxx....cc..cc''ccwwwwwwwwwwwwwwwcc''cc..cc....xxxx...xxx
xxx........wwwwww...xxxxxxx....cc..cc''cccGcGcGcGcGcGcGccc''cc..cc...xxxx....xxx
xxx.......wwwwww....xxxxxxxx...cc..cc''ccccccccccccccccccc''cc..cc.....x....xxxx
xxx......wwwwwww...xxxxxxxxx...cc..cc'''''''''''''''''''''''cc..cc..........xxxx
xx.....wwwwwwwww..xxxxxxxxx....cc..cc''''2'''G'''''G'''2''''cc..cc.........xxxxx
xx....wwwwwwwww...xxxxxxxxx....cc..cc4'''''''''''''''''''''4cc..cc........xxxxxx
xx...wwwwwwwww.....xxxxxxxx....cc..cc''ccccccc~c~c~ccccccc''cc..cc........xxxxxx
xx..wwwwwwwww.....xxxxxxxx.....cc..ccwwcccccG'''''''Gcccccwwcc..cc........xxxxxx
xx.wwwwwwwww.......xxxxxx......cc..cccccccccc'''4'''cccccccccc..cc...xx....xxxxx
xxwwwwwwww....xx....xxx........cc...........ccc~~~ccc...........cc...xxx....xxxx
xwwwwwww.....xxxx.........x....cc......5.................5......cc....xx....xxxx
xwwwwww.....xxxx.........xx...ccc+.............................+ccc.........xxxx
xwwww........xx...............c*'cccccccccccc.......cccccccccccc'*c........xxxxx
xww...........................c1*cccccccccccc.......cccccccccccc*1c.......xxxxxx
xxxx..xx..v.vvvvvvvvvvvvvv....cccc..........H.......H..........cccc......xxxxxxx
xxxx..xx...vvv----v-----iv.v................................x..........xxxxxxxxx
xxxx...x..vvv-Dv-----vvDiv.vv...............H.......H......xxx........xxxxxxxxxx
xxxxx.....vvi-----v-----iv........v........................xxx.........xxxxxxxxx
xxxxx.....vv------vvvvvvvvvvvvvv......xx....H.......H.....xxx.....xx..x..xxxxxxx
xxxxx.....vv---------vDv-v-v-v-v.v...xxxx.......................xxxxx....xxxxxxx
xxxxx.....vg-Z---vvv-&---------&......xxxx..................xxxxxxxxxxxx...x.Axx
xxxxxx....vv---------vDv-v-v-v-v.v.....xxx.............xxxxxxxxxxxxxxxx........x
xxxxxx....vv------vvvvvvvvvvvvvv...............xxxxxxxxxxxxxxx.A.xxxxx..xxxx...x
xxxxxxx...vvi-----v-----iv........v......xxxxxxxxxxxxxxxxxxxx.A..xxxx3.xxxx..xxx
xxxxxxxx..vvv-Dv-----vvDiv.vv.........xxxxxxxxxxxxxx$$$$$xxxxxx.6..xxxxxxx....xx
xxxxxxxx...vvv----v-----iv.v......xxxxxxxxxxxxxxxxx$$$8$$$xxxxxx..x..xxx....x..x
xxxxxxxx..v.vvvvvvvvvvvvvv....xxxxxxxxxxxxxxxxxxxxx$$$$$$$$xxxxxxx........xxxxAx
xxxxxxxxx..................xxxxxxxxxxxxxxxxxxxxxxxxx$$$$$;;;xxxxxxx......xxxxxxx
xxxxxxxxxxx..............xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;;;;wwxxx....xxxxxxxxxxx
xxxxxxxxxxxxx........xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxwwwwwxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ENDMAP

##############################################################################
# Random vault and minivault balancers for Pan.

NAME: pan_mini_dummy_balancer
TAGS: dummy
WEIGHT: 100
MAP
x
ENDMAP
