Fixes Kathira's custom item (#21861)

I accidentally broke it when I implemented Tulkir's custom dagger, due
to how the icon states are reset in accessories now. So now I just
handle that part earlier instead so it works again.
This commit is contained in:
Casper3667
2026-02-14 08:57:40 +00:00
committed by GitHub
parent 6650b9f745
commit 4ce6498e7d
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -2124,13 +2124,13 @@ All custom items with worn sprites must follow the contained sprite system: http
/obj/item/clothing/accessory/poncho/tajarancloak/fluff/kathira_cloak/update_icon(var/hooded = FALSE)
var/obj/item/clothing/accessory/poncho/tajarancloak/fluff/kathira_cloak/K = get_accessory(/obj/item/clothing/accessory/poncho/tajarancloak/fluff/kathira_cloak)
K.icon_state = "[K.changed ? K.style : initial(K.icon_state)]"
SEND_SIGNAL(K, COMSIG_ITEM_STATE_CHECK, args)
. = ..()
K.icon_state = "[K.changed ? K.style : initial(K.icon_state)]"
K.item_state = "[K.icon_state][hooded ? "_up" : ""]"
K.name = "[K.changed ? K.name2 : initial(K.name)]"
K.desc = "[K.changed ? K.desc2 : initial(K.desc)]"
K.accessory_mob_overlay = null
. = ..()
SEND_SIGNAL(K, COMSIG_ITEM_ICON_UPDATE)
if(usr)
usr.update_inv_w_uniform()