This commit is contained in:
Timothy Teakettle
2020-12-26 23:09:19 +00:00
parent 1b450f7f14
commit c3e9cdd9a5
12 changed files with 131 additions and 21 deletions
@@ -738,6 +738,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
//gear loadout
loadout_data = safe_json_decode(S["loadout"])
unlockable_loadout_data = S["unlockable_loadout"]
//try to fix any outdated data if necessary
//preference updating will handle saving the updated data for us.
if(needs_update >= 0)
@@ -1075,6 +1077,11 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
else
S["loadout"] << safe_json_encode(list())
if(length(unlockable_loadout_data))
S["unlockable_loadout"] << unlockable_loadout_data
else
S["unlockable_loadout"] << list()
cit_character_pref_save(S)
return 1