MIGRATIONS DELETIONS AND QUIRKS OH MY

This commit is contained in:
Timothy Teakettle
2022-08-05 18:06:49 +01:00
parent 818e564c92
commit b05f6e221d
5 changed files with 28 additions and 138 deletions

View File

@@ -5,7 +5,7 @@
// You do not need to raise this if you are adding new values that have sane defaults.
// Only raise this value when changing the meaning/format/name/layout of an existing value
// where you would want the updater procs below to run
#define SAVEFILE_VERSION_MAX 55
#define SAVEFILE_VERSION_MAX 56
/*
SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn
@@ -358,6 +358,18 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
if(length(old_flavor_text) && !length(features["feature_flavor_text"]))
features["feature_flavor_text"] = old_flavor_text
// hey what happened to 55
// dullahans as a species cease to exist
if(current_version < 56)
var/species_id = S["species"]
if(species_id = SPECIES_DULLAHAN)
S["species"] = SPECIES_HUMAN
if(islist(S["all_quirks"])
S["all_quirks"] += "Dullahan"
else
S["all_quirks"] = list("Dullahan")
/datum/preferences/proc/load_path(ckey,filename="preferences.sav")
if(!ckey)
return