insect fluff!

This commit is contained in:
timothyteakettle
2020-08-14 02:27:54 +01:00
parent e5d48e307a
commit a9caceb001
2 changed files with 9 additions and 6 deletions
+8 -5
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 34
#define SAVEFILE_VERSION_MAX 35
/*
SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn
@@ -200,11 +200,14 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
features["silicon_flavor_text"] = html_encode(features["silicon_flavor_text"])
features["ooc_notes"] = html_encode(features["ooc_notes"])
if(current_version < 34)
if(features["horns"] && S["species"]) //check for saved horn data
if(current_version < 35)
if(S["species"])
var/datum/species/loaded_species = GLOB.species_list[S["species"]]
if(loaded_species && !initial(loaded_species.mutant_bodyparts)["horns"]) //if saved horn data plus previously no initial horns were allowed on their race, wipe the horns
features["horns"] = null
if(loaded_species)
for(var/unlocked_part in GLOB.unlocked_mutant_parts)
if(features[unlocked_part]) //check for saved data on an unlocked part
if(!initial(loaded_species.mutant_bodyparts)[unlocked_part]) //if saved horn data plus previously no initial horns were allowed on their race, wipe the horns
features[unlocked_part] = null
/datum/preferences/proc/load_path(ckey,filename="preferences.sav")