Stops you getting into a mech if you have stuff in your hands at all. (#91046)

## About The Pull Request

Makes it so that it is impossible to enter a mech if your hands are
full.

## Why It's Good For The Game

This can result in some...very unintended behavior should somehow you
cannot be forced to drop items in your hands.

## Changelog
🆑
fix: You must have both your hands empty before entering a mech. (But
items which replace your hand, like the light later or the hand of god,
won't prevent you from getting in)
/🆑
This commit is contained in:
necromanceranne
2025-05-15 16:10:51 -04:00
committed by Roxy
parent ae73789bb3
commit ec7ef43e16
2 changed files with 7 additions and 1 deletions
@@ -62,7 +62,7 @@
activated()
/obj/item/rod_of_asclepius/proc/activated()
item_flags = DROPDEL
item_flags = DROPDEL | ABSTRACT
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
activated = TRUE
update_appearance()
@@ -33,6 +33,12 @@
to_chat(M, span_warning("You can't enter the exosuit with other creatures attached to you!"))
log_message("Permission denied (Attached mobs).", LOG_MECHA)
return FALSE
for(var/obj/item/thing in M.held_items)
if(!(thing.item_flags & (ABSTRACT|HAND_ITEM)))
to_chat(M, span_warning("You can't enter the exosuit while your hands are occupied!"))
return FALSE
return ..()
///proc called when a new non-mmi mob enters this mech