No-Handed humans can no longer strip people (#12414)

This commit is contained in:
Shadow-Quill
2021-09-02 12:52:45 -03:00
committed by GitHub
parent 995875d9e6
commit 7aefac9692
2 changed files with 50 additions and 0 deletions
@@ -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)