Merge pull request #16085 from SandPoot/fix-hat-runtime

Kitty ears no longer runtime
This commit is contained in:
deathride58
2024-05-06 13:48:30 -04:00
committed by GitHub

View File

@@ -149,15 +149,16 @@
beepsky_fashion = /datum/beepsky_fashion/cat
/obj/item/clothing/head/kitty/equipped(mob/living/carbon/human/user, slot)
if(ishuman(user) && slot == ITEM_SLOT_HEAD)
update_icon(user)
user.update_inv_head() //Color might have been changed by update_icon.
..()
if(ishuman(user) && slot == ITEM_SLOT_HEAD)
update_icon()
user.update_inv_head() //Color might have been changed by update_icon.
/obj/item/clothing/head/kitty/update_icon(mob/living/carbon/human/user)
/obj/item/clothing/head/kitty/update_icon()
. = ..()
if(ishuman(user))
add_atom_colour("#[user.hair_color]", FIXED_COLOUR_PRIORITY)
if(ishuman(loc))
var/mob/living/carbon/human/wearer = loc
add_atom_colour("#[wearer.hair_color]", FIXED_COLOUR_PRIORITY)
/obj/item/clothing/head/kitty/genuine
desc = "A pair of kitty ears. A tag on the inside says \"Hand made from real cats.\""