From 02af2fdba85aa45271a0342c367eeac22dd0bc9d Mon Sep 17 00:00:00 2001 From: Lucy Date: Fri, 4 Apr 2025 20:33:58 -0400 Subject: [PATCH] Fix edge-cases where clothing icons wouldn't update when equipped (#90396) --- code/game/objects/items.dm | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 36ebbc4823c..e439acf4382 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -98,7 +98,7 @@ ///How large is the object, used for stuff like whether it can fit in backpacks or not var/w_class = WEIGHT_CLASS_NORMAL ///This is used to determine on which slots an item can fit. - var/slot_flags = 0 + var/slot_flags = NONE pass_flags = PASSTABLE pressure_resistance = 4 /// This var exists as a weird proxy "owner" ref @@ -939,31 +939,7 @@ if(!ismob(loc)) return var/mob/owner = loc - var/flags = slot_flags - if(flags & ITEM_SLOT_OCLOTHING) - owner.update_worn_oversuit() - if(flags & ITEM_SLOT_ICLOTHING) - owner.update_worn_undersuit() - if(flags & ITEM_SLOT_GLOVES) - owner.update_worn_gloves() - if(flags & ITEM_SLOT_EYES) - owner.update_worn_glasses() - if(flags & ITEM_SLOT_EARS) - owner.update_worn_ears() - if(flags & ITEM_SLOT_MASK) - owner.update_worn_mask() - if(flags & ITEM_SLOT_HEAD) - owner.update_worn_head() - if(flags & ITEM_SLOT_FEET) - owner.update_worn_shoes() - if(flags & ITEM_SLOT_ID) - owner.update_worn_id() - if(flags & ITEM_SLOT_BELT) - owner.update_worn_belt() - if(flags & ITEM_SLOT_BACK) - owner.update_worn_back() - if(flags & ITEM_SLOT_NECK) - owner.update_worn_neck() + owner.update_clothing(slot_flags | owner.get_slot_by_item(src)) ///Returns the temperature of src. If you want to know if an item is hot use this proc. /obj/item/proc/get_temperature()