From 2dfd19c8bd55dfa30cacecc8af3cf2b5f27ae565 Mon Sep 17 00:00:00 2001 From: "Clarence \"Sparr\" Risher" Date: Mon, 25 Aug 2025 13:16:18 -0400 Subject: [PATCH] Allow deconstruct guardrails --- .../terrain-fences-gates.json | 73 +++++-------------- 1 file changed, 17 insertions(+), 56 deletions(-) diff --git a/data/json/furniture_and_terrain/terrain-fences-gates.json b/data/json/furniture_and_terrain/terrain-fences-gates.json index 64999b00f41d5..bddb2b27e7d76 100644 --- a/data/json/furniture_and_terrain/terrain-fences-gates.json +++ b/data/json/furniture_and_terrain/terrain-fences-gates.json @@ -1327,12 +1327,11 @@ }, { "type": "terrain", - "id": "t_guardrail_hw_air", + "abstract": "t_abstract_guardrail", "name": "guard rail", "description": "A section of metal railing, put in place to prevent people from falling or taking the easy way out.", "symbol": "#", "color": "light_gray", - "looks_like": "t_guardrail_bg_dp", "move_cost": 3, "flags": [ "TRANSPARENT", @@ -1346,73 +1345,35 @@ "BURROWABLE", "PERMEABLE" ], + "looks_like": "t_guardrail", + "deconstruct": { "ter_set": "t_pavement", "items": [ { "item": "pipe", "count": 2 }, { "item": "scrap", "count": [ 5, 6 ] } ] }, "bash": { "str_min": 8, "str_max": 150, "sound": "crunch!", "sound_fail": "clang!", - "ter_set": "t_pavement_hw_air", + "ter_set": "t_pavement", "items": [ { "item": "pipe", "count": [ 1, 2 ] }, { "item": "scrap", "count": [ 3, 6 ] } ] } }, { "type": "terrain", - "id": "t_guardrail_bg_dp", - "name": "guard rail", - "description": "A section of metal railing, put in place to prevent people from falling or taking the easy way out.", - "symbol": "#", - "color": "light_gray", - "move_cost": 3, - "flags": [ - "TRANSPARENT", - "NOITEM", - "REDUCE_SCENT", - "MOUNTABLE", - "SHORT", - "THIN_OBSTACLE", - "ROAD", - "CLIMBABLE", - "BURROWABLE", - "PERMEABLE" - ], - "bash": { - "str_min": 8, - "str_max": 150, - "sound": "crunch!", - "sound_fail": "clang!", - "ter_set": "t_pavement_bg_dp", - "items": [ { "item": "pipe", "count": [ 1, 2 ] }, { "item": "scrap", "count": [ 3, 6 ] } ] - } + "id": "t_guardrail", + "copy-from": "t_abstract_guardrail" }, { "type": "terrain", - "id": "t_guardrail", - "name": "guard rail", - "description": "A section of metal railing, put in place to prevent people from falling or taking the easy way out.", - "symbol": "#", - "color": "light_gray", - "move_cost": 3, - "flags": [ - "TRANSPARENT", - "NOITEM", - "REDUCE_SCENT", - "MOUNTABLE", - "SHORT", - "THIN_OBSTACLE", - "ROAD", - "CLIMBABLE", - "BURROWABLE", - "PERMEABLE" - ], - "looks_like": "t_guardrail_bg_dp", - "bash": { - "str_min": 8, - "str_max": 150, - "sound": "crunch!", - "sound_fail": "clang!", - "ter_set": "t_pavement", - "items": [ { "item": "pipe", "count": [ 1, 2 ] }, { "item": "scrap", "count": [ 3, 6 ] } ] - } + "id": "t_guardrail_hw_air", + "copy-from": "t_abstract_guardrail", + "deconstruct": { "ter_set": "t_pavement_hw_air" }, + "bash": { "ter_set": "t_pavement_hw_air" } + }, + { + "type": "terrain", + "id": "t_guardrail_bg_dp", + "copy-from": "t_abstract_guardrail", + "deconstruct": { "ter_set": "t_pavement_bg_dp" }, + "bash": { "ter_set": "t_pavement_bg_dp" } }, { "type": "terrain",