From 949545b799f05e9100c04adcd0254850a15d5552 Mon Sep 17 00:00:00 2001 From: Sonoida Date: Thu, 16 Mar 2023 15:35:19 +0100 Subject: [PATCH] finished hair gradient port forgot to add a couple vars like a goober --- code/modules/client/preferences.dm | 3 +++ code/modules/client/preferences_savefile.dm | 4 ++++ .../mob/dead/new_player/sprite_accessories/hair_head.dm | 3 +++ 3 files changed, 10 insertions(+) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index eba98692..34568594 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -2922,6 +2922,9 @@ GLOBAL_LIST_EMPTY(preferences_datums) character.skin_tone = skin_tone character.hair_style = hair_style character.facial_hair_style = facial_hair_style + + character.grad_style = grad_style + character.grad_color = grad_color character.underwear = underwear character.saved_underwear = underwear diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 4ed30a85..27020353 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -349,6 +349,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car S["skin_tone"] >> skin_tone S["hair_style_name"] >> hair_style S["facial_style_name"] >> facial_hair_style + S["grad_style"] >> grad_style + S["grad_color"] >> grad_color S["underwear"] >> underwear S["undie_color"] >> undie_color S["undershirt"] >> undershirt @@ -609,6 +611,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car WRITE_FILE(S["skin_tone"] , skin_tone) WRITE_FILE(S["hair_style_name"] , hair_style) WRITE_FILE(S["facial_style_name"] , facial_hair_style) + WRITE_FILE(S["grad_style"] , grad_style) + WRITE_FILE(S["grad_color"] , grad_color) WRITE_FILE(S["underwear"] , underwear) WRITE_FILE(S["body_size"] , body_size) WRITE_FILE(S["starting_weight"] , starting_weight) diff --git a/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm b/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm index 111b47ff..62d5ea1e 100644 --- a/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm +++ b/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm @@ -833,6 +833,9 @@ icon_state = "hair_tailhair2" ckeys_allowed = list("quotefox") +//Hair gradients + + /datum/sprite_accessory/hair_gradient icon = 'icons/mob/hair_gradients.dmi'