Update preferences_savefile.dm

This commit is contained in:
timothyteakettle
2021-05-07 00:43:33 +01:00
parent 440a6633ea
commit eab47bb6ae

View File

@@ -47,7 +47,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
addtimer(CALLBACK(src, .proc/force_reset_keybindings), 30) //No mob available when this is run, timer allows user choice.
/datum/preferences/proc/update_character(current_version, savefile/S)
message_admins(current_version)
if(current_version < 19)
pda_style = "mono"
if(current_version < 20)
@@ -297,7 +296,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["be_special"] << L
if(current_version < 51) // rp markings means markings are now stored as a list, lizard markings now mam like the rest
message_admins("migrating")
var/marking_type
var/species_id = S["species"]
var/datum/species/actual_species = GLOB.species_datums[species_id]
@@ -320,9 +318,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
var/list/marking_list = list()
for(var/part in list(ARM_LEFT, ARM_RIGHT, LEG_LEFT, LEG_RIGHT, CHEST, HEAD))
marking_list += list(list(part, old_marking_value, color_list.Copy()))
message_admins("saved data of length [length(marking_list)]")
S[marking_type] = safe_json_encode(marking_list)
message_admins("final json code is: [S[marking_type]]")
features["mam_body_markings"] = safe_json_encode(marking_list)
/datum/preferences/proc/load_path(ckey,filename="preferences.sav")
if(!ckey)