From 69342d97ecc385d634173bb5090dfc146f77b138 Mon Sep 17 00:00:00 2001 From: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Date: Wed, 14 Jan 2026 19:34:38 -0300 Subject: [PATCH] Fixes hair dyeing returning a TGUI error (#94862) ## About The Pull Request ``get_hair_gradient_color()`` returns a list if no arguments are specified, which is no good when we just want a singular hex code of whatever we're dyeing. ## Why It's Good For The Game Lets people dye in peace ## Changelog :cl: Hardly fix: Fixed hair dyes returning a TGUI error when trying to dye a hair. /:cl: --- code/game/objects/items/dyespray.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/dyespray.dm b/code/game/objects/items/dyespray.dm index a62a17f4352..7f925a03dd8 100644 --- a/code/game/objects/items/dyespray.dm +++ b/code/game/objects/items/dyespray.dm @@ -57,7 +57,8 @@ if(!user.can_perform_action(src, NEED_DEXTERITY)) return - var/new_grad_color = tgui_color_picker(user, "Choose a secondary hair color:", "Character Preference", human_target.get_hair_gradient_color()) + var/hair_key = what_to_dye == "Hair" ? GRADIENT_HAIR_KEY : GRADIENT_FACIAL_HAIR_KEY + var/new_grad_color = tgui_color_picker(user, "Choose a secondary hair color:", "Character Preference", human_target.get_hair_gradient_color(hair_key)) if(!new_grad_color || !user.can_perform_action(src, NEED_DEXTERITY) || !target.IsReachableBy(user)) return