This commit is contained in:
SandPoot
2024-05-05 20:02:50 -03:00
parent 601e3c2a2a
commit e706b328ca
+7 -6
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.\""