diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 6ded91a940eb5..1f44dfb2c4f4d 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -251,20 +251,19 @@ update_worn_undersuit() update_worn_oversuit() else if(I == w_uniform) - if(invdrop) - if(r_store && IS_ORGANIC_LIMB(src.get_bodypart(BODY_ZONE_R_LEG))) - dropItemToGround(r_store, TRUE) //Again, makes sense for pockets to drop. - if(l_store && IS_ORGANIC_LIMB(src.get_bodypart(BODY_ZONE_L_LEG))) - dropItemToGround(l_store, TRUE) - if(IS_ORGANIC_LIMB(src.get_bodypart(BODY_ZONE_CHEST))) - if(wear_id) - dropItemToGround(wear_id) - if(belt) - dropItemToGround(belt) w_uniform = null update_suit_sensors() if(!QDELETED(src)) update_worn_undersuit() + if(invdrop) + if(r_store && !can_equip(r_store, ITEM_SLOT_RPOCKET, TRUE, ignore_equipped = TRUE)) + dropItemToGround(r_store, TRUE) //Again, makes sense for pockets to drop. + if(l_store && !can_equip(l_store, ITEM_SLOT_LPOCKET, TRUE, ignore_equipped = TRUE)) + dropItemToGround(l_store, TRUE) + if(wear_id && !can_equip(wear_id, ITEM_SLOT_ID, TRUE, ignore_equipped = TRUE)) + dropItemToGround(wear_id) + if(belt && !can_equip(belt, ITEM_SLOT_BELT, TRUE, ignore_equipped = TRUE)) + dropItemToGround(belt) else if(I == gloves) gloves = null if(!QDELETED(src))