Put disabled welders in open closets. (#31995)

* Put disabled welders in open closets.

* Include crates.

* Apply suggestions from CRUNCH review.

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
Alan
2026-05-17 14:42:20 -04:00
committed by GitHub
parent 1a725b9708
commit a1b61fa2b6
2 changed files with 4 additions and 0 deletions
@@ -358,6 +358,8 @@
if(!opened && user.loc == src)
to_chat(user, SPAN_WARNING("You can't weld [src] from inside!"))
return
if(!I.tool_enabled && opened) // If the welder isn't on, just put it in the open closet.
return FALSE
if(!I.tool_use_check(user, 0))
return
if(opened)
@@ -130,6 +130,8 @@
if(!opened && user.loc == src)
to_chat(user, SPAN_WARNING("You can't weld [src] from inside!"))
return
if(!I.tool_enabled && opened) // If the welder isn't on, just put it in the open closet.
return FALSE
if(!I.tool_use_check(user, 0) || !opened)
return
WELDER_ATTEMPT_SLICING_MESSAGE