Fix edge-cases where clothing icons wouldn't update when equipped (#90396)

This commit is contained in:
Lucy
2025-04-04 17:33:58 -07:00
committed by GitHub
parent 8b3f84272e
commit 02af2fdba8
+2 -26
View File
@@ -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()