mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 11:40:07 +01:00
Fix edge-cases where clothing icons wouldn't update when equipped (#90396)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user