[
  {
    "//": "Top level 'lab_spawn_XXXXX' templates are for use in floorplans.",
    "//2": "Spawn for a room at least 7x7, walls often but not guaranteed.",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_spawn_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_nested": [
        { "chunks": [ [ "lab_room_7x7", 97 ], [ "lab_room_7x7_rare", 3 ] ], "x": 0, "y": 0 },
        { "chunks": [ "lab_maybe_effects_7x7" ], "x": 0, "y": 0 }
      ]
    }
  },
  {
    "//": "Spawn for a room exactly 7x7 with doors only in the center of each wall.",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_spawn_7x7_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [
        { "chunks": [ [ "lab_room_7x7", 33 ], [ "lab_room_7x7_crossdoors", 63 ], [ "lab_room_7x7_rare", 3 ] ], "x": 0, "y": 0 },
        { "chunks": [ "lab_maybe_effects_7x7" ], "x": 0, "y": 0 }
      ]
    }
  },
  {
    "//": "Spawn for a room at least 9x9, walls often but not guaranteed.",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_spawn_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [
        { "chunks": [ [ "lab_room_9x9", 97 ], [ "lab_room_9x9_rare", 3 ] ], "x": 0, "y": 0 },
        { "chunks": [ "lab_maybe_effects_9x9" ], "x": 0, "y": 0 }
      ]
    }
  },
  {
    "//": "Spawn for a room exactly 9x9 with doors only in the center of each wall.",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_spawn_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [
        { "chunks": [ [ "lab_room_9x9", 33 ], [ "lab_room_9x9_crossdoors", 64 ], [ "lab_room_9x9_rare", 3 ] ], "x": 0, "y": 0 },
        { "chunks": [ "lab_maybe_effects_9x9" ], "x": 0, "y": 0 }
      ]
    }
  },
  {
    "//": "9x9 blob room inactive",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_furniture": [ { "furn": "f_locker", "x": 8, "y": 0 } ],
      "place_items": [ { "item": "goo", "x": 8, "y": 0, "chance": 70 } ],
      "place_traps": [ { "trap": "tr_goo", "x": [ 0, 8 ], "y": [ 0, 8 ], "repeat": 30, "//": "9x9=81 spaces" } ]
    }
  },
  {
    "//": "9x9 blob room active",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_furniture": [ { "furn": "f_locker", "x": 8, "y": 0 } ],
      "place_items": [ { "item": "goo", "x": 8, "y": 0, "chance": 70 } ],
      "place_monsters": [ { "monster": "GROUP_GOO", "x": [ 0, 8 ], "y": [ 0, 8 ], "density": 0.12 } ]
    }
  },
  {
    "//": "7x7 cyborg & dissector",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        "ccccccc",
        ".......",
        ".......",
        ".......",
        ".......",
        "......."
      ],
      "palettes": [ "lab_palette", "lab_loot_research" ],
      "place_traps": [ { "trap": "tr_dissector", "x": [ 1, 5 ], "y": [ 2, 5 ] } ],
      "place_monster": [ { "monster": "mon_broken_cyborg", "x": [ 0, 6 ], "y": [ 0, 6 ], "chance": 33 } ]
    }
  },
  {
    "type": "palette",
    "id": "lab_palette_map_computer",
    "computers": {
      "6": {
        "name": "Log Console",
        "security": 3,
        "options": [
          { "name": "View Research Logs", "action": "research", "security": 0 },
          { "name": "Download Map Data", "action": "maps", "security": 0 }
        ],
        "failures": [ { "action": "damage" }, { "action": "alarm" }, { "action": "shutdown" } ]
      }
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_turret",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        ".......",
        ".......",
        ".cccc6.",
        ".......",
        ".......",
        "......."
      ],
      "palettes": [ "lab_palette", "lab_palette_map_computer" ],
      "terrain": { "c": [ "t_thconc_floor" ] },
      "place_monsters": [ { "monster": "GROUP_LAB_SECURITY", "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": [ 1, 6 ], "chance": 3 } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".........",
        "....c....",
        "....c....",
        "....c....",
        "....c....",
        "....c....",
        "....c....",
        "....6....",
        "........."
      ],
      "palettes": [ "lab_palette", "lab_palette_map_computer" ],
      "terrain": { "c": [ "t_thconc_floor" ] },
      "place_monsters": [ { "monster": "GROUP_LAB_SECURITY", "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": [ 1, 6 ], "chance": 3 } ]
    }
  },
  {
    "//": "7x7 teleporter room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_traps": [ { "trap": "tr_telepad", "x": [ 1, 5 ], "y": [ 1, 5 ] } ],
      "place_nested": [ { "chunks": [ "lab_telepad_counter_2x2" ], "x": [ 2, 3 ], "y": [ 2, 3 ] } ]
    }
  },
  {
    "//": "9x9 teleporter room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_traps": [ { "trap": "tr_telepad", "x": [ 1, 7 ], "y": [ 1, 7 ] } ],
      "place_nested": [ { "chunks": [ "lab_telepad_counter_2x2" ], "x": [ 3, 4 ], "y": [ 3, 4 ] } ]
    }
  },
  {
    "//": "2x2 counter with teleporter loot on it",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_telepad_counter_2x2",
    "object": {
      "mapgensize": [ 2, 2 ],
      "rows": [
        "cc",
        "cc"
      ],
      "palettes": [ "lab_palette" ],
      "mapping": { "c": { "items": [ { "item": "teleport", "chance": 20 } ] } }
    }
  },
  {
    "//": "7x7 desks",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "ccc.ccc",
        ".h...h.",
        "...c...",
        "..hx...",
        "...c...",
        ".h...h.",
        "ccc.ccc"
      ],
      "palettes": [ "lab_palette" ],
      "mapping": {
        "c": {
          "items": [ { "item": "office", "chance": 30 }, { "item": "textbooks", "chance": 3 }, { "item": "science", "chance": 3 } ]
        },
        "h": { "item": [ { "item": "coat_lab", "chance": 10 } ] }
      }
    }
  },
  {
    "//": "9x9 desks",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "ccc...ccc",
        ".h.....h.",
        "...hxh...",
        ".c.....c.",
        ".ch...hc.",
        ".c.....c.",
        "...hxh...",
        ".h.....h.",
        "ccc...ccc"
      ],
      "palettes": [ "lab_palette" ],
      "mapping": {
        "c": {
          "items": [ { "item": "office", "chance": 30 }, { "item": "textbooks", "chance": 3 }, { "item": "science", "chance": 3 } ]
        },
        "h": { "item": [ { "item": "coat_lab", "chance": 10 } ] }
      }
    }
  },
  {
    "//": "9x9 centrifuge room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rows": [
        ".........",
        ".C.C.C.C.",
        ".........",
        ".C.C.C.C.",
        ".........",
        ".C.C.C.C.",
        ".........",
        ".C.C.C.C.",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "furniture": { "C": [ "f_centrifuge" ] }
    }
  },
  {
    "//": "9x9 cloning vats ",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rows": [
        ".........",
        ".C..C..C.",
        ".........",
        ".........",
        ".C..C..C.",
        ".........",
        ".........",
        ".C..C..C.",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "C": [ "t_vat" ] },
      "mapping": { "C": { "items": [ { "item": "cloning_vat", "chance": 50 } ] } }
    }
  },
  {
    "//": "9x9 cloning mutagen lab ",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rows": [
        ".........",
        ".C.....C.",
        "...c.c...",
        "..cc.cc..",
        "..c...c..",
        "..cc.cc..",
        "...c.c...",
        ".C.....C.",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "C": [ "t_vat" ] },
      "mapping": {
        "C": { "items": [ { "item": "cloning_vat", "chance": 50 } ] },
        "c": { "items": [ { "item": "mut_lab", "chance": 20 } ] }
      },
      "place_monster": [ { "monster": [ "mon_zombie_scientist" ], "x": [ 2, 3 ], "y": [ 1, 3 ], "chance": 50, "pack_size": [ 1, 2 ] } ]
    }
  },
  {
    "//": "9x9 cloning mutagen lab",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rows": [
        "cccc.cccc",
        "c.......c",
        "c.C...C.c",
        "c.......c",
        "....C....",
        "c.......c",
        "c.C...C.c",
        "c.......c",
        "cccc.cccc"
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "C": [ "t_vat" ] },
      "mapping": {
        "C": { "items": [ { "item": "cloning_vat", "chance": 50 } ] },
        "c": { "items": [ { "item": "mut_lab", "chance": 15 } ] }
      },
      "place_monster": [ { "monster": "mon_zombie_scientist", "x": [ 2, 3 ], "y": [ 1, 3 ], "chance": 50, "pack_size": [ 1, 3 ] } ]
    }
  },
  {
    "//": "7x7 bulk chemical storage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_rare",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_furniture": [ { "furn": "f_standing_tank", "x": 3, "y": 3 } ],
      "place_nested": [ { "chunks": [ "lab_filltank_chem" ], "x": 3, "y": 3 } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_filltank_chem",
    "object": { "mapgensize": [ 1, 1 ], "place_liquids": [ { "amount": [ 200, 800 ], "x": 0, "y": 0, "liquid": "bleach" } ] }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_filltank_chem",
    "object": { "mapgensize": [ 1, 1 ], "place_liquids": [ { "amount": [ 100, 400 ], "x": 0, "y": 0, "liquid": "water_clean" } ] }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_filltank_chem",
    "object": { "mapgensize": [ 1, 1 ], "place_liquids": [ { "amount": [ 100, 400 ], "x": 0, "y": 0, "liquid": "salt_water" } ] }
  },
  {
    "//": "7x7 glass monster cage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_rare",
    "object": { "mapgensize": [ 7, 7 ], "place_nested": [ { "chunks": [ "glass_monster_cage" ], "x": 1, "y": 1 } ] }
  },
  {
    "//": "9x9 glass monster cage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_rare",
    "object": { "mapgensize": [ 9, 9 ], "place_nested": [ { "chunks": [ "glass_monster_cage" ], "x": 2, "y": 2 } ] }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "glass_monster_cage",
    "object": {
      "mapgensize": [ 5, 5 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "ggggg",
        "g,STg",
        "g,,,g",
        "g,,,g",
        "ggGgg"
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { ",": "t_floor_blue" },
      "place_monster": [
        {
          "monster": [ "mon_zombie_brute", "mon_zombie_screecher", "mon_zombie_hollow", "mon_zombie_master", "mon_zombie_necro" ],
          "x": [ 2, 3 ],
          "y": [ 1, 3 ],
          "chance": 80
        }
      ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "glass_monster_cage",
    "object": {
      "mapgensize": [ 5, 5 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "ggggg",
        "g,,,g",
        "g,,,G",
        "g,,,g",
        "ggggg"
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { ",": "t_floor_blue" },
      "place_monster": [
        {
          "monster": [ "mon_zombie_pig", "mon_zombear", "mon_zoose", "mon_zolf", "mon_zombie_dog" ],
          "x": [ 1, 3 ],
          "y": [ 1, 3 ],
          "chance": 80
        }
      ]
    }
  },
  {
    "//": "7x7 chem_storage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "c.c.c.c",
        "c.c.c.c",
        "c.c.c.c",
        ".......",
        "c.c.c.c",
        "c.c.c.c",
        "c.c.c.c"
      ],
      "palettes": [ "lab_palette", "lab_loot_research" ]
    }
  },
  {
    "//": "7x7 chem_storage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        ".c.c.c.",
        ".c.c.c.",
        ".c.c.c.",
        ".c.c.c.",
        ".c.c.c.",
        "......."
      ],
      "palettes": [ "lab_palette", "lab_loot_research" ]
    }
  },
  {
    "//": "7x7 hydroponics",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        ".c~~~~.",
        ".c.....",
        ".c~~~~.",
        ".c.....",
        ".c~~~~.",
        "......."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "~": [ "t_water_sh" ] },
      "mapping": { "c": { "items": [ { "item": "chem_lab", "chance": 10 } ] }, "~": { "items": [ { "item": "hydro", "chance": 20 } ] } }
    }
  },
  {
    "//": "9x9 hydroponics",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".........",
        ".ccccccc.",
        ".~.~.~.~.",
        ".~.~.~.~.",
        ".~.~.~.~.",
        ".~.~.~.~.",
        ".~.~.~.~.",
        ".~.~.~.~.",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "~": [ "t_water_sh" ] },
      "mapping": { "c": { "items": [ { "item": "chem_lab", "chance": 10 } ] }, "~": { "items": [ { "item": "hydro", "chance": 20 } ] } }
    }
  },
  {
    "//": "7x7 chem_storage and office",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        ".ccccc.",
        ".c.....",
        ".c...d.",
        ".c..hd.",
        ".c..xd.",
        "......."
      ],
      "palettes": [ "lab_palette", "lab_loot_research" ]
    }
  },
  {
    "//": "9x9 chem_storage",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "c.c...c.c",
        "c.c...c.c",
        "c.c...c.c",
        ".........",
        ".cccxccc.",
        ".........",
        "c.c...c.c",
        "c.c...c.c",
        "c.c...c.c"
      ],
      "palettes": [ "lab_palette", "lab_loot_research" ]
    }
  },
  {
    "//": "7x7 u-conference room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        "..hhhh.",
        "..tttt.",
        "..t....",
        "..tttt.",
        "..hhhh.",
        "x......"
      ],
      "palettes": [ "lab_palette" ],
      "mapping": { "t": { "items": [ { "item": "office", "chance": 15 } ] } }
    }
  },
  {
    "//": "9x9 u-conference room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".........",
        "...hhh...",
        "..ttttt..",
        ".ht...th.",
        ".ht...th.",
        ".ht...th.",
        ".ht...th.",
        "....c....",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "mapping": {
        "t": { "items": [ { "item": "office", "chance": 10 } ] },
        "c": { "item": [ { "item": "television", "chance": 10 } ] }
      }
    }
  },
  {
    "//": "9x9 circle-conference room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "........x",
        "...hhh...",
        "..ttttt..",
        ".ht...th.",
        ".ht...th.",
        ".ht...th.",
        "..ttttt..",
        "...hhh...",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "mapping": { "t": { "items": [ { "item": "office", "chance": 10 } ] } }
    }
  },
  {
    "//": "7x7 security desk",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        "..d....",
        "..d....",
        "..ch...",
        "..ccdd.",
        ".......",
        ".x....."
      ],
      "palettes": [ "lab_palette", "lab_loot_home_office" ],
      "mapping": { "c": { "items": [ { "item": "museum_security", "chance": 66 } ] } }
    }
  },
  {
    "//": "7x7 crate room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_nested": [ { "chunks": [ "sub_f_crate" ], "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": 10 } ]
    }
  },
  {
    "//": "9x9 crate room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [ { "chunks": [ "sub_f_crate" ], "x": [ 0, 8 ], "y": [ 0, 8 ], "repeat": 15 } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "sub_f_crate",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "X" ],
      "palettes": [ "lab_palette", "lab_loot_research" ],
      "//": "Places a crate, 25% chance of being pre-opened.",
      "furniture": { "X": [ "f_crate_c", "f_crate_c", "f_crate_c", "f_crate_o" ] }
    }
  },
  {
    "//": "7x7 machine room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_nested": [
        { "chunks": [ "sub_t_machinery" ], "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": 10 },
        { "chunks": [ "sub_t_machinery", "sub_f_crate" ], "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": 5 }
      ]
    }
  },
  {
    "//": "9x9 machine room",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [
        { "chunks": [ "sub_t_machinery" ], "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": 15 },
        { "chunks": [ "sub_t_machinery", "sub_f_crate" ], "x": [ 0, 8 ], "y": [ 0, 8 ], "repeat": 8 }
      ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "sub_t_machinery",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "A" ],
      "furniture": {
        "A": [
          "f_machinery_heavy",
          "f_machinery_heavy",
          "f_machinery_electronic",
          "f_machinery_light",
          "f_centrifuge",
          "f_console_broken"
        ]
      }
    }
  },
  {
    "//": "7x7 bathrooms",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "Tl|.|Tl",
        "S.|.|.S",
        "-W-.-W-",
        ".......",
        "-W-.-W-",
        "S.|.|.S",
        "lT|.|Tl"
      ],
      "palettes": [ "lab_palette" ],
      "mapping": {
        "l": { "items": [ { "item": "cleaning", "chance": 60, "repeat": 2 } ] },
        "S": { "items": [ { "item": "drugs_heal_simple", "chance": 10 }, { "item": "harddrugs", "chance": 5 } ] }
      }
    }
  },
  {
    "//": "7x7 vr mat, using safety glasses to suggest vr goggles",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".......",
        ".,,,,,.",
        ".,,,,,.",
        ".,,,,,.",
        ".,,,,,.",
        ".,,,,x.",
        "......."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { ",": "t_floor_green" },
      "mapping": { ",": { "item": [ { "item": "glasses_safety", "chance": 4 } ] } }
    }
  },
  {
    "//": "7x7 barracks",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "s.....s",
        "bb...bb",
        ".......",
        ".......",
        ".......",
        "bb...bb",
        "s.....s"
      ],
      "palettes": [ "lab_palette", "lab_loot_home_office" ]
    }
  },
  {
    "//": "9x9 bedrooms",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "b..|.|T.B",
        "b..W.W..B",
        "..s|.|S..",
        "----.----",
        ".........",
        "----.----",
        "..s|.|s..",
        "b..W.W...",
        "b..|.|.bb"
      ],
      "palettes": [ "lab_palette", "lab_loot_home_office" ],
      "furniture": { "B": "f_bathtub" }
    }
  },
  {
    "//": "7x7 kennel",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ",,=.=,,",
        ",,=.=,,",
        "=^=.=^=",
        ".......",
        "=^=....",
        ",,=..hl",
        ",,=.ccx"
      ],
      "palettes": [ "lab_palette", "lab_loot_home_office" ],
      "terrain": { "=": "t_chainfence_h", "^": [ "t_chaingate_c", "t_chaingate_c", "t_chaingate_c", "t_chaingate_o" ] },
      "mapping": { "l": { "items": [ { "item": "vet_softdrug", "chance": 80, "repeat": 2 } ] } },
      "place_monster": [
        { "monster": "mon_zombie_dog", "x": [ 0, 1 ], "y": [ 0, 1 ], "chance": 50, "pack_size": [ 1, 2 ], "one_or_none": true },
        {
          "monster": "mon_zombie_dog",
          "x": [ 0, 1 ],
          "y": [ 5, 6 ],
          "chance": 50,
          "pack_size": [ 1, 2 ],
          "one_or_none": true
        },
        {
          "monster": "mon_zombie_dog",
          "x": [ 5, 6 ],
          "y": [ 0, 1 ],
          "chance": 50,
          "pack_size": [ 1, 2 ],
          "one_or_none": true
        }
      ]
    }
  },
  {
    "//": "library",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_rare",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "......xx.",
        ".]]]..hh.",
        ".........",
        ".]]].]]].",
        ".........",
        ".]]].]]].",
        ".........",
        ".]]].]]].",
        "........."
      ],
      "palettes": [ "lab_palette", "lab_loot_home_office" ]
    }
  },
  {
    "//": "water tank 9x9",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".........",
        "...ggggg.",
        ".hxgWWWg.",
        ".gggWWWg.",
        ".gWWWWWg.",
        ".gWWWWWg.",
        ".gWWWWWg.",
        ".ggggggg.",
        "........."
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "W": "t_water_dp" }
    }
  },
  {
    "//": "Elevator lobby and bathroom",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "EEe|.|eEE",
        "EEEM.MEEE",
        "EEEM.MEEE",
        "----.----",
        ".........",
        "......|--",
        "......|.T",
        ".h....W..",
        ".x....|.S"
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "E": "t_elevator", "e": "t_elevator_control_off" }
    }
  },
  {
    "//": "broken computer chamber",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "r.xx.xx.r",
        ".........",
        "x.xx.xx.x",
        "x.xx.xx.x",
        ".........",
        "x.xx.xx.x",
        "x.xx.xx.x",
        ".........",
        "r.xx.xx.r"
      ],
      "palettes": [ "lab_palette" ],
      "items": { "r": { "item": "electronics", "chance": 10 } }
    }
  },
  {
    "//": "gym",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".........",
        ".5.....%.",
        "...l|l...",
        "...l|l...",
        ".5..|..%.",
        "....|l...",
        "```.|l...",
        "```....%.",
        "```......"
      ],
      "palettes": [ "lab_palette" ],
      "terrain": { "%": "t_thconc_floor" },
      "furniture": {
        "%": [ "f_treadmill", "f_treadmill_mechanical" ],
        "5": [ "f_ergometer", "f_ergometer_mechanical", "f_exercise" ],
        "`": "f_canvas_floor"
      },
      "items": {
        ".": { "item": "clutter_gym", "chance": 3 },
        "l": { "item": "locker_gym", "chance": 30 },
        "`": { "item": "boxing_misc", "chance": 5 }
      }
    }
  },
  {
    "//": "kitchen and dining area",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "12.......",
        ".....hth.",
        ".tt..hth.",
        ".hh..hth.",
        ".........",
        "-+--.hth.",
        "c.C|.hth.",
        "O.f|.hth.",
        "S.C|....."
      ],
      "palettes": [ "lab_palette" ],
      "furniture": { "C": "f_cupboard", "O": "f_oven" },
      "vendingmachines": { "1": { "item_group": "vending_drink" }, "2": { "item_group": "vending_food" } },
      "mapping": {
        "t": { "items": [ { "item": "vending_food_items", "chance": 10 } ] },
        "f": { "items": [ { "item": "fridge", "chance": 80 } ] },
        "C": { "items": [ { "item": "kitchen", "chance": 80 } ] },
        "c": { "items": [ { "item": "kitchen", "chance": 50 } ] },
        "O": { "items": [ { "item": "oven", "chance": 70 } ] }
      }
    }
  },
  {
    "//": "incinerated room - using crossdoors to ensure no extra space in the room not covered in ash",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_7x7_crossdoors",
    "object": {
      "mapgensize": [ 7, 7 ],
      "rows": [
        "aaaaaaa",
        "aaaaaaa",
        "aaaaaaa",
        "aaaaaaa",
        "aaaaaaa",
        "aaaaaaa",
        "aaaaaaa"
      ],
      "terrain": { "a": "t_thconc_floor" },
      "item": { "a": { "item": "ash", "chance": 90 } },
      "place_nested": [ { "chunks": [ "sub_f_ash" ], "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": [ 2, 4 ] } ]
    }
  },
  {
    "//": "incinerated room - using crossdoors to ensure no extra space in the room not covered in ash",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_room_9x9_crossdoors",
    "object": {
      "mapgensize": [ 9, 9 ],
      "rows": [
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa",
        "aaaaaaaaa"
      ],
      "terrain": { "a": "t_thconc_floor" },
      "item": { "a": { "item": "ash", "chance": 90 } },
      "place_nested": [ { "chunks": [ "sub_f_ash" ], "x": [ 0, 8 ], "y": [ 0, 8 ], "repeat": [ 4, 6 ] } ]
    }
  },
  {
    "//": "big ash pile (shovel-needed) with a chance of science gear",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "sub_f_ash",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "a" ],
      "furniture": { "a": "f_ash" },
      "item": { "a": [ { "item": "ash", "amount": 49, "chance": 100 }, { "item": "bone_human", "amount": [ 3, 5 ], "chance": 50 } ] },
      "items": { "a": { "item": "science", "chance": 10 } }
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_maybe_effects_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_nested": [ { "chunks": [ [ "null", 98 ], [ "lab_add_spiders_7x7", 2 ] ], "x": 0, "y": 0 } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_maybe_effects_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_nested": [ { "chunks": [ [ "null", 98 ], [ "lab_add_spiders_9x9", 2 ] ], "x": 0, "y": 0 } ]
    }
  },
  {
    "//": "7x7 spider overlay",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_add_spiders_7x7",
    "object": {
      "mapgensize": [ 7, 7 ],
      "place_monsters": [ { "monster": "GROUP_SPIDER", "x": [ 0, 6 ], "y": [ 0, 6 ], "density": 0.1 } ],
      "place_fields": [ { "field": "fd_web", "x": [ 0, 6 ], "y": [ 0, 6 ], "repeat": 40 } ]
    }
  },
  {
    "//": "9x9 spider overlay",
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "lab_add_spiders_9x9",
    "object": {
      "mapgensize": [ 9, 9 ],
      "place_monsters": [ { "monster": "GROUP_SPIDER", "x": [ 0, 8 ], "y": [ 0, 8 ], "density": 0.1 } ],
      "place_fields": [ { "field": "fd_web", "x": [ 0, 8 ], "y": [ 0, 8 ], "repeat": 60 } ]
    }
  }
]
