mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user