From d2988fcf8a2ebe97d123a745e9f69e2f79b392ba Mon Sep 17 00:00:00 2001 From: carnie Date: Mon, 1 Apr 2013 00:42:01 +0100 Subject: [PATCH] Hair and facial hair styles are now randomized when changing gender in preferences setup. Thanks Pete Added some very basic tools for modifying/printing savefiles as plaintext (for testing). --- code/modules/client/preferences.dm | 3 ++- code/modules/client/preferences_savefile.dm | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 5de3b6650ea..2e2a9bbf1c4 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -600,7 +600,8 @@ datum/preferences else gender = MALE underwear = random_underwear(gender) - + f_style = random_facial_hair_style(gender) + h_style = random_hair_style(gender) if("hear_adminhelps") toggles ^= SOUND_ADMINHELP diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 5db400749b8..4b130df5cb4 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -3,13 +3,6 @@ //This is the current version, anything below this will attempt to update (if it's not obsolete) #define SAVEFILE_VERSION_MAX 9 - -/*//This will allow you to print savefiles -/client/verb/read_savefile(client/C in clients) - var/savefile/S = new /savefile(prefs.path) - S.ExportText("/",file("savefile.txt")) -*/ - /* SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn This proc checks if the current directory of the savefile S needs updating @@ -285,3 +278,15 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car #undef SAVEFILE_VERSION_MAX #undef SAVEFILE_VERSION_MIN +/* +//DEBUG +//Some crude tools for testing savefiles +//path is the savefile path +/client/verb/savefile_export(path as text) + var/savefile/S = new /savefile(path) + S.ExportText("/",file("[path].txt")) +//path is the savefile path +/client/verb/savefile_import(path as text) + var/savefile/S = new /savefile(path) + S.ExportText("/",file("[path].txt")) +*/ \ No newline at end of file