[
  {
    "type": "mapgen",
    "om_terrain": [ "whately_lmoe" ],
    "//": "Above ground",
    "object": {
      "faction_owner": [ { "id": "whately_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ],
      "fill_ter": "t_dirt",
      "rows": [
        "       S     S         S",
        "   S  X    S     S      ",
        " S     S         X  S   ",
        "          S             ",
        "   S    S SSSSS      S  ",
        "      SSSSSSSSSSSS      ",
        "     SS$$$$$$$$$$SS     ",
        "  X  S$$TTTTTTTT$$S   S ",
        "    SS$$T))))))T$$S     ",
        " S  SS$$T)####)T$$SS    ",
        "    SS$$T)#<>#)T$$SS    ",
        "    SS$$T)#..#)T$$SS    ",
        "    SS$$T)#+##)T$$SS   S",
        "  S  S$$T))_)))T$$SS    ",
        "     S$$$$$_$$$$$$S     ",
        "     SS$$$$_$$$$$SS  S  ",
        "      SSSSS_SSSSSS      ",
        "S X    S S   SS S       ",
        "                 S    S ",
        "   S   S           X    ",
        "            S  S        ",
        "                       S",
        "    S      S            ",
        "                  S     "
      ],
      "palettes": [ "whately_bunker_ext" ]
    }
  },
  {
    "type": "mapgen",
    "om_terrain": [ "whately_lmoe_roof" ],
    "//": "Above ground",
    "object": {
      "faction_owner": [ { "id": "whately_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ],
      "fill_ter": "t_dirt",
      "rows": [
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvv((((((vvvvvvvvv",
        "vvvvvvvvv(>   (vvvvvvvvv",
        "vvvvvvvvv(    (vvvvvvvvv",
        "vvvvvvvvv(    (vvvvvvvvv",
        "vvvvvvvvv(    (vvvvvvvvv",
        "vvvvvvvvv((v(((vvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv",
        "vvvvvvvvvvvvvvvvvvvvvvvv"
      ],
      "palettes": [ "whately_bunker_ext" ]
    }
  },
  {
    "type": "mapgen",
    "om_terrain": [ "whately_lmoe_under_first_floor" ],
    "//": "Residence of Cyrus Whately and his clan",
    "object": {
      "faction_owner": [ { "id": "whately_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ],
      "fill_ter": "t_metal_floor",
      "rows": [
        "########################",
        "########################",
        "##||||||||||||||||||||##",
        "##|{{{{{|UUUUUU|w__BB|##",
        "##|u____|U_k__U|d__BB|##",
        "##|u___h|U_UU_U|A,,,_|##",
        "##|u_k_D|=*==*=|_,k,}|##",
        "##|A____:__k___+_,,,}|##",
        "##|||||||_1,,1_|S__hD|##",
        "##|VVVVV=_e,,P_|||||||##",
        "##|__k__*__,,_k__|s_K|##",
        "##|vvvvv=_E,,f___+__t|##",
        "##|||||||||++|||||||||##",
        "##|c_bbbbA|,,|CSCCKCC|##",
        "##|c__k___|,,|u__k__C|##",
        "##|c_TT___|,,|u_hLh_F|##",
        "##|c_TTh__+_k+___k__>|##",
        "##|c_TT___|__|rrrr__~|##",
        "##|c__k___|k_|||||+|||##",
        "##|c______|__*_ka|k_A|##",
        "##|ccccccc|<<=G_a|HlW|##",
        "##||||||||||||||||||||##",
        "########################",
        "########################"
      ],
      "palettes": [ "whately_bunker", "whately_empty_bunker_items" ],
      "place_npcs": [ { "class": "wilhemina_whately", "x": 7, "y": 16 } ]
    }
  },
  {
    "type": "mapgen",
    "om_terrain": [ "whately_lmoe_under_second_floor" ],
    "//": "Whately clan dwellings.",
    "//2": "This is a commercially built 4-bed LMOE shelter based on IRL plans.",
    "//3": "There are extensive secret rooms which might contain a lot of treasure in the non-looted version.",
    "object": {
      "faction_owner": [ { "id": "whately_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ],
      "fill_ter": "t_carpet_metal_yellow",
      "rows": [
        "##|||||#################",
        "##|,,<|||||||###########",
        "##|Y,<|w,BBd|###########",
        "||||+||},BB,|###########",
        "|A,,,E|,,k,,|###########",
        "|f,k,,|+|||||||||||#####",
        "|f,,,e|,,,,b|_____|#####",
        "|f,,,,|,,h,,|_____|#####",
        "|Dh,,P|,hLh,|__k__|#####",
        "|,,k,,|,hLh,|_____|#####",
        "|,,,,,+,kh,,|_____|#####",
        "|,|||||~,,,u|__k__|#####",
        "|,+k,B|K,,,u:_____|#####",
        "|,|d,B|COC,u|_____|#####",
        "|,||||||||+||__k__|#####",
        "|,+k,B|t,k,K|_____|#####",
        "|}|d,B|WAv,s|_____|#####",
        "|;|||||||||:|||+||||||||",
        "|__|_____|__|_______=__|",
        "|__|_____||+|___k___*__|",
        "|__|___k____|_______=__|",
        "|__|________+___>___=__|",
        "|__+___k____|___k___=__|",
        "||||||||||||||||||||||||"
      ],
      "palettes": [ "whately_bunker", "whately_empty_bunker_items" ],
      "place_nested": [
        { "chunks": [ "lmoe3_storage_11x11" ], "x": 13, "y": 6 },
        { "chunks": [ "lmoe3_tankroom_11x11" ], "x": 1, "y": 18 },
        { "chunks": [ "lmoe3_crafting_11x11" ], "x": 13, "y": 18 }
      ],
      "place_npcs": [ { "class": "nicodemus_whately", "x": 9, "y": 7 } ]
    }
  },
  {
    "type": "palette",
    "id": "whately_bunker",
    "terrain": {
      "#": "t_rock",
      "*": "t_chaingate_c",
      "+": "t_door_metal_c",
      "-": "t_scrap_wall",
      "_": "t_metal_floor",
      ",": "t_carpet_metal_yellow",
      "1": "t_column",
      "<": "t_stairs_up",
      ">": "t_stairs_down",
      "=": "t_chainfence",
      "|": "t_wall_metal",
      ":": "t_secretdoor_metal_c",
      ";": "t_secretdoor_metal_o",
      "~": "t_water_pump",
      "t": "t_metal_floor",
      "k": "t_metal_floor_olight"
    },
    "furniture": {
      "A": "f_air_filter",
      "a": "f_standing_tank",
      "b": "f_bookcase",
      "B": "f_bed",
      "c": "f_counter",
      "C": "f_cupboard",
      "d": "f_dresser",
      "D": "f_desk",
      "e": "f_ergometer",
      "E": "f_exercise",
      "F": "f_fridge",
      "f": "f_sofa",
      "G": [
        [ "f_generator_broken", 25 ],
        [ "f_portable_generator", 5 ],
        [ "f_diesel_generator", 5 ],
        [ "f_military_generator", 5 ],
        [ "f_12000_gasoline_generator", 5 ]
      ],
      "h": "f_chair",
      "H": "f_water_heater",
      "K": "f_sink",
      "l": "f_utility_shelf",
      "L": "f_metal_table",
      "O": "f_oven",
      "P": "f_punching_bag",
      "r": "f_rack",
      "R": "f_rack",
      "s": "f_shower",
      "S": "f_woodstove",
      "T": "f_metal_table",
      "U": "f_utility_shelf",
      "u": "f_utility_shelf",
      "v": "f_utility_shelf",
      "V": "f_utility_shelf",
      "w": "f_wardrobe",
      "W": "f_water_purifier",
      "Y": "f_rack_coat",
      "^": "f_rubble",
      "&": "f_trashcan",
      "{": "f_rack",
      "}": "f_bookcase"
    },
    "items": { "t": { "item": "SUS_toilet", "chance": 50 } },
    "toilets": { "t": {  } }
  },
  {
    "type": "palette",
    "id": "whately_empty_bunker_items",
    "items": {
      "b": [ { "item": "manuals", "chance": 60 }, { "item": "textbooks", "chance": 40 } ],
      "B": { "item": "bed", "chance": 70, "repeat": [ 1, 2 ] },
      "c": { "item": "hardware", "chance": 50 },
      "C": [ { "item": "dining", "chance": 30, "repeat": [ 1, 3 ] }, { "item": "SUS_oven", "chance": 20 } ],
      "d": { "item": "allclothes", "chance": 80, "repeat": [ 2, 4 ] },
      "D": { "item": "SUS_office_desk", "chance": 70 },
      "l": { "item": "hardware", "chance": 50, "repeat": [ 1, 2 ] },
      "L": { "item": "dining", "chance": 30 },
      "r": { "item": "stash_wood", "chance": 85 },
      "R": { "item": "hardware", "chance": 80 },
      "S": { "item": "SUS_oven", "chance": 80 },
      "T": { "item": "tools_common", "chance": 60, "repeat": [ 1, 2 ] },
      "U": { "item": "gear_survival", "chance": 20, "repeat": [ 3, 5 ] },
      "u": [ { "item": "cannedfood", "chance": 20, "repeat": [ 1, 5 ] }, { "item": "pasta", "chance": 10, "repeat": [ 1, 3 ] } ],
      "v": { "item": "softdrugs", "chance": 50 },
      "V": { "item": "bags", "chance": 30 },
      "w": { "item": "allclothes", "chance": 80, "repeat": [ 2, 4 ] },
      "Y": [ { "item": "jackets", "chance": 15 }, { "item": "hatstore_hats", "chance": 15 }, { "item": "winter", "chance": 10 } ],
      "^": { "item": "shelter", "chance": 30 },
      "{": [ { "item": "lmoe_guns", "chance": 80 }, { "item": "ammo_common_boxed", "chance": 5, "repeat": [ 3, 7 ] } ],
      "}": { "item": "novels", "chance": 90, "repeat": [ 3, 8 ] }
    }
  },
  {
    "type": "palette",
    "id": "whately_bunker_ext",
    "terrain": {
      " ": [ [ "t_region_groundcover", 60 ], [ "t_region_shrub", 2 ], "t_region_tree" ],
      "_": [ "t_region_groundcover", [ "t_region_groundcover_barren", 9 ] ],
      "#": "t_rock",
      "$": [ "t_region_tree_fruit", "t_region_tree_nut", "t_region_shrub_fruit", "t_region_shrub" ],
      "S": [
        [ "t_region_groundcover", 5 ],
        "t_region_tree_fruit",
        "t_region_tree_nut",
        "t_region_tree",
        "t_region_shrub_fruit",
        "t_region_shrub"
      ],
      "v": "t_open_air",
      "+": "t_door_metal_c",
      ".": "t_rock_floor",
      ">": "t_stairs_down",
      "<": "t_stairs_up",
      ")": "t_slope_up",
      "(": "t_slope_down",
      "T": [ "t_region_tree_fruit", "t_region_tree_nut" ],
      "X": "t_grass_dead"
    },
    "items": { " ": [ { "item": "forest", "chance": 1 }, { "item": "field", "chance": 2 } ] },
    "monster": { "X": { "monster": "mon_migoturret_whately", "friendly": true } }
  }
]
