From f01db6f0446087ecf327015b38e0d33c09823cfb Mon Sep 17 00:00:00 2001 From: Mickyan Date: Mon, 9 Mar 2020 20:19:44 +0100 Subject: [PATCH] wig mimicry --- code/modules/clothing/head/misc_special.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index 52bb2904252..63de0947574 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -261,6 +261,14 @@ add_atom_colour(newcolor, FIXED_COLOUR_PRIORITY) update_icon() +/obj/item/clothing/head/wig/afterattack(mob/living/carbon/human/target, mob/user) + . = ..() + if (istype(target) && (HAIR in target.dna.species.species_traits) && target.hairstyle != "Bald") + to_chat(user, "You adjust the [src] to look just like [target.name]'s [target.hairstyle].") + add_atom_colour("#[target.hair_color]", FIXED_COLOUR_PRIORITY) + hairstyle = target.hairstyle + update_icon() + /obj/item/clothing/head/wig/random/Initialize(mapload) hairstyle = pick(GLOB.hairstyles_list - "Bald") //Don't want invisible wig add_atom_colour("#[random_short_color()]", FIXED_COLOUR_PRIORITY)