[MIRROR] [No GBP] fixes railing deconstruction giving free iron [MDB IGNORE] (#23387)

* [No GBP] fixes railing deconstruction giving free iron (#77953)

whoops

## About The Pull Request

i forgot to set the deconstruction values in
https://github.com/tgstation/tgstation/pull/77894
this fixes my mistake

closes https://github.com/tgstation/tgstation/issues/77952

## Changelog

🆑
fix: Railings no longer give more metal than they take
/🆑

* [No GBP] fixes railing deconstruction giving free iron

---------

Co-authored-by: iwishforducks <65363339+iwishforducks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-28 14:31:53 -07:00
committed by GitHub
co-authored by iwishforducks
parent 2072e969a9
commit ee88c5bcd5
+6 -2
View File
@@ -90,8 +90,12 @@
/obj/structure/railing/deconstruct(disassembled)
if(!(flags_1 & NODECONSTRUCT_1))
var/obj/item/stack/rods/rod = new /obj/item/stack/rods(drop_location(), 6)
transfer_fingerprints_to(rod)
if (istype(src,/obj/structure/railing/corner)) // Corner railings only cost 1 rod
var/obj/item/stack/rods/rod = new /obj/item/stack/rods(drop_location(), 1)
transfer_fingerprints_to(rod)
else
var/obj/item/stack/rods/rod = new /obj/item/stack/rods(drop_location(), 2)
transfer_fingerprints_to(rod)
return ..()
///Implements behaviour that makes it possible to unanchor the railing.