[
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_occupied_a",
    "object": {
      "mapgensize": [ 18, 18 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ",,''''''''''''''''",
        "'CCCCCCCC'''''''''",
        "##:::##+##########",
        "!dddddjjj/3$dIa4ga",
        "SG..../...3.dI.../",
        ".G....gA..3tdIa../",
        "!g..Annn..dttIIIPI",
        ".g/...A...dttD...A",
        "..........ddcI...n",
        "SG...........D...A",
        "Gg.i.iK....GdI...q",
        "...i.iK....GdIK/Y/",
        ".g.i.i.....KdIYYjY",
        "............A###+#",
        "Gg..........A+ www",
        "Gg....BBBSIID# w  ",
        "G......G.SIo.#   x",
        "S.Sttt.SSSI&q#xxxx"
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "place_monsters": [ { "monster": "GROUP_PREPPER_HOUSE", "x": [ 5, 13 ], "y": [ 5, 13 ] } ],
      "palettes": [ "gunstore_palette_occupied" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_barricaded_a",
    "object": {
      "mapgensize": [ 18, 18 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ",,''''''''''''''''",
        "'CCCCCCCC'''''''''",
        "##:::##+##########",
        "!gggggjjj$3.hIBBBB",
        "S.........3.gIB..B",
        "!0...iJ...3.gIB..F",
        "!....iJ...H..III+I",
        "S....i!...H..D...E",
        "S....i!...kHcI...n",
        "S............D...f",
        "S.YK.ii.J...hIn..q",
        "!.Yt.ii.J...hInA.r",
        "S.Yt.ii.J...hInA.l",
        "S.Oo.ii.J....###+#",
        "!.Oo.ii.J....+wwwx",
        "!.Oo.ii.!.IID#wxxx",
        "S.........I..#xx..",
        "SS!!SSS!S!I&q#...."
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "nested": { "0": { "chunks": [ [ "gunstore_barricaded_safes_a", 50 ], [ "gunstore_barricaded_handloading_a", 50 ] ] } },
      "palettes": [ "gunstore_palette_unlooted" ],
      "place_loot": [ { "group": "SUS_gunstore_optics_display", "x": 10, "y": 8, "repeat": [ 10, 20 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_a",
    "object": {
      "mapgensize": [ 18, 18 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ",,''''''''''''''''",
        "''''''''''''''''''",
        "##:::##+##########",
        "!gggggjjj$3.gI1   ",
        "S.........3.gI    ",
        "!0...iJ...3.gI    ",
        "!....iJ...H..I    ",
        "S....i!...H..D...A",
        "S....i!...kHcI...n",
        "S............D...f",
        "S.YK.ii.J...hIn..q",
        "!.Yt.ii.J...hInA.r",
        "S.Yt.ii.J...hInA.l",
        "S.Oo.ii.J....###+#",
        "!.Oo.ii.J....+...w",
        "!.Oo.ii.!.IID#....",
        "S.........I..#w...",
        "SS!!SSS!S!I&q#w..."
      ],
      "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 2, 16 ], "y": [ 4, 16 ] } ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ],
      "nested": {
        "0": { "chunks": [ [ "gunstore_looted_safes_a", 50 ], [ "gunstore_looted_handloading_a", 50 ] ] },
        "1": { "chunks": [ [ "gunstore_looted_storage_a", 9 ], [ "gunstore_unlooted_storage_a", 1 ] ] },
        ".": { "chunks": [ [ "gunstore_looted_floor", 4 ], [ "null", 20 ] ] }
      },
      "place_loot": [ { "group": "SUS_gunstore_optics_display", "x": 10, "y": 8, "repeat": [ 0, 2 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_ransacked_a",
    "object": {
      "mapgensize": [ 18, 18 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ",,''''''''''''''''",
        "''''''''''''''''''",
        "##:::##+##########",
        "!gggggjjj$3.gIBBBB",
        "S.........3.gIB..B",
        "!0...iJ...3.gIB..F",
        "!....iJ...H..III+I",
        "S....i!...H..D...A",
        "S....i!...kHcI...n",
        "S............D...f",
        "S.YK.ii.J...hIn..q",
        "!.Yt.ii.J...hInA.r",
        "S.Yt.ii.J...hInA.l",
        "S.Oo.ii.J....###+#",
        "!.Oo.ii.J....+...w",
        "!.Oo.ii.!.IID#....",
        "S.........I..#w...",
        "SS!!SSS!S!I&q#w..."
      ],
      "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 2, 16 ], "y": [ 4, 16 ], "repeat": [ 1, 2 ] } ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ],
      "nested": {
        "0": { "chunks": [ [ "gunstore_looted_safes_a", 50 ], [ "gunstore_looted_handloading_a", 50 ] ] },
        "g": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "h": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "H": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "Y": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 23 ] ] },
        "i": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 15 ] ] },
        "J": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 20 ] ] },
        "t": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 30 ] ] },
        "O": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 20 ] ] },
        "o": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 35 ] ] },
        "K": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 30 ] ] },
        "!": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 30 ] ] },
        "S": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 30 ] ] },
        ".": { "chunks": [ [ "gunstore_looted_floor", 10 ], [ "null", 20 ] ] }
      }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_occupied_b",
    "object": {
      "mapgensize": [ 21, 21 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "CCCCCCCCCCCCCC       ",
        "#:#:####+##::####### ",
        ".....IdGGGUUUUG....# ",
        ".....IdA....G.....GI ",
        ".....Id...t.......U+.",
        ".....Id...t.....333I.",
        ".....Id.........3.dI.",
        ".....Id.....t...d.i:.",
        ".EEE.Id...ttt...d.i:.",
        "IIDIIII.........3.iI.",
        ".UUU.......t....c.dI.",
        ".....I..iiii....3.dI.",
        "IDIDII..iiii...IIIII.",
        "&.I.&I.........D../I.",
        "qoI.qIdddddddddI..aI.",
        "IIIIIIIIIIIIIIII..nI.",
        "q.IttnnnA/Igggii..nI.",
        "&.D..AA...D......./I+",
        "###l....n.Ia.......D.",
        "wC+A..fpppIgGGa.i.aI.",
        "wC###################"
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "place_monsters": [ { "monster": "GROUP_PREPPER_HOUSE", "x": [ 6, 20 ], "y": [ 7, 20 ] } ],
      "palettes": [ "gunstore_palette_occupied" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_barricaded_b",
    "object": {
      "mapgensize": [ 21, 21 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "CCCCCCCCCCCCCC       ",
        "#:#:####+##::####### ",
        "..A..It............# ",
        ".EE..It............I ",
        ".....It..JJJJ......+.",
        "EE.EEIO..JJJJ...333I.",
        "AA.AAIo.........3.HI.",
        "EE.EEIo..iiii...H.i:.",
        "AA.AAIo..iiii...H.i:.",
        "IIDIIII.........3.iI.",
        ".........iiii...c.gI.",
        ".....I...iiii...3.gI.",
        "IDIDII.........IIIII.",
        "&.I.&I.........D...I.",
        "q.I.qIggggghhhhI...I.",
        "IIIIIIIIIIIIIIII...I.",
        "q.I..nnnA.IBBBF....I.",
        "&.D..AA...D........I+",
        "###l....n.I........D.",
        "wC+...fpppIBBBBBBBBI.",
        "wC###################"
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_unlooted" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_b",
    "object": {
      "mapgensize": [ 21, 21 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "                     ",
        "#:#:####+##::####### ",
        "..A..It............# ",
        ".EE..It............I ",
        ".....It..JJJJ......+.",
        "EE.EEIO..JJJJ...333I.",
        "AA.AAIo.........3.HI.",
        "EE.EEIo..iiii...H.i:.",
        "AA.AAIo..iiii...H.i:.",
        "IIDIIII.........3.iI.",
        ".........iiii...c.gI.",
        ".....I...iiii...3.gI.",
        "IDIDII.........IIIII.",
        "&.I.&I.........D...I.",
        "q.I.qIggggghhhhI...I.",
        "IIIIIIIIIIIIIIII...I.",
        "q.I..nnnA.IBBBF....I.",
        "&.D..AA...D........I+",
        "###l....n.I........D.",
        "w +...fpppIBBBBBBBBI.",
        "w ###################"
      ],
      "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 6, 20 ], "y": [ 7, 20 ] } ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ],
      "nested": { ".": { "chunks": [ [ "gunstore_looted_floor", 4 ], [ "null", 20 ] ] } }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_ransacked_b",
    "object": {
      "mapgensize": [ 21, 21 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "                     ",
        "#:#:####+##::####### ",
        "..A..It............# ",
        ".EE..It............I ",
        ".....It..JJJJ......+.",
        "EE.EEIO..JJJJ...333I.",
        "AA.AAIo.........3.HI.",
        "EE.EEIo..iiii...H.i:.",
        "AA.AAIo..iiii...H.i:.",
        "IIDIIII.........3.iI.",
        ".........iiii...c.gI.",
        ".....I...iiii...3.gI.",
        "IDIDII.........IIIII.",
        "&.I.&I.........D...I.",
        "q.I.qIggggghhhhI...I.",
        "IIIIIIIIIIIIIIII...I.",
        "q.I..nnnA.IBBBF....I.",
        "&.D..AA...D........I+",
        "###l....n.I........D.",
        "w +...fpppIBBBBBBBBI.",
        "w ###################"
      ],
      "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 6, 20 ], "y": [ 7, 20 ], "repeat": [ 1, 2 ] } ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ],
      "nested": {
        "g": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "h": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "H": { "chunks": [ [ "no_items_concrete_floor", 50 ], [ "null", 50 ] ] },
        "i": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 15 ] ] },
        "J": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 20 ] ] },
        "t": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 30 ] ] },
        "O": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 20 ] ] },
        "o": { "chunks": [ [ "destroyed_furniture_concrete_floor", 10 ], [ "no_items_concrete_floor", 60 ], [ "null", 35 ] ] },
        ".": { "chunks": [ [ "gunstore_looted_floor", 10 ], [ "null", 20 ] ] }
      }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_floor",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_items": [
        { "item": "casings", "x": 0, "y": 0, "chance": 40 },
        { "item": "SUS_trash_floor", "x": 0, "y": 0, "chance": 30 },
        { "item": "ammo_common_loose", "x": 0, "y": 0, "chance": 5 }
      ],
      "place_item": [
        { "item": "glass_shard", "x": 0, "y": 0, "chance": 15, "repeat": [ 1, 8 ] },
        { "item": "cardboard", "x": 0, "y": 0, "chance": 10, "repeat": [ 1, 3 ] },
        { "item": "paper", "x": 0, "y": 0, "chance": 5 }
      ],
      "place_fields": [ { "field": "fd_blood", "x": 0, "y": 0, "intensity": 2, "age": 10, "chance": 20 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_barricaded_safes_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".LL.",
        ".LL.",
        ".//.",
        ".44."
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_unlooted" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_barricaded_handloading_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".``.",
        ".``.",
        ".``.",
        ".33."
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_unlooted" ],
      "place_item": [ { "item": "press", "x": 1, "y": 3 }, { "item": "press", "x": 2, "y": 3 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_safes_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".LL.",
        ".LL.",
        ".//.",
        ".44."
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_handloading_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        ".``.",
        ".``.",
        ".``.",
        ".33."
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ],
      "place_item": [ { "item": "press", "x": [ 1, 2 ], "y": 3, "chance": 20 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_looted_storage_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "BBBB",
        "B..B",
        "B..F",
        "II+I"
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_looted" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "gunstore_unlooted_storage_a",
    "object": {
      "mapgensize": [ 4, 4 ],
      "rotation": [ 0, 3 ],
      "rows": [
        "BBBB",
        "B..B",
        "B..F",
        "II+I"
      ],
      "flags": [ "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
      "palettes": [ "gunstore_palette_unlooted" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_furniture_concrete_floor",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "a" ],
      "terrain": { "a": "t_thconc_floor" },
      "flags": [ "DISMANTLE_ALL_BEFORE_PLACING_TERRAIN" ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "no_items_concrete_floor",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "#" ],
      "terrain": { "#": "t_thconc_floor" },
      "flags": [ "ERASE_ITEMS_BEFORE_PLACING_TERRAIN" ]
    }
  }
]
