This commit is contained in:
timothyteakettle
2020-12-06 15:50:33 +00:00
parent cbbcc0c386
commit a478da678e
2 changed files with 3 additions and 1 deletions

View File

@@ -675,7 +675,8 @@ SUBSYSTEM_DEF(job)
if(!ishuman(M))//no silicons allowed
return
for(var/i in chosen_gear)
var/datum/gear/G = i[LOADOUT_ITEM]
var/datum/gear/G = text2path(i[LOADOUT_ITEM])
message_admins("category [initial(G.category)] and subcategory [initial(G.subcategory)] and name [initial(G.name)]")
G = GLOB.loadout_items[initial(G.category)][initial(G.subcategory)][initial(G.name)]
if(!G)
continue

View File

@@ -239,6 +239,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
continue
loadout_data["SAVE_1"] += list(list(LOADOUT_ITEM = some_gear_item)) //for the migration we put their old save into the first save slot, which is loaded by default!
//it's double packed into a list because += will union the two lists contents
S["loadout"] = safe_json_encode(loadout_data)
/datum/preferences/proc/load_path(ckey,filename="preferences.sav")
if(!ckey)