[
  {
    "type": "mapgen",
    "//": "ground entrance",
    "om_terrain": [
      [ "black_dragon_lair_z-0_NW", "black_dragon_lair_z-0_NE" ],
      [ "black_dragon_lair_z-0_SW", "black_dragon_lair_z-0_SE" ]
    ],
    "object": {
      "predecessor_mapgen": "forest_water",
      "rows": [
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                            ,,                  ",
        "                        ,                       ",
        "                   , , , ,,,  ,                 ",
        "                 , ,, , , ,  , ,                ",
        "                , , ,,,, , ,,,,,                ",
        "                 ,,,~ ,,~~, , ,,                ",
        "                , ,,  ~~~~  , , , ,             ",
        "              ~~~,~ ~~a~~a~~  ,,  ,,            ",
        "             ~~~ ,,,|||##|||, , ,, , ,          ",
        "              ~~~, ~|######|~~, ~~~, ,          ",
        "            ~~i~i~ ~|#____#|~~~~~~~ ~,          ",
        "            ,,~~~  e|#_>>_#|e~g~~~g~~i,,        ",
        "              ,,~~~~##_>>_##~~g~f~g~~,,         ",
        "             ,,,~~~e|#____#|e~g~~~g~ ,          ",
        "              , ,~~~|######|~~~~~ ~~,,,         ",
        "             ,,,~~~~|||##|||~ ~i~~,,,,          ",
        "            ,,~~i~~~~~a~~a,~  ,~, ,, ,          ",
        "             ,,~~ ~~ ~~~~~~,,, ,, ,,            ",
        "            ,  ,,,  , ,~, , , ,, ,, ,           ",
        "             ,, , ,,,, ,,, ,,,,, ,,             ",
        "           , , ,  , ,, , ,,,, ,,,               ",
        "                 ,    ,,  ,,, ,,                ",
        "                      ,      ,,                 ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                ",
        "                                                "
      ],
      "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ],
      "terrain": {
        "~": "t_sand",
        "f": "t_sand",
        "_": "t_floor_blue",
        "#": "t_floor_green",
        "|": "t_rock_smooth",
        "e": "t_rock_blue",
        "a": "t_rock_green",
        ">": "t_slope_down",
        "<": "t_slope_up",
        "X": "t_rock",
        "g": "t_trunk",
        "i": "t_improvised_shelter"
      },
      "furniture": { "d": "f_boulder_small", "c": "f_boulder_medium", "b": "f_boulder_large", "f": "f_firering" },
      "place_monsters": [
        { "monster": "GROUP_LIZARDFOLK", "x": [ 4, 19 ], "y": [ 24, 44 ], "density": 0.1, "repeat": [ 1, 3 ] },
        { "monster": "GROUP_LIZARDFOLK", "x": [ 24, 44 ], "y": [ 24, 44 ], "density": 0.1, "repeat": [ 1, 3 ] },
        { "monster": "GROUP_LIZARDFOLK", "x": [ 24, 44 ], "y": [ 4, 23 ], "density": 0.1, "repeat": [ 1, 3 ] }
      ],
      "fields": {
        ",": { "field": "fd_fog_permanent", "intensity": 2 },
        "~": { "field": "fd_fog_permanent", "intensity": 2 },
        ">": { "field": "fd_fog_permanent", "intensity": 2 },
        "_": { "field": "fd_fog_permanent", "intensity": 2 },
        "#": { "field": "fd_fog_permanent", "intensity": 2 }
      }
    }
  },
  {
    "type": "mapgen",
    "//": "z -1, open area entrance",
    "om_terrain": [
      [ "black_dragon_lair_z-1_NW", "black_dragon_lair_z-1_NE" ],
      [ "black_dragon_lair_z-1_SW", "black_dragon_lair_z-1_SE" ]
    ],
    "object": {
      "fill_ter": "t_water_sh",
      "rows": [
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXX,,,,,,,XXXX,,,,,,,,,,,,,,,,XXXXXX,,,,,,.XXXX",
        "XX,,,,,,,,,,XX,,,,,,,,,,,,,,,,,,XXXX,,,,,,,,,,XX",
        "XX,,,,,,,,,,XX,,,,,,,,,,,,,,,,,XXXX,,,,,,,,,,,XX",
        "XXXX,,,,,,,,,XX,,,,,,,,>>,,,,,,,XX,,,,,,,,,,,,XX",
        "XXXXXX,,,,,,,,XX,,,,,,,>>,,,,,,XX,,,,,,,>>,,,,XX",
        "XXXX.,,,,,,,,,,,,,,,,,,,,,,,,,XXXX,,,,,,>>,,,,XX",
        "XX,,,,,,,,,,,,,,,,,,,,,,,,,,,,,XX,,,,,,,,,,,,,XX",
        "XX,,,,,,>>,,,,,,,,,,,,,,,,,,,,,XX,,,,,,,,,,,,,XX",
        "XX,,,,,,>>,,,,,,,,,,,,,,,,,,,,,XX,,,,,,,,,,,,,XX",
        "XXXX,,,,,,,,,,,,,,,,,,,,,,,,,,,XX,,,,,,,,,,,,,XX",
        "XXX,XXXX,,,,,,,,,,,,,,,,,,,,,,,,XX,,,,,,,,,,XXXX",
        "XXX,XXXXXX..,,,,..,..,..,,,,,..XXXX,,,,,,,XXXXXX",
        "XXX,,XXXXXXX.,.,..........,.....XXXX,,,,,XXXXXXX",
        "XXX,.XXXXXX....,...................XX,,,,.XXXXXX",
        "XXXX..XXXX..........................XX,,,,,XXXXX",
        "XXXXX.XX.............................XX,,,,.XXXX",
        "XXXX.................................XX,,,,,,.XX",
        "XX..................................XX..,.,,,.XX",
        "XX.................................XX,,,,,>>..XX",
        "XX..................................XX,,,,>>..XX",
        "XX....................    ...........XX,,..,,.XX",
        "XX..................   <<   ..............,,.,XX",
        "XX..................   <<   ............,,,,..XX",
        "XX....................    ................,,,,XX",
        "XXXX................................,,,,,..,,,XX",
        "XXXXXX.........................,,.,.,..,,,.,,,XX",
        "XXXXXX,,,,.....................,,.,,.,..,,,,,.XX",
        "XXXX,,,,,,,.....,,.........,..,......,,,,,...XXX",
        "XX,,,,,,,,,,,,,..,,,..,......,,,,,.,,,,,..XXXXXX",
        "XX,,,,,,,,,,,,,,,,,,,,.,..,,,,,,,.,,,,,,,XXXXXXX",
        "XX,,,,,,,,>>,,,,,,,,,..,,.,,,,,,,,..XXX,XXX,XXXX",
        "XX,,,,,,,,>>,,,,,,,,.,,..,,,,.,.,,..XXX,XX,,,XXX",
        "XX,,,,,,,,,,,,,,,,,,,,,,,,,,.,,,,,.XXXX,,,,,,XXX",
        "XX,,,,,,,,,,,,,,,,,,,,,,..,,.,,.,XXXXXXXXX,,,XXX",
        "XXXX,,,,,,,,,,,,,,,,,,,,,,,,,,...XXXXXXXXXX,XXXX",
        "XXXXXX,,,,,,,,,,,,,,,,,,,,,,,,,XXXXXXXXXXXX,XXXX",
        "XXXXXXXXX,,,,,,,,,,,,,,,X,,,,,,,,,,,,,XXXXX,,XXX",
        "XXXXXXXXXX,,,,,,,,,,,,,XX,,,,,,,,,,,,,,,XXXX,XXX",
        "XXXXXXXXXXX,,,,,,XXXXXXXX,,,,,,,,>>,,,,,,XXXXXXX",
        "XXXXXXX,,,,,,,,,,,,,XXXXXX,,,,,,,>>,,,,,,,,,XXXX",
        "XXXXXXX,,,,,,,,,,,,,,XXXXX,,,,,,,,,,,,,,,,,,,XXX",
        "XXXXXXX,,,,,,,,,,,,XXXXXXXXX,,,,,,,,,,,,,,,,,XXX",
        "XXXXXXXXX,,,,,,,,,,,,XXXXXX,,,,,,,,,,,,XXX,,,XXX",
        "XXXXXXXXXX,,,,,,,,,,XXXXXXXX,,,,,XXXXXXXXXXXXXXX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ],
      "place_monsters": [
        { "monster": "GROUP_BLACKDRAGON_LAIR_1", "x": [ 4, 23 ], "y": [ 4, 23 ], "density": 0.1, "repeat": [ 4, 10 ] },
        {
          "monster": "GROUP_BLACKDRAGON_LAIR_1",
          "x": [ 4, 19 ],
          "y": [ 24, 44 ],
          "density": 0.1,
          "repeat": [ 4, 10 ]
        },
        {
          "monster": "GROUP_BLACKDRAGON_LAIR_1",
          "x": [ 24, 44 ],
          "y": [ 24, 44 ],
          "density": 0.1,
          "repeat": [ 4, 10 ]
        },
        {
          "monster": "GROUP_BLACKDRAGON_LAIR_1",
          "x": [ 24, 44 ],
          "y": [ 4, 23 ],
          "density": 0.1,
          "repeat": [ 4, 10 ]
        },
        {
          "monster": "GROUP_BLACKDRAGON_LAIR_1",
          "x": [ 10, 23 ],
          "y": [ 10, 23 ],
          "density": 0.1,
          "repeat": [ 4, 10 ]
        }
      ],
      "terrain": {
        ">": "t_slope_down",
        "<": "t_slope_up",
        "X": "t_soil",
        " ": "t_sand",
        "~": "t_water_dp_underground",
        ".": [
          [ "t_grass_tall", 5 ],
          [ "t_stump", 1 ],
          [ "t_pit_shallow", 2 ],
          [ "t_pit_corpsed", 2 ],
          [ "t_pit_spiked", 2 ],
          [ "t_pit_glass", 2 ],
          [ "t_grass_long", 5 ],
          [ "t_water_murky", 25 ],
          [ "t_water_sh_underground", 25 ],
          [ "t_swater_sh_underground", 25 ],
          [ "t_sand_underground", 3 ],
          [ "t_water_dp_underground", 40 ],
          [ "t_moss_underground", 10 ],
          [ "t_underbrush", 3 ],
          [ "t_dirt_underground", 2 ],
          [ "t_mud_underground", 2 ],
          "t_shrub"
        ],
        ",": [
          [ "t_grass_tall", 5 ],
          [ "t_stump", 1 ],
          [ "t_pit_shallow", 2 ],
          [ "t_pit_corpsed", 2 ],
          [ "t_pit_spiked", 2 ],
          [ "t_pit_glass", 2 ],
          [ "t_grass_long", 5 ],
          [ "t_water_murky", 25 ],
          [ "t_water_sh_underground", 25 ],
          [ "t_swater_sh_underground", 25 ],
          [ "t_sand_underground", 3 ],
          [ "t_water_dp_underground", 40 ],
          [ "t_moss_underground", 10 ],
          [ "t_underbrush", 3 ],
          [ "t_dirt_underground", 2 ],
          [ "t_mud_underground", 2 ],
          "t_shrub"
        ]
      },
      "furniture": { "a": "f_boulder_small", "c": "f_boulder_medium", "b": "f_boulder_large", "1": "f_table", "2": "f_swamp_gas" },
      "items": { ".": [ { "item": "lair_black_dragon", "chance": 5 } ], ",": [ { "item": "lair_black_dragon", "chance": 5 } ] },
      "fields": {
        ",": { "field": "fd_fog_permanent", "intensity": 2 },
        ">": { "field": "fd_fog_permanent", "intensity": 2 },
        "<": { "field": "fd_fog_permanent", "intensity": 2 },
        " ": { "field": "fd_fog_permanent", "intensity": 2 }
      }
    }
  },
  {
    "type": "mapgen",
    "//": "dragon nests, open to cavern below",
    "om_terrain": [
      [ "black_dragon_lair_z-2_NW", "black_dragon_lair_z-2_NE" ],
      [ "black_dragon_lair_z-2_SW", "black_dragon_lair_z-2_SE" ]
    ],
    "object": {
      "fill_ter": "t_sand",
      "rows": [
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXXXXXXXXX...XX    XXXXXXXXXX   XXX..XXXXXXXXXX",
        "XXXXXXXXXXX...                    .....XXXXXXXXX",
        "XXXXX..XXXX...XX    XXXXXXX     .......XXXXXXXXX",
        "XXXX....XXXXXXXXXX XXXXXXXXXX  X.......XXXXXXXXX",
        "XXXX....XXXXXXXXXXXXXXX>>XXX   XX..XXXXXXXXXXXXX",
        "XXXX.............XXXXXX<<XXXX XXX..XXXXX>>XXXXXX",
        "XX.....XXXXXX......XXXXXXXXXX XX..XXXXXX<<XXXXXX",
        "XXX..XXXXXXXXXXXX..XXXXXXXXXX  XX..XXXXXXXXXXXXX",
        "XX    XX>>XXXXXX....XX.....XXX.....XXXXXXXXXXXXX",
        "XXX  XXX<<XXXXX...........................XXXXXX",
        "XX    XXXXXXXXX.............................XXXX",
        "XX     XXXXXX  ...............................XX",
        "XXX           ..............................XXXX",
        "XXXXXXXXXXX................................XXXXX",
        "XXXXXXXXXXX XXXXX...........................XXXX",
        "XXX...XX     XXXX............................XXX",
        "XXX...      XXXX.........................XXXXXXX",
        "XXX...  X    XX.........................XXXXXXXX",
        "XXXXXXXX    XX.........................XXXXXXXXX",
        "XXXXXXXXXXXXXXX....XXX      >.XXXX....XXXX>>XXXX",
        "XXXXXXX....XXXXX....XXXXXX  XX..XXX..XXXXX<<XXXX",
        "XXXXXX.XXX.XXXX..X..XXXXXXX  XXX....XXXXXXXXXXXX",
        "XXXX...XXX.XXX..XXXXXX  XXX   XX....XXXXXXXXXXXX",
        "XXX..XXXX...XXX..XXXX    XXX  XXX  XXXXXXXXXXXXX",
        "XXXX.XXXXX.XXXXX..XXXX            XXXXXXX...XXXX",
        "XXXX.XXXXXXXXXXXX..XXXXX           XXXXXXX...XXX",
        "XXXX..XXXXX........XXXXXXX               ...XXXX",
        "XXXXX.XXXX..X   X....XXXXXXX          XXX.XXXXXX",
        "XXXXX.XXX..XX   XXXX....XXXXX        XXX.XXXXXXX",
        "XXXX..XX.XXXX      XXXX..XX>.........XXX.XXXXXXX",
        "XXX.....XXXXXX        X....................XXXXX",
        "XXXX..XXXX>>XX   .........................XXXXXX",
        "XXX..XXXXX<<XXX ............................XXXX",
        "XXXX..XXXXXXXX    ..........................XXXX",
        "XXXXX.XXXXXXX     ...........................XXX",
        "XXXXX.XXXXX      XX...........................XX",
        "XXXX...XXXXXX    XXXXXX.....     XXXXXXXX...XXXX",
        "XX.......XXXXX   XXXX....      XXXXXXXXX...XXXXX",
        "XX........XXXX....XXXXXX....  XXXXXXXXXXX...XXXX",
        "XXX........................X  XXX>>XXXXX....XXXX",
        "XX.......................XXX   XX<<XXXX.....XXXX",
        "XX..........................   XXXXXX.. XXXXXXXX",
        "XXXX........XX............     XXXXX..X   XXXXXX",
        "XXXXXXX....     ...........  ...XXX..XXX   ...XX",
        "XXXXX....XXX  XXXX....XXXX.........XXXX    ...XX",
        "XXXXXXXXXXX     XXXXXXXXXXXXX.....XXXXX    ...XX",
        "XXXXXXXXXX       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ],
      "place_monster": [
        { "monster": "mon_dragon_black_young", "x": 15, "y": 36, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_young", "x": 30, "y": 26, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_young", "x": 30, "y": 26, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_young", "x": 30, "y": 26, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 41, "y": 45, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_adult", "x": 29, "y": 28, "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 17, "y": 2, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 9, "y": 17, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 30, "y": 2, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 3, "y": 12, "repeat": [ 1, 2 ], "chance": 100 },
        { "monster": "mon_dragon_black_wyrmling", "x": 12, "y": 45, "repeat": [ 1, 2 ], "chance": 100 }
      ],
      "terrain": { "X": "t_rock", " ": "t_sand", ".": "t_open_air_rooved", ">": "t_slope_down", "<": "t_slope_up" },
      "furniture": { "a": "f_boulder_small", "c": "f_boulder_medium", "b": "f_boulder_large" },
      "items": { " ": [ { "item": "lair_loot_generic", "chance": 10, "repeat": [ 2, 4 ] } ] }
    }
  },
  {
    "type": "mapgen",
    "//": "z -2, reserved for loot/habitat rooms, should be vaulted x2 with dragon entrances from above?",
    "om_terrain": [
      [ "black_dragon_lair_z-3_NW", "black_dragon_lair_z-3_NE" ],
      [ "black_dragon_lair_z-3_SW", "black_dragon_lair_z-3_SE" ]
    ],
    "object": {
      "fill_ter": "t_water_sh",
      "rows": [
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXXXXXXXXX > XXXXXXXXXXXXXXXXXXXXXX,,XXXXXXXXXX",
        "XXXXXXXXXXX   XXXXXXXXXXXXXXXXXXXX,,,,,XXXXXXXXX",
        "XXXXX,,XXXX   XXXXXXXXXXXXXXXXXX,,,,,,,XXXXXXXXX",
        "XXXX,,,,XXXXXXXXXXXXXXXXXXXXXXXX,,,,,,XXXXXXXXXX",
        "XXXX,,,,,XXXXXXXXXXXXXX>>XXXXXXXX,,XXXXXXXXXXXXX",
        "XXXX,,,,,,,,,,,,,XXXXXX<<XXXXXXXX,,XXXXX>>XXXXXX",
        "XX,,,,,XXXXXX,,,,,,XXXXXXXXXXXXX,,XXXXXX<<XXXXXX",
        "XXX,,XXXXXXXXXXXX,,XXXXXXXXXXXXXX,,XXXXXXXXXXXXX",
        "XXXXXXXX>>XXXXXX,,.,XX.....XXX.,,,.XXXXXXXXXXXXX",
        "XXXXXXXX<<XXXXX.,,,............,..........XXXXXX",
        "XXXXXXXXXXXXXXX,,,,.........................XXXX",
        "XXXXXXXXXXXXXXX,,,,,..........................XX",
        "XXXXXXXXXXXXXX,,,,,,,.......................XXXX",
        "XXXXXXXXXXX,,,,,,,.,..........>>...........XXXXX",
        "XXXXXXXXXXXXXXXXX.,.........................XXXX",
        "XXX > XXXXXXXXXXX,...........................XXX",
        "XXX   XXXXXXXXXX,,.......................XXXXXXX",
        "XXX   XXXXXXXXX,,..........,.,,..,.,,...XXXXXXXX",
        "XXXXXXXXXXXXXX,,,,.....,,,,,,,,,,,,,,,,XXXXXXXXX",
        "XXXXXXXXXXXXXXX,,,.XXXXXXXXX<,XXXX,,,,XXXX>>XXXX",
        "XXXXXXX,,,,XXXXX,,,,XXXXXXXXXX,,XXX,,XXXXX<<XXXX",
        "XXXXXX,XXX,XXXX,,X,,XXXXXXXXXXXX,,,,XXXXXXXXXXXX",
        "XXXX,,,XXX,XXX,,XXXXXXXXXXXXXXXX,,,,XXXXXXXXXXXX",
        "XXX,,XXXX,,,XXX,.XXXXXXXXXXXXXXXXXXXXXXXXX,,XXXX",
        "XXXX,XXXXX,XXXXX,,XXXXXXXXXXXXXXXXXXXXXXX,,,,XXX",
        "XXXX,XXXXXXXXXXXX,,XXXXXXXXXXXXXXXXXXXXXX,,,,XXX",
        "XXXX,,XXXXX,,,,,,,,XXXXXXXXXXXXXXXXXXXXXX,,,XXXX",
        "XXXXX,XXXX,2XXXXX,,,,XXXXXXXXXXXXXXXXXXXX,,XXXXX",
        "XXXXX,XXX,,XXXXXXXXX,...XXXXXXXXXXXXXXXX,,XXXXXX",
        "XXXX,,XX,XXXXXXXXXXXXXX..XX<.......,,XXX,,XXXXXX",
        "XXX,,,,,XXXXXXXXXXXXXX............,,,,,,,,,XXXXX",
        "XXXX,,XXXX>>XXXXX...............,,,,,,,.,,XXXXXX",
        "XXX,,XXXXX<<XXXX...............,,,,,.,,,.,,.XXXX",
        "XXXX,,XXXXXXXXXXXX.......>>...,,,,,,,.,.,.,.XXXX",
        "XXXXX,XXXXXXXXXXXX...........,,,,,,.,,,,,,,,,XXX",
        "XXXXX,XXXXXXXXXXXXX.........,,,,XXXXX.,.,,,,,,XX",
        "XXXX,,,XXXXXXXXXXXXXXXX....,.XXXXXXXXXXXX,,,XXXX",
        "XX,,,,,,,XXXXXXXXXXXX.....XXXXXXXXXXXXXX,,,XXXXX",
        "XX,,,,,,,,XXXX,,,,XXXXXX,,,.XXXXXXXXXXXXX,,,XXXX",
        "XXX,,,,,,,,,,,,,,,,,,,,,,,,XXXXXX>>XXXXX,,,,XXXX",
        "XX,,,,,,,,,,,,,,,,,,,,,,,XXXXXXXX<<XXXX,,,,,XXXX",
        "XX,,,,,,,,,,,,,,,,,,,,,,,,,.XXXXXXXXX,,XXXXXXXXX",
        "XXXX,,,,,,,,XX,,,,,,,,,,,,XXXXXXXXXX,,XXXXXXXXXX",
        "XXXXXXX,,,,XXXXX,,,,,,,,,,,XX,,,XXX,,XXXXXX > XX",
        "XXXXX,,,,XXXXXXXXX,,,,XXXX,,,,,,,,,XXXXXXXX   XX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXX,,,,,XXXXXXXXXX   XX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ],
      "place_monsters": [
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 5, "y": 5, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 35, "y": 3, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 20, "y": 14, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 37, "y": 14, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 23, "y": 17, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 20, "y": 32, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 39, "y": 33, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 41, "y": 40, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 5, "y": 40, "density": 0.1, "repeat": [ 4, 10 ] },
        { "monster": "GROUP_BLACKDRAGON_LAIR_2", "x": 20, "y": 43, "density": 0.1, "repeat": [ 4, 10 ] }
      ],
      "terrain": {
        ">": "t_slope_down",
        "<": "t_slope_up",
        "X": "t_rock",
        " ": "t_sand",
        "~": "t_water_cube",
        ".": [
          [ "t_grass_tall", 5 ],
          [ "t_stump", 1 ],
          [ "t_pit_shallow", 2 ],
          [ "t_pit_corpsed", 2 ],
          [ "t_pit_spiked", 2 ],
          [ "t_pit_glass", 2 ],
          [ "t_grass_long", 5 ],
          [ "t_water_sh_underground", 25 ],
          [ "t_swater_sh_underground", 25 ],
          [ "t_sand_underground", 3 ],
          [ "t_water_dp_underground", 40 ],
          [ "t_moss_underground", 10 ],
          [ "t_underbrush", 3 ],
          [ "t_dirt_underground", 2 ],
          "t_shrub"
        ]
      },
      "furniture": { "a": "f_boulder_small", "c": "f_boulder_medium", "b": "f_boulder_large", "1": "f_fog", "2": "f_swamp_gas" },
      "place_items": [ { "item": "boss_treasure_items", "x": 44, "y": 46, "chance": 100 } ],
      "items": {
        ".": [ { "item": "lair_black_dragon", "chance": 15, "repeat": [ 0, 2 ] } ],
        " ": [
          { "item": "lair_black_dragon_treasure", "chance": 10, "repeat": [ 0, 2 ] },
          { "item": "enchanted_small_items", "chance": 10, "repeat": [ 0, 2 ] },
          { "item": "enchanted_combat_items", "chance": 10, "repeat": [ 0, 2 ] },
          { "item": "enchanted_melee_weapons_plus2", "chance": 5 },
          { "item": "enchanted_tools_plus2", "chance": 5 },
          { "item": "spellbook_loot_1", "chance": 50, "repeat": [ 1, 2 ] },
          { "item": "spellbook_loot_2", "chance": 20, "repeat": [ 1, 2 ] }
        ]
      },
      "fields": { ",": { "field": "fd_fog_permanent", "intensity": 2 } }
    }
  },
  {
    "type": "mapgen",
    "//": "z, -3 underwater passageways up to loot rooms",
    "om_terrain": [
      [ "black_dragon_lair_z-4_NW", "black_dragon_lair_z-4_NE" ],
      [ "black_dragon_lair_z-4_SW", "black_dragon_lair_z-4_SE" ]
    ],
    "object": {
      "fill_ter": "t_water_dp_underground",
      "rows": [
        "XXXXXXXXXXX    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "XXXXXXXXX   <   XXXXXXXXXXXXXXXXX        XXXXXXX",
        "XXXX            XXXXXXXXXXXXXX            XXXXXX",
        "XXXX  XXXXXXX    XXXXXXXXXXXXX    XXXXX   XXXXXX",
        "XXX  XXXXXXXXX  XXXXXXXXXXXXXX   XXXXXXX  XXXXXX",
        "XXX  XXXXXXXXX  XXXXXX <<       XXXXXXXX   XXXXX",
        "X    XXXXX XXX  XXXXXX <<       XXXXXXX <<  XXXX",
        "X   XXXXX  XXX  XXXXXXXXXXXXXX  XX  XXX <<  XXXX",
        "X  XXXX     XX  XXX XXXXXXXXX   XX   XXXXX   XXX",
        "X  XXX  <<  XX  XXX                  XXXXXX  XXX",
        "X  XXX  <<  XX  XX               XX  XXXX    XXX",
        "X   XXX    XXX  XX   XX    XXX  XXXXXXX       XX",
        "X    XXXX  XXX   X  XXXX  XXX   XXXXXX   XXX   X",
        "XX   XXXX  XXXX     XXXXXXXX             XXXX  X",
        "XXX   XXX  XXXX  XXXXXXXXXXX  <<        XXXXX  X",
        "XXX   XXX   XX   XXXXXXXXXXX      XXXXXXXXXXX  X",
        "XXX < XXX        XXXXXXXXXXXXX  XXXXXXXXXXXXX  X",
        "XXX   XXX         XXXXX  XXXXX  XXXXXXXXXXXXX  X",
        "XXXXXXXXX  XXXXX   XXX    XXX  XXXXXXXXXXXX    X",
        "XXXXXXX    XXXXXX              XXXXXXXXXXX    XX",
        "XXXXXX    XXXXXXX              XXXXX      << XXX",
        "XXXXXX  XXXXXXXXXXXXXX   XXXX  XXXXX  XXX << XXX",
        "XXXXXX  XXXXXXXXXXXXXXX  XXXXX  XXX  XXXX    XXX",
        "XXXXXX  XXXXXXXXXXXXXX    XXXX       XXXXX  XXXX",
        "XXXXXX  XXXXXXX           XXXXX    XXXXXXX  XXXX",
        "XXXXXX  XXX     XXXXXX   XXXXXXXX   XXXXX   XXXX",
        "XXXXXX  XX  XX  XXXXXXX   XXXXXXXX          XXXX",
        "XXXXXX  X   XXXXXXXXXXX       XXXX          XXXX",
        "XXX         XXXXXXXXXXXXXXXX   XX   XXXXX   XXXX",
        "XX         XXXXXXXXXXXXXXXXXX      XXXXXXX  XXXX",
        "XX    XXXXXXXXXXXXXX          XXXXXXXXXXXX  XXXX",
        "XX  XXXXXXXXXXXXXXX        XXXXXXXXXXXXXXX  XXXX",
        "XX  XXXXX << XXXXXX  XXXX  XXXXXXXXXXXXXXX  XXXX",
        "XX  XXXXX << XXXXXX  XXX         XXXXX XXX  XXXX",
        "XX  XXXXXX           XXX <<      XXXX       XXXX",
        "XX  XXXXXX           XXX    XXX  XXXX   X   XXXX",
        "XX  XXXXXXX    XXXXXXXXXXXXXXXX  XXXXX XXX  XXXX",
        "XX  XXXXXXXX  XXXXXXXXXXXXXXXXX  XXXXXXXXX  XXXX",
        "XX      XXXX  XXXX    XXXXXXX    XXXXXXXXX  XXXX",
        "XX  XX  XXXX   XXX    XXX XXX  XX   XXXXX   XXXX",
        "XX  XXXXXXXX        XXXX  XXX    <<         XXXX",
        "XX  XXXXXXXXX      XXXXX  XXX    <<        XXXXX",
        "XX   XXXXXXXXXX  XXXXXXX  XXXXXX     XXXXXXXXXXX",
        "XX       XXXXXX  XXXXXXX  XXXXXXXXXXXXXXXXXX   X",
        "XXX       XXXX    XXXXX    XXXXXXXXXXXXXXX  <  X",
        "XXXXXXX                            XXXXXX     XX",
        "XXXXXXXX                                      XX",
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ],
      "place_monster": [
        { "monster": "mon_crocodile", "x": 10, "y": 2, "repeat": [ 1, 2 ], "chance": 50 },
        { "monster": "mon_crocodile", "x": 24, "y": 9, "repeat": [ 1, 2 ], "chance": 50 },
        { "monster": "mon_crocodile", "x": 20, "y": 19, "repeat": [ 1, 2 ], "chance": 50 },
        { "monster": "mon_crocodile", "x": 14, "y": 33, "repeat": [ 1, 2 ], "chance": 50 },
        { "monster": "mon_crocodile", "x": 7, "y": 18, "repeat": [ 1, 2 ], "chance": 50 },
        { "monster": "mon_crocodile", "x": 20, "y": 45, "repeat": [ 1, 2 ], "chance": 50 }
      ],
      "terrain": { "<": "t_slope_up", "X": "t_rock", " ": "t_water_dp_underground" }
    }
  }
]
