From 96d0025aad002485647a5166b320a10624d370da Mon Sep 17 00:00:00 2001 From: Pooble <90473506+poobsie@users.noreply.github.com> Date: Thu, 27 Nov 2025 23:06:32 -0500 Subject: [PATCH] IPCs keep their ID and pocket items when removing their jumpsuit (#31059) * ipcs don't drop their pocket items when jumpsuit is removed * ipcs don't drop their pocket items when jumpsuit is removed * linter --- .../mob/living/carbon/human/human_inventory.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_inventory.dm b/code/modules/mob/living/carbon/human/human_inventory.dm index 039a5487485..1d0a9c97c56 100644 --- a/code/modules/mob/living/carbon/human/human_inventory.dm +++ b/code/modules/mob/living/carbon/human/human_inventory.dm @@ -87,12 +87,14 @@ else if(target == w_uniform) //Again, makes sense for pockets to drop. if(drop_inventory) - if(r_store) - drop_item_to_ground(r_store, force = TRUE) - if(l_store) - drop_item_to_ground(l_store, force = TRUE) - if(wear_id) - drop_item_to_ground(wear_id, force = TRUE) + // IPCs have pockets on their bodies, let's assume they stored their stuff there. + if(!ismachineperson(src)) + if(r_store) + drop_item_to_ground(r_store, force = TRUE) + if(l_store) + drop_item_to_ground(l_store, force = TRUE) + if(wear_id) + drop_item_to_ground(wear_id, force = TRUE) if(belt && !(belt.flags_2 & ALLOW_BELT_NO_JUMPSUIT_2)) drop_item_to_ground(belt, force = TRUE) w_uniform = null