[
  {
    "type": "mapgen",
    "nested_mapgen_id": "bile_field",
    "object": { "mapgensize": [ 1, 1 ], "place_fields": [ { "field": "fd_bile", "x": 0, "y": 0, "intensity": 1, "age": 10 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "blood_field",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_fields": [ { "field": "fd_blood", "x": 0, "y": 0, "intensity": [ 1, 3 ], "age": 10 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "fire_field",
    "object": { "mapgensize": [ 1, 1 ], "place_fields": [ { "field": "fd_fire", "x": 0, "y": 0, "intensity": 2, "age": 10 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_glass_door_wall",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "glass_door_wall_2_floor", "x": 0, "y": 0 } ],
      "place_item": [ { "item": "glass_shard", "x": 0, "y": 0, "repeat": [ 42, 84 ], "chance": 100 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "damaged_door_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "damaged_door", "x": 0, "y": 0 } ],
      "place_items": [ { "item": "door_damage", "x": 0, "y": 0, "chance": 100 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "damaged_door_nested_no_junk",
    "object": { "mapgensize": [ 1, 1 ], "place_ter_furn_transforms": [ { "transform": "damaged_door", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_door_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "destroyed_door", "x": 0, "y": 0 } ],
      "place_items": [ { "item": "door_destruction", "x": 0, "y": 0, "chance": 100 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_door_nested_no_junk",
    "object": { "mapgensize": [ 1, 1 ], "place_ter_furn_transforms": [ { "transform": "destroyed_door", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_metal_door_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "destroyed_metal_door", "x": 0, "y": 0 } ],
      "place_item": [
        { "item": "steel_plate", "x": 0, "y": 0, "chance": 75 },
        { "item": "hinge", "x": 0, "y": 0, "repeat": [ 1, 3 ] },
        { "item": "scrap", "x": 0, "y": 0, "repeat": [ 12, 24 ] }
      ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "damaged_window_bars_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "damaged_window_bars", "x": 0, "y": 0 } ],
      "place_item": [ { "item": "glass_shard", "x": 0, "y": 0, "repeat": [ 34, 50 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_window_bars_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "destroyed_window_bars", "x": 0, "y": 0 } ],
      "place_item": [
        { "item": "lc_steel_lump", "x": 0, "y": 0, "chance": 25 },
        { "item": "lc_steel_chunk", "x": 0, "y": 0, "repeat": [ 1, 4 ] },
        { "item": "scrap", "x": 0, "y": 0, "repeat": [ 1, 5 ] }
      ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "damaged_window_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "damaged_window", "x": 0, "y": 0 } ],
      "place_item": [ { "item": "glass_shard", "x": 0, "y": 0, "repeat": [ 21, 29 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_window_nested",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_ter_furn_transforms": [ { "transform": "destroyed_window", "x": 0, "y": 0 } ],
      "place_item": [ { "item": "glass_shard", "x": 0, "y": 0, "repeat": [ 27, 39 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_fence_barbed",
    "object": { "mapgensize": [ 1, 1 ], "terrain": { " ": "t_fence_barbed" } }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_fence_barbed_above",
    "object": { "mapgensize": [ 1, 1 ], "place_nested": [ { "chunks": [ "1x1_fence_barbed" ], "x": 0, "y": 0, "z": 1 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_boarded_up",
    "object": { "mapgensize": [ 1, 1 ], "place_ter_furn_transforms": [ { "transform": "boarded_up", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_boarded_up_rushed",
    "object": { "mapgensize": [ 1, 1 ], "place_ter_furn_transforms": [ { "transform": "boarded_up_rushed", "x": 0, "y": 0 } ] }
  },
  {
    "type": "ter_furn_transform",
    "id": "damaged_window",
    "//": "Should include the bash result for every standard_domestic_palette window",
    "terrain": [
      {
        "result": "t_window_frame",
        "valid_terrain": [ "t_window_domestic", "t_window_no_curtains", "t_window_open", "t_window_no_curtains_open", "t_curtains" ]
      }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "glass_door_wall_2_floor",
    "terrain": [ { "result": "t_floor", "valid_terrain": [ "t_wall_glass", "t_door_glass_c" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "destroyed_window",
    "//": "Should include the bash result for every standard_domestic_palette window",
    "terrain": [
      {
        "result": "t_window_empty",
        "valid_terrain": [
          "t_window_domestic",
          "t_window_no_curtains",
          "t_window_open",
          "t_window_no_curtains_open",
          "t_curtains",
          "t_window_frame"
        ]
      }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "damaged_door",
    "//": "Should include the bash result for every wooden door",
    "terrain": [
      {
        "result": "t_door_b",
        "valid_terrain": [
          "t_door_c",
          "t_door_o",
          "t_door_locked_interior",
          "t_rdoor_b",
          "t_door_locked",
          "t_door_elocked",
          "t_door_locked_alarm",
          "t_door_elocked_alarm",
          "t_door_boarded_damaged"
        ]
      },
      { "result": "t_rdoor_b", "valid_terrain": [ "t_rdoor_c", "t_rdoor_o", "t_rdoor_boarded_damaged" ] },
      { "result": "t_door_boarded_damaged", "valid_terrain": [ "t_door_boarded" ] },
      { "result": "t_rdoor_boarded_damaged", "valid_terrain": [ "t_rdoor_boarded" ] },
      { "result": "t_door_boarded_damaged_peep", "valid_terrain": [ "t_door_boarded_peep" ] },
      { "result": "t_door_o_peep", "valid_terrain": [ "t_door_elocked_peep" ] },
      { "result": "t_door_frame", "valid_terrain": [ "t_door_makeshift_c", "t_door_makeshift_o" ] },
      {
        "result": "t_door_b_peep",
        "valid_terrain": [ "t_door_c_peep", "t_door_o_peep", "t_door_locked_peep", "t_door_boarded_damaged_peep" ]
      },
      { "result": "t_door_white_b", "valid_terrain": [ "t_door_white_c", "t_door_white_o" ] },
      { "result": "t_door_gray_b", "valid_terrain": [ "t_door_gray_c", "t_door_gray_o" ] },
      { "result": "t_door_red_b", "valid_terrain": [ "t_door_red_c", "t_door_red_o" ] },
      { "result": "t_door_green_b", "valid_terrain": [ "t_door_green_c", "t_door_green_o" ] }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "destroyed_door",
    "terrain": [
      {
        "result": "t_door_frame",
        "valid_terrain": [
          "t_door_c",
          "t_door_o",
          "t_door_locked_interior",
          "t_rdoor_b",
          "t_door_locked",
          "t_door_elocked",
          "t_door_locked_alarm",
          "t_door_elocked_alarm",
          "t_door_boarded_damaged",
          "t_door_b",
          "t_rdoor_c",
          "t_rdoor_o",
          "t_rdoor_boarded_damaged",
          "t_rdoor_b",
          "t_door_boarded",
          "t_door_boarded_damaged",
          "t_rdoor_boarded",
          "t_rdoor_boarded_damaged",
          "t_door_boarded_peep",
          "t_door_boarded_damaged_peep",
          "t_door_makeshift_c",
          "t_door_makeshift_o",
          "t_door_c_peep",
          "t_door_o_peep",
          "t_door_locked_peep",
          "t_door_boarded_damaged_peep",
          "t_door_b_peep"
        ]
      },
      { "result": "t_door_white_frame", "valid_terrain": [ "t_door_white_c", "t_door_white_o", "t_door_white_b" ] },
      { "result": "t_door_gray_frame", "valid_terrain": [ "t_door_gray_c", "t_door_gray_o", "t_door_gray_b" ] },
      { "result": "t_door_red_frame", "valid_terrain": [ "t_door_red_c", "t_door_red_o", "t_door_red_b" ] },
      { "result": "t_door_green_frame", "valid_terrain": [ "t_door_green_c", "t_door_green_o", "t_door_green_b" ] }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "boarded_up",
    "terrain": [
      { "result": "t_door_boarded", "valid_flags": [ "DOOR" ] },
      { "result": "t_window_boarded", "valid_flags": [ "WINDOW" ] },
      { "result": "t_scrap_wall", "valid_terrain": [ "t_wall_glass" ] }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "boarded_up_rushed",
    "terrain": [
      { "result": "t_door_locked", "valid_flags": [ "DOOR" ] },
      { "result": "t_window_taped", "valid_flags": [ "WINDOW" ] }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "cut_foliage",
    "terrain": [ { "result": "t_dirt", "valid_flags": [ "SHRUB" ], "valid_terrain": [ "t_grass", "t_grass_dead" ] } ],
    "furniture": [ { "result": "f_null", "valid_flags": [ "FLOWER" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "destroyed_metal_door",
    "terrain": [ { "result": "t_mdoor_frame", "valid_terrain": [ "t_door_metal_pickable", "t_door_metal_o", "t_door_metal_c" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "damaged_window_bars",
    "terrain": [ { "result": "t_window_bars", "valid_terrain": [ "t_window_bars_alarm" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "destroyed_window_bars",
    "terrain": [ { "result": "t_window_empty", "valid_terrain": [ "t_window_bars", "t_window_bars_alarm" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "fit_door",
    "terrain": [ { "result": "t_door_c", "valid_terrain": [ "t_door_frame" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "looted_gunsafe",
    "furniture": [ { "result": "f_gunsafe_o", "valid_furniture": [ "f_gunsafe_ml", "f_gunsafe_o" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "jammed_gunsafe",
    "furniture": [ { "result": "f_gunsafe_mj", "valid_furniture": [ "f_gunsafe_ml", "f_gunsafe_o" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "open_gunsafe",
    "furniture": [ { "result": "f_gunsafe_o", "valid_furniture": [ "f_gunsafe_ml" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "unlock_door",
    "terrain": [
      {
        "result": "t_door_c",
        "valid_terrain": [ "t_door_locked_interior", "t_door_locked", "t_door_elocked", "t_door_locked_alarm", "t_door_elocked_alarm" ]
      },
      { "result": "t_door_c_peep", "valid_terrain": [ "t_door_locked_peep" ] },
      { "result": "t_door_metal_c", "valid_terrain": [ "t_door_metal_locked", "t_door_metal_interior_locked" ] },
      { "result": "t_door_bar_o", "valid_terrain": [ "t_door_bar_locked" ] }
    ]
  },
  {
    "type": "ter_furn_transform",
    "id": "ranch_wall_upgrade1",
    "terrain": [ { "result": "t_wall_wood", "valid_terrain": [ "t_wall_half" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "ranch_wall_upgrade2",
    "terrain": [ { "result": "t_wall", "valid_terrain": [ "t_wall_wood" ] } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "ranch_window_upgrade1",
    "terrain": [ { "result": "t_window_boarded_noglass", "valid_terrain": [ "t_window_empty" ] } ]
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "deployed_small_tent",
    "object": {
      "mapgensize": [ 3, 3 ],
      "place_furniture": [
        { "furn": "f_canvas_wall", "x": 0, "y": [ 0, 2 ] },
        { "furn": "f_canvas_wall", "x": 2, "y": [ 0, 2 ] },
        { "furn": "f_canvas_wall", "x": 1, "y": 2 },
        { "furn": "f_groundsheet", "x": 1, "y": 1 },
        { "furn": "f_canvas_door", "x": 1, "y": 0 }
      ]
    }
  },
  {
    "type": "mapgen",
    "//": "A nested map bash damage.",
    "nested_mapgen_id": "1x1_bash",
    "object": { "mapgensize": [ 1, 1 ], "set": [ { "point": "bash", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_burn",
    "object": { "mapgensize": [ 1, 1 ], "set": [ { "point": "burn", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_bash_burn",
    "object": { "mapgensize": [ 1, 1 ], "set": [ { "point": "bash", "x": 0, "y": 0 }, { "point": "burn", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_open_air",
    "object": { "mapgensize": [ 1, 1 ], "terrain": { " ": "t_open_air" }, "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ] }
  },
  {
    "type": "mapgen",
    "//": "A nested map bash damage.",
    "nested_mapgen_id": "1x1_2z_bash",
    "object": {
      "mapgensize": [ 1, 1 ],
      "set": [ { "point": "bash", "x": 0, "y": 0, "z": 0 }, { "point": "bash", "x": 0, "y": 0, "z": 1 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_small_tent",
    "object": {
      "mapgensize": [ 3, 3 ],
      "place_furniture": [ { "furn": "f_null", "x": [ 0, 2 ], "y": [ 0, 2 ] } ],
      "place_item": [
        { "item": "broketent", "x": 1, "y": 1, "chance": 100 },
        { "item": "tarp", "x": [ 0, 2 ], "y": [ 0, 2 ], "chance": 50 }
      ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_furniture",
    "object": { "mapgensize": [ 1, 1 ], "place_rubble": [ { "x": 0, "y": 0, "rubble_type": "f_null", "items": true } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "destroyed_furniture_gunstore",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_rubble": [ { "x": 0, "y": 0, "rubble_type": "f_null", "items": true } ],
      "place_items": [ { "item": "ammo_common_loose", "x": [ 0, 0 ], "y": [ 0, 0 ], "chance": 50, "repeat": [ 1, 4 ] } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_trail_sign",
    "object": { "mapgensize": [ 1, 1 ], "place_signs": [ { "snippet": "trailhead", "x": 0, "y": 0 } ] }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_trailmap",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "6" ],
      "furniture": { "6": "f_board_map" },
      "item": { "6": { "item": "trailmap", "chance": 100 } }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_sewermap",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "6" ],
      "furniture": { "6": "f_board_map" },
      "item": { "6": { "item": "sewermap", "chance": 100 } }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "1x1_subwaystationmap",
    "object": {
      "mapgensize": [ 1, 1 ],
      "rows": [ "6" ],
      "furniture": { "6": "f_board_map" },
      "item": { "6": { "item": "subwaystationmap", "chance": 100 } }
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "corpse_blood_casings_3x3",
    "object": {
      "mapgensize": [ 3, 3 ],
      "place_items": [
        { "item": "corpses", "x": 0, "y": 0, "chance": 100 },
        { "item": "ammo_casings", "x": [ 0, 2 ], "y": [ 0, 2 ], "chance": 50 }
      ],
      "place_fields": [ { "field": "fd_blood", "x": [ 0, 2 ], "y": [ 0, 2 ], "intensity": 1, "age": 10 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "corpse_blood_1x1",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_items": [ { "item": "corpses", "x": 0, "y": 0, "chance": 100 } ],
      "place_fields": [ { "field": "fd_blood", "x": 0, "y": 0, "intensity": [ 1, 3 ], "age": 10 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "corpse_blood_casings_1x1",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_items": [
        { "item": "corpses", "x": 0, "y": 0, "chance": 50 },
        { "item": "casings", "x": 0, "y": 0, "chance": 100, "repeat": [ 1, 3 ] }
      ],
      "place_fields": [
        { "field": "fd_blood", "x": 0, "y": 0, "intensity": 2, "age": 10 },
        { "field": "fd_gibs_flesh", "x": 0, "y": 0, "intensity": 1, "age": 10 }
      ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "rolling_trash_can_1x1",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_vehicles": [ { "vehicle": "rolling_trash_can", "x": 0, "y": 0, "chance": 80, "status": 0 } ]
    }
  },
  {
    "type": "mapgen",
    "nested_mapgen_id": "8x8_hole",
    "object": {
      "mapgensize": [ 8, 8 ],
      "rows": [
        "   ??   ",
        "  ?oo?  ",
        " ?oooo? ",
        "?oooooo?",
        "?oooooo?",
        " ?oooo? ",
        "  ?oo?  ",
        "   ??   "
      ],
      "set": [ { "square": "item_remove", "x": 0, "y": 0, "x2": 7, "y2": 7 } ],
      "terrain": { "o": "t_open_air", "?": [ [ "t_open_air", 1 ], [ "t_null", 2 ] ] }
    }
  }
]
