[
  {
    "type": "terrain",
    "id": "t_secretdoor_wall_c",
    "name": "wall",
    "description": "A faux wall positioned and joined seamlessly with the wall, this wall looks pretty normal.",
    "symbol": "LINE_OXOX",
    "color": "light_gray",
    "looks_like": "t_wall",
    "move_cost": 0,
    "coverage": 100,
    "roof": "t_flat_roof",
    "flags": [ "FLAMMABLE", "NOITEM", "DOOR", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
    "open": "t_secretdoor_wall_o",
    "bash": {
      "str_min": 30,
      "str_max": 210,
      "sound": "crash!",
      "sound_fail": "whump!",
      "ter_set": "t_mdoor_frame",
      "items": "wall_bash_results"
    }
  },
  {
    "type": "terrain",
    "id": "t_secretdoor_wall_o",
    "name": "open secret door",
    "looks_like": "t_thconc_floor",
    "description": "This apparently normal segment of wall has opened to reveal a secret passage.",
    "symbol": "'",
    "color": "light_gray",
    "move_cost": 2,
    "flags": [ "TRANSPARENT", "FLAT", "CONNECT_WITH_WALL", "ROAD" ],
    "close": "t_secretdoor_wall_c",
    "bash": {
      "str_min": 30,
      "str_max": 210,
      "sound": "crash!",
      "sound_fail": "whump!",
      "ter_set": "t_mdoor_frame",
      "items": "wall_bash_results"
    }
  },
  {
    "type": "terrain",
    "id": "t_door_elocked",
    "name": "closed wood door with an electronic lock",
    "description": "A standard wooden door that doesn't look very resilient.  It'd probably burn easily, too.  This one has a deadbolt electronic lock, so it's likely locked.  You could pry it open or guess the code; if you were able to deduce it, or unlock the deadbolt from the inside.",
    "symbol": "+",
    "looks_like": "t_door_c",
    "color": "brown",
    "move_cost": 0,
    "coverage": 95,
    "roof": "t_wood_roof",
    "flags": [
      "FLAMMABLE_ASH",
      "NOITEM",
      "OPENCLOSE_INSIDE",
      "REDUCE_SCENT",
      "CONNECT_WITH_WALL",
      "BARRICADABLE_DOOR",
      "LOCKED",
      "BLOCK_WIND",
      "SUPPORTS_ROOF"
    ],
    "examine_action": {
      "type": "effect_on_condition",
      "effect_on_conditions": [
        {
          "id": "eoc_unlock_elock",
          "condition": { "roll_contested": { "math": [ "u_skill('deduction')" ] }, "difficulty": 12 },
          "effect": [
            { "u_location_variable": { "global_val": "door_transform" }, "min_radius": 1, "max_radius": 2 },
            {
              "u_transform_radius": 2,
              "ter_furn_transform": "unlock_elock",
              "target_var": { "global_val": "door_transform" }
            },
            {
              "u_transform_radius": 2,
              "ter_furn_transform": "unlock_elock",
              "target_var": { "global_val": "door_transform" },
              "time_in_future": [ "2 seconds", "10 seconds" ]
            },
            { "u_message": "The numpad glows green and emits a happy chirp as the door unlocks.", "popup": true }
          ],
          "false_effect": { "u_message": "The numpad flashes while beeping angrily at you.", "popup": true }
        }
      ]
    },
    "open": "t_door_o",
    "bash": {
      "str_min": 8,
      "str_max": 80,
      "str_min_blocked": 15,
      "str_max_blocked": 100,
      "sound": "smash!",
      "sound_fail": "whump!",
      "ter_set": "t_door_b",
      "items": [
        { "item": "2x4", "prob": 25 },
        { "item": "wood_panel", "prob": 10 },
        { "item": "splinter", "count": [ 1, 2 ] },
        { "item": "nail", "charges": [ 0, 2 ] }
      ]
    },
    "prying": {
      "result": "t_door_o",
      "message": "You pry open the door.",
      "prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "failure": "You pry, but can't pry open the door." }
    },
    "shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
  },
  {
    "type": "terrain",
    "id": "t_door_elocked_peep",
    "name": "closed wood door",
    "description": "A regular door made of ordinary wood, except this one has a peephole.  If you examined it more closely, you'd be able to peek through the hole.  This one has a deadbolt numpad, so it's likely locked.  You could pry it open or possibly guess the code; if you were able to deduce it, or unlock the deadbolt from the inside.",
    "symbol": "+",
    "looks_like": "t_door_c_peep",
    "color": "brown",
    "move_cost": 0,
    "coverage": 95,
    "roof": "t_wood_roof",
    "flags": [
      "FLAMMABLE_ASH",
      "NOITEM",
      "OPENCLOSE_INSIDE",
      "REDUCE_SCENT",
      "CONNECT_WITH_WALL",
      "BARRICADABLE_DOOR",
      "LOCKED",
      "BLOCK_WIND",
      "SUPPORTS_ROOF"
    ],
    "open": "t_door_o_peep",
    "examine_action": { "type": "effect_on_condition", "effect_on_conditions": [ "eoc_unlock_elock" ] },
    "bash": {
      "str_min": 8,
      "str_max": 80,
      "str_min_blocked": 15,
      "str_max_blocked": 100,
      "sound": "smash!",
      "sound_fail": "whump!",
      "ter_set": "t_door_b_peep",
      "items": [
        { "item": "peephole", "prob": 75 },
        { "item": "2x4", "prob": 25 },
        { "item": "splinter", "count": [ 1, 2 ] },
        { "item": "nail", "charges": [ 0, 2 ] }
      ]
    },
    "prying": {
      "result": "t_door_o_peep",
      "message": "You pry open the door.",
      "prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "failure": "You pry, but can't pry open the door." }
    },
    "shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
  },
  {
    "type": "terrain",
    "id": "t_door_elocked_alarm",
    "name": "closed wood door",
    "description": "A standard wooden door that doesn't look very resilient.  It'd probably burn easily, too.  This one has an electronic keypad, so it's likely locked.  You could pry it open or try to guess the code; if you were able to deduce it.",
    "symbol": "+",
    "looks_like": "t_door_locked",
    "color": "brown",
    "move_cost": 0,
    "coverage": 95,
    "roof": "t_wood_roof",
    "flags": [
      "FLAMMABLE_ASH",
      "ALARMED",
      "NOITEM",
      "REDUCE_SCENT",
      "CONNECT_WITH_WALL",
      "BARRICADABLE_DOOR",
      "LOCKED",
      "BLOCK_WIND",
      "SUPPORTS_ROOF"
    ],
    "examine_action": { "type": "effect_on_condition", "effect_on_conditions": [ "eoc_unlock_elock" ] },
    "bash": {
      "str_min": 8,
      "str_max": 80,
      "str_min_blocked": 15,
      "str_max_blocked": 100,
      "sound": "smash!",
      "sound_fail": "whump!",
      "ter_set": "t_door_b",
      "items": [
        { "item": "2x4", "prob": 25 },
        { "item": "wood_panel", "prob": 10 },
        { "item": "splinter", "count": [ 1, 2 ] },
        { "item": "nail", "charges": [ 0, 2 ] }
      ]
    },
    "prying": {
      "result": "t_door_o",
      "message": "You pry open the door.",
      "prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "alarm": true, "failure": "You pry, but can't pry open the door." }
    },
    "shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
  },
  {
    "type": "terrain",
    "id": "t_door_metal_elocked",
    "name": "electronic locked metal door",
    "description": "An extremely resilient door made of assorted steel, carved and pounded into shape.  It is locked by an electronic keypad.  You could try to guess the code.",
    "symbol": "+",
    "looks_like": "t_door_metal_c",
    "color": "cyan",
    "move_cost": 0,
    "coverage": 95,
    "roof": "t_metal_roof",
    "flags": [ "NOITEM", "DOOR", "CONNECT_WITH_WALL", "LOCKED", "SUPPORTS_ROOF" ],
    "oxytorch": {
      "result": "t_mdoor_frame",
      "duration": "14 seconds",
      "byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
    },
    "examine_action": { "type": "effect_on_condition", "effect_on_conditions": [ "eoc_unlock_elock" ] },
    "bash": {
      "str_min": 80,
      "str_max": 250,
      "sound": "metal screeching!",
      "sound_fail": "clang!",
      "ter_set": "t_mdoor_lab_frame",
      "items": [
        { "item": "scrap", "count": [ 12, 24 ] },
        { "item": "steel_plate", "prob": 75 },
        { "item": "hinge", "count": [ 1, 3 ] }
      ]
    }
  }
]
