Adds the Ability to Weld Crates Down for Metal (#31633)

* initial commit

* Update code/game/objects/structures/crates_lockers/crates.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com>

---------

Signed-off-by: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Hayden Redacted
2026-03-10 21:55:03 +00:00
committed by GitHub
co-authored by DGamerL
parent 64022fd037
commit d4aac8c0b5
@@ -125,8 +125,17 @@
rigged = FALSE
return TRUE
/obj/structure/closet/crate/welder_act()
return
/obj/structure/closet/crate/welder_act(mob/user, obj/item/I)
. = TRUE
if(!opened && user.loc == src)
to_chat(user, SPAN_WARNING("You can't weld [src] from inside!"))
return
if(!I.tool_use_check(user, 0) || !opened)
return
WELDER_ATTEMPT_SLICING_MESSAGE
if(I.use_tool(src, user, 40, volume = I.tool_volume))
WELDER_SLICING_SUCCESS_MESSAGE
deconstruct(TRUE)
/obj/structure/closet/crate/attack_hand(mob/user)
if(manifest)