mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
No-Handed humans can no longer strip people (#12414)
This commit is contained in:
@@ -6,6 +6,15 @@
|
||||
user << browse(null, text("window=mob[src.name]"))
|
||||
return FALSE
|
||||
|
||||
if(ishuman(user))
|
||||
// If you're a human and don't have hands, you shouldn't be able to strip someone.
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/l_hand = H.get_organ(BP_L_HAND)
|
||||
var/obj/item/organ/external/r_hand = H.get_organ(BP_R_HAND)
|
||||
if(!(l_hand && l_hand.is_usable()) && !(r_hand && r_hand.is_usable()))
|
||||
to_chat(user, SPAN_WARNING("You can't do that without working hands!"))
|
||||
return FALSE
|
||||
|
||||
var/obj/item/target_slot = get_equipped_item(text2num(slot_to_strip))
|
||||
if(istype(target_slot, /obj/item/clothing/ears/offear))
|
||||
target_slot = (l_ear == target_slot ? r_ear : l_ear)
|
||||
|
||||
Reference in New Issue
Block a user