[
  {
    "type": "palette",
    "id": "orc_palette",
    "terrain": {
      "3": "t_door_makeshift_c",
      "1": "t_palisade",
      "!": "t_pit_spiked",
      "-": "t_rock_wall",
      "|": "t_rock_wall",
      "#": "t_dirtfloor_thatchroof",
      "o": "t_dirtfloor_thatchroof",
      "B": "t_dirtfloor_thatchroof",
      "=": "t_dirtfloor_thatchroof",
      "I": "t_rock_wall_half",
      ".": "t_dirt"
    },
    "items": {
      "U": { "item": "orc_village_foodstuffs", "repeat": [ 1, 3 ], "chance": 80 },
      "=": { "item": "orc_village_storage", "chance": 70, "repeat": [ 1, 3 ] }
    },
    "furniture": {
      "t": "f_logstool",
      "o": "f_firering",
      "O": "f_firering",
      "B": "f_straw_bed",
      "=": "f_rack_wood",
      "H": "f_smoking_rack"
    }
  },
  {
    "id": "orc_village_foodstuffs",
    "//": "stuff the orcs 'eat', mostly there for flavor, pun intended",
    "type": "item_group",
    "subtype": "collection",
    "on_overflow": "spill",
    "container-item": "bag_canvas",
    "entries": [
      { "item": "skull_human", "prob": 10 },
      { "item": "human_tallow", "prob": 2 },
      { "item": "bone_human", "prob": 20 },
      { "item": "human_lard", "prob": 15 },
      { "item": "wastebread", "count-max": 8, "prob": 70 },
      { "item": "meat_salted", "count-max": 3, "custom-flags": "CANNIBALISM", "prob": 50 },
      { "item": "meat_smoked", "count-max": 3, "custom-flags": "CANNIBALISM", "prob": 70 }
    ]
  },
  {
    "id": "orc_village_storage",
    "//": "stuff the orcs are storing in their racks, weapons, utils and such",
    "type": "item_group",
    "subtype": "distribution",
    "entries": [
      { "group": "orc_village_foodstuffs", "count-max": 3, "prob": 70 },
      { "item": "spell_scroll_bio_bonespear", "prob": 1 },
      { "item": "arrow_wood_heavy", "count-max": 5, "prob": 40 },
      { "item": "bone_knife", "prob": 40 },
      { "item": "bowl_skull", "prob": 30 },
      { "item": "bowl_wood", "prob": 60 },
      { "item": "skewer_bone", "prob": 20 },
      { "item": "copper_ax", "prob": 10 },
      { "item": "throwing_axe", "count-min": 2, "count-max": 8, "prob": 10 },
      { "item": "spear_wood", "prob": 10 },
      { "item": "spear_copper", "prob": 10 }
    ]
  },
  {
    "type": "mapgen",
    "method": "json",
    "nested_mapgen_id": "human_gore",
    "//": "lore: brutally slaughtered human, only scraps of it remain. the orcs have taken everything they need from it and left the rest there to frighten every human that comes close to their village. can be reused for other purposes, such as humans eaten by animals.",
    "object": {
      "mapgensize": [ 1, 1 ],
      "place_fields": [
        { "field": "fd_blood", "x": 0, "y": 0, "intensity": 2, "age": 0 },
        { "field": "fd_gibs_flesh", "x": 0, "y": 0, "intensity": 3, "age": 0 }
      ],
      "place_item": [ { "item": "skull_human", "x": 0, "y": 0 }, { "item": "bone_human", "amount": [ 5, 13 ], "x": 0, "y": 0 } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "om_terrain": "orc_village",
    "object": {
      "fill_ter": "t_dirt",
      "rows": [
        "!!!111111111111111111111",
        "!XX1...................1",
        "1111....-----...----...1",
        "1.......|===|...|==|...1",
        "1.-----.|###|.|-|##|-|.1",
        "1.|BBB|.......|==####|.1",
        "1.|BoB|.......3###BBB|.1",
        "1.|##=|.......|BoBBoB|.1",
        "1.--3--.......|BBBBBB|.1",
        "1.............|------|.1",
        "1......................1",
        "1......................1",
        "1.........ttt..........1",
        "1.........tOt...|----|.1",
        "1...............|=BBB|.1",
        "1..............U|=BoB|.1",
        "1..............-|=BBB|.1",
        "1..............|=#BBB|.1",
        "1UU............|=#BoB|.1",
        "1U.............|=#BBB|.1",
        "1H.............3###==|.1",
        "1U.11111.I...I.------|.1",
        "1UU1XXX1UI...I.........1",
        "1111!!!111...11111111111"
      ],
      "flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ],
      "palettes": [ "orc_palette" ],
      "nested": { "X": { "chunks": [ [ "human_gore", 9 ], [ "null", 1 ] ] } },
      "place_monsters": [ { "monster": "GROUP_ORC", "x": [ 3, 21 ], "y": [ 4, 19 ], "density": 0.6, "repeat": [ 3, 6 ] } ]
    }
  },
  {
    "type": "overmap_special",
    "id": "orc_village",
    "overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "orc_village_north" } ],
    "locations": [ "wilderness" ],
    "city_distance": [ 20, -5 ],
    "city_sizes": [ 0, 13 ],
    "occurrences": [ 0, 6 ]
  },
  {
    "type": "overmap_terrain",
    "id": [ "orc_village" ],
    "name": "orc village",
    "sym": "o",
    "color": "green",
    "see_cost": 6,
    "flags": [ "RISK_HIGH" ]
  }
]
