Skip to content

Commit

Permalink
fix: privacy fence refunding incorrect materials on deconstruct (#3479)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
YeOldeMiller and autofix-ci[bot] authored Oct 23, 2023
1 parent bf81a6d commit 00a07a9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions data/json/furniture_and_terrain/terrain-fences-gates.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] } ]
}
},
{
Expand All @@ -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": {
Expand Down Expand Up @@ -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 }
]
}
},
Expand Down

0 comments on commit 00a07a9

Please sign in to comment.