From 00a07a9cf169be42684995afb3a1c7c5ad5f035e Mon Sep 17 00:00:00 2001 From: YeOldeMiller <36291373+YeOldeMiller@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:30:35 +0300 Subject: [PATCH] fix: privacy fence refunding incorrect materials on deconstruct (#3479) * Fix privacy fence refunding hinges on deconstruct * style(autofix.ci): automated formatting * Remove randomness from privacy fence gate deconstruction * Correct amount of planks refunded on privacy fence deconstruction --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../furniture_and_terrain/terrain-fences-gates.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/data/json/furniture_and_terrain/terrain-fences-gates.json b/data/json/furniture_and_terrain/terrain-fences-gates.json index be9459c21c65..817f83cd73a8 100644 --- a/data/json/furniture_and_terrain/terrain-fences-gates.json +++ b/data/json/furniture_and_terrain/terrain-fences-gates.json @@ -776,17 +776,14 @@ "examine_action": "chainfence", "flags": [ "NOITEM", "CLIMBABLE", "PERMEABLE", "AUTO_WALL_SYMBOL", "FLAMMABLE_ASH", "THIN_OBSTACLE", "BURROWABLE" ], "connects_to": "WOODFENCE", - "deconstruct": { - "ter_set": "t_fence_post", - "items": [ { "item": "2x4", "count": 10 }, { "item": "nail", "charges": 20 }, { "item": "hinge", "count": [ 1, 2 ] } ] - }, + "deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "2x4", "count": 8 }, { "item": "nail", "charges": 20 } ] }, "bash": { "str_min": 5, "str_max": 12, "sound": "whump!", "sound_fail": "whack!", "ter_set": "t_fence_post", - "items": [ { "item": "2x4", "count": [ 4, 10 ] }, { "item": "hinge", "count": [ 1, 2 ] } ] + "items": [ { "item": "2x4", "count": [ 4, 10 ] } ] } }, { @@ -808,7 +805,7 @@ { "item": "2x4", "count": 8 }, { "item": "pointy_stick", "count": 2 }, { "item": "nail", "charges": 20 }, - { "item": "hinge", "count": [ 1, 2 ] } + { "item": "hinge", "count": 2 } ] }, "bash": { @@ -845,7 +842,7 @@ { "item": "2x4", "count": 8 }, { "item": "pointy_stick", "count": 2 }, { "item": "nail", "charges": 20 }, - { "item": "hinge", "count": [ 1, 2 ] } + { "item": "hinge", "count": 2 } ] } },