[
  {
    "id": "mass_grave_casings",
    "type": "item_group",
    "items": [ [ "223_casing", 60 ], [ "308_casing", 20 ], [ "shot_hull", 20 ] ]
  },
  {
    "type": "mapgen",
    "//": "This is the 'base' mass grave, and doesn't actually contain anything. Variants are generated via the place_nested field.",
    "update_mapgen_id": "mx_mass_grave",
    "object": {
      "place_nested": [
        {
          "chunks": [ [ "mass_grave_abandoned", 30 ], [ "mass_grave_partial", 20 ], [ "mass_grave_finished", 10 ] ],
          "x": 0,
          "y": 0
        }
      ]
    }
  },
  {
    "type": "mapgen",
    "//": "Variant 1 - overrun early. lots of zombies, still remnants of the cleanup",
    "nested_mapgen_id": "mass_grave_abandoned",
    "object": {
      "mapgensize": [ 24, 24 ],
      "rows": [
        "                        ",
        "   ##  aa  ##  O#X OO   ",
        "   #a  aa  ## XOOX OO   ",
        "   aa  aa  #a XOO  OO   ",
        "   aa  aa  aa XOOX OO   ",
        "   aa  aa  aa  OOX OO   ",
        "   aa  aa  aa  aaX OO   ",
        "   aa  aa  aa  aaX OO   ",
        "   aa  aa  aa  aaX OO   ",
        "   aa  aa  aa  aa  OO   ",
        "   aa  aa  aa  a#  OO   ",
        "   aa  aa  aa  ##  OO   ",
        "   aa  aa  aa  ##  OO   ",
        "   aa  aa  aa X#a  OO   ",
        "n  aa  aa  aa Xaa  OO   ",
        "n  aa  aa  aa Xaa  OO   ",
        "n  aa  aa  aa Xaa  OO   ",
        "   aa  aa  aa  a#  OO   ",
        "                        ",
        " |||||||#               ",
        " |nnnn#D##n             ",
        " |#####D#cn             ",
        " |cB#B#D#nn             ",
        " |||||||##              "
      ],
      "terrain": { "a": [ "t_pit_corpsed" ], "O": [ "t_pit_shallow" ], "#": [ "t_dirt" ], "X": [ "t_dirt" ] },
      "furniture": {
        "|": "f_large_canvas_wall",
        "D": "f_large_canvas_door_o",
        "n": "f_tourist_table",
        "B": "f_makeshift_bed",
        "c": "f_camp_chair",
        "X": "f_plastic_groundsheet"
      },
      "place_loot": [
        { "group": "corpse_in_body_bag", "x": 14, "y": [ 2, 18 ], "repeat": [ 5, 20 ] },
        { "group": "corpse_in_body_bag", "x": 17, "y": [ 2, 18 ], "repeat": [ 5, 20 ] },
        { "group": "everyday_corpse", "x": 14, "y": [ 2, 18 ], "repeat": [ 0, 4 ] },
        { "group": "everyday_corpse", "x": 17, "y": [ 2, 18 ], "repeat": [ 0, 4 ] },
        { "group": "mass_grave_casings", "repeat": [ 10, 15 ], "x": [ 2, 22 ], "y": [ 18, 23 ] },
        { "group": "guns_launcher_flame", "chance": 40, "x": [ 2, 5 ], "y": 20 },
        { "item": "stanag30", "repeat": [ 0, 2 ], "x": [ 2, 22 ], "y": [ 18, 23 ] },
        { "item": "mask_gas", "repeat": [ 0, 3 ], "x": [ 2, 5 ], "y": 20 },
        { "item": "oxygen_tank", "repeat": [ 1, 6 ], "x": 10, "y": [ 20, 22 ] },
        { "item": "gasfilter_med", "repeat": [ 1, 4 ], "x": 10, "y": [ 20, 22 ] }
      ],
      "place_monsters": [
        { "monster": "GROUP_MASS_GRAVE", "density": 1, "x": [ 1, 22 ], "y": [ 1, 22 ] },
        { "monster": "GROUP_SCHOOL", "chance": 35, "density": 1, "x": [ 1, 22 ], "y": [ 1, 22 ] },
        { "monster": "GROUP_MIL_MASS_GRAVE", "density": 0.25, "x": [ 1, 22 ], "y": [ 1, 22 ] }
      ],
      "place_fields": [
        { "field": "fd_blood", "x": [ 2, 22 ], "y": [ 18, 23 ], "repeat": [ 8, 12 ] },
        { "field": "fd_gibs_flesh", "x": [ 2, 22 ], "y": [ 18, 23 ], "repeat": [ 1, 5 ] },
        { "field": "fd_blood", "x": [ 2, 22 ], "y": [ 18, 23 ], "repeat": [ 4, 8 ] }
      ],
      "place_vehicles": [
        { "vehicle": "military_cargo_trucks", "x": [ 16, 17 ], "y": [ 19, 20 ], "chance": 25 },
        { "vehicle": "trencher", "x": [ 19, 22 ], "y": [ 3, 13 ], "chance": 40, "rotation": [ 90, 270 ] }
      ],
      "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
    }
  },
  {
    "type": "mapgen",
    "//": "Variant 2 - wasn't finished being buried, but cleanup was mostly packed up. some remnants of conflict",
    "nested_mapgen_id": "mass_grave_partial",
    "object": {
      "mapgensize": [ 24, 24 ],
      "rows": [
        "                        ",
        "   ##  ##  aa  #a  aa   ",
        "   ##  ##  aa  aa  aa   ",
        "   ##  ##  aa  aa  aa   ",
        "   ##  ##  aa  aa  ##   ",
        "   ##  ##  #a  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ## X ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  aa  ##   ",
        "   ##  ##  ##  a#  ##   ",
        "   ##  ##  ##  a#  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "                        "
      ],
      "terrain": { "a": [ "t_pit_corpsed" ], "#": [ "t_dirt" ] },
      "furniture": { "X": [ [ "f_null", 3 ], [ "f_battlefield_cross", 1 ] ] },
      "place_loot": [
        { "group": "mass_grave_casings", "repeat": [ 10, 15 ], "x": [ 2, 22 ], "y": [ 18, 23 ] },
        { "group": "SUS_trash_floor", "repeat": [ 5, 6 ], "x": [ 1, 23 ], "y": [ 18, 23 ] }
      ],
      "place_monsters": [
        { "monster": "GROUP_MASS_GRAVE", "density": 0.5, "x": [ 1, 22 ], "y": [ 1, 22 ] },
        { "monster": "GROUP_SCHOOL", "chance": 35, "density": 0.5, "x": [ 1, 22 ], "y": [ 1, 22 ] }
      ],
      "monster": { "a": { "monster": "mon_zombie_scorched", "chance": 1 } },
      "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
    }
  },
  {
    "type": "mapgen",
    "//": "Variant 2 - buried and left. some zombie stragglers have clawed up. these trenches are shallow by time constraints, so they aren't completely smothered",
    "nested_mapgen_id": "mass_grave_finished",
    "object": {
      "mapgensize": [ 24, 24 ],
      "rows": [
        "                        ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##  X",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ## X ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##  X",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ## X ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##  X",
        "   ##  ##  ##  ##  ##   ",
        "   ##  ##  ##  ##  ##   ",
        "                        "
      ],
      "terrain": { "#": [ [ "t_dirt", 24 ], [ "t_pit_shallow", 1 ] ] },
      "furniture": { "X": [ [ "f_null", 19 ], [ "f_battlefield_cross", 1 ] ] },
      "//2": "casings all around the site hint at soldiers shooting zombies that started to reanimate by now that weren't damaged enough",
      "place_loot": [
        { "group": "mass_grave_casings", "repeat": [ 20, 30 ], "x": [ 1, 23 ], "y": [ 1, 17 ] },
        { "group": "mass_grave_casings", "repeat": [ 10, 15 ], "x": [ 1, 23 ], "y": [ 18, 23 ] },
        { "group": "SUS_trash_floor", "repeat": [ 1, 3 ], "x": [ 1, 23 ], "y": [ 18, 23 ] }
      ],
      "place_monsters": [ { "monster": "GROUP_MASS_GRAVE", "density": 0.1, "x": [ 1, 22 ], "y": [ 1, 22 ] } ],
      "//3": "lotta scorched zombies here - we're presuming that the military set fire to the trenches before burying them",
      "monster": { "#": { "monster": "mon_zombie_scorched", "chance": 1 } },
      "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
    }
  }
]
