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).
This commit is contained in:
carnie
2013-04-01 00:42:01 +01:00
parent b910baef2a
commit d2988fcf8a
2 changed files with 14 additions and 8 deletions
+2 -1
View File
@@ -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
+12 -7
View File
@@ -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"))
*/