From 364a257cd36b49f25b6d7f1f8028fb295175a0c9 Mon Sep 17 00:00:00 2001 From: Krausus Date: Sat, 3 Sep 2016 17:55:54 -0400 Subject: [PATCH] Fixes species restrictions on non-equipment slots --- code/modules/clothing/clothing.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index cb52efb2a24..e2acbed5f66 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -31,10 +31,14 @@ //BS12: Species-restricted clothing check. /obj/item/clothing/mob_can_equip(M as mob, slot) - //if we can equip the item anyway, don't bother with species_restricted (aslo cuts down on spam) + //if we can't equip the item anyway, don't bother with species_restricted (also cuts down on spam) if(!..()) return 0 + // Skip species restriction checks on non-equipment slots + if(slot in list(slot_r_hand, slot_l_hand, slot_in_backpack, slot_l_store, slot_r_store)) + return 1 + if(species_restricted && istype(M,/mob/living/carbon/human)) var/wearable = null