Revert "fixes accessories not showing (#17253)" (#17254)

This reverts commit f577c148a2.
This commit is contained in:
Cameron Lennox
2025-03-02 18:19:51 -05:00
committed by GitHub
parent bd44a1af67
commit efe9dd1dcf
@@ -26,7 +26,7 @@
on_removed()
return ..()
/obj/item/clothing/accessory/proc/get_inv_overlay() //Note: This is currently working. Good.
/obj/item/clothing/accessory/proc/get_inv_overlay()
if(!inv_overlay)
var/tmp_icon_state = "[overlay_state? "[overlay_state]" : "[icon_state]"]"
if(icon_override)
@@ -44,10 +44,14 @@
if(!istype(loc,/obj/item/clothing/)) //don't need special handling if it's worn as normal item.
return
var/tmp_icon_state = "[overlay_state? "[overlay_state]" : "[icon_state]"]"
var/mob/living/carbon/human/H
if(ishuman(has_suit.loc))
H = has_suit.loc
if(!H || !ishuman(H))
wearer = WEAKREF(has_suit.loc)
else
wearer = null
wearer?.resolve()
var/mob/living/carbon/human/H = wearer
if(!ishuman(H))
return
if(istype(loc,/obj/item/clothing/under))