mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user