From 3f50a4b3b1b4da7f02fafebf9ad705b2b5935bfd Mon Sep 17 00:00:00 2001 From: KubeRoot Date: Thu, 5 Aug 2021 10:38:53 +0200 Subject: [PATCH] Fix custom wintercoat hoods not getting GAGS colors (#60691) Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> --- code/modules/clothing/suits/wintercoats.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/clothing/suits/wintercoats.dm b/code/modules/clothing/suits/wintercoats.dm index fefc6b3fbaf..ce2649f196b 100644 --- a/code/modules/clothing/suits/wintercoats.dm +++ b/code/modules/clothing/suits/wintercoats.dm @@ -429,6 +429,15 @@ hoodtype = /obj/item/clothing/head/hooded/winterhood/custom flags_1 = IS_PLAYER_COLORABLE_1 +//In case colors are changed after initialization +/obj/item/clothing/suit/hooded/wintercoat/custom/set_greyscale(list/colors, new_config, new_worn_config, new_inhand_left, new_inhand_right) + . = ..() + if(hood) + var/list/coat_colors = SSgreyscale.ParseColorString(greyscale_colors) + var/list/new_coat_colors = coat_colors.Copy(1,4) + hood.set_greyscale(new_coat_colors) //Adopt the suit's grayscale coloring for visual clarity. + +//But also keep old method in case the hood is (re-)created later /obj/item/clothing/suit/hooded/wintercoat/custom/MakeHood() . = ..() var/list/coat_colors = (SSgreyscale.ParseColorString(greyscale_colors))