mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
Deconf 2: Electric Boogaloo
This commit is contained in:
@@ -151,6 +151,11 @@ GLOBAL_DATUM_INIT(gear_tweak_free_matrix_recolor, /datum/gear_tweak/matrix_recol
|
||||
continue
|
||||
else
|
||||
path = contents[metadata[i]]
|
||||
if(!path)
|
||||
var/mob/user = ismob(I.loc) ? I.loc : I.loc?.loc
|
||||
if(istype(user))
|
||||
to_chat(user, span_warning("The content \"[metadata[i]]\" from \"[I]\" does no longer exist and has not been loaded. Please replace it in the character setup."))
|
||||
continue
|
||||
new path(I)
|
||||
|
||||
/*
|
||||
|
||||
@@ -46,17 +46,32 @@ var/list/gear_datums = list()
|
||||
var/current_tab = "General"
|
||||
|
||||
/datum/category_item/player_setup_item/loadout/load_character(list/save_data)
|
||||
pref.gear_list = save_data["gear_list"]
|
||||
pref.gear_list = list()
|
||||
var/all_gear = check_list_copy(save_data["gear_list"])
|
||||
for(var/i in all_gear)
|
||||
var/list/entries = check_list_copy(all_gear["[i]"])
|
||||
for(var/j in entries)
|
||||
entries["[j]"] = path2text_list(entries["[j]"])
|
||||
pref.gear_list["[i]"] = entries
|
||||
pref.gear_slot = save_data["gear_slot"]
|
||||
if(pref.gear_list!=null && pref.gear_slot!=null)
|
||||
pref.gear = pref.gear_list["[pref.gear_slot]"]
|
||||
else
|
||||
pref.gear = save_data["gear"]
|
||||
pref.gear = check_list_copy(save_data["gear"])
|
||||
pref.gear_slot = 1
|
||||
|
||||
/datum/category_item/player_setup_item/loadout/save_character(list/save_data)
|
||||
pref.gear_list["[pref.gear_slot]"] = pref.gear
|
||||
save_data["gear_list"] = pref.gear_list
|
||||
var/list/all_gear = list()
|
||||
var/worn_gear = check_list_copy(pref.gear_list)
|
||||
for(var/i in worn_gear)
|
||||
var/list/entries = check_list_copy(worn_gear["[i]"])
|
||||
if(!length(entries))
|
||||
entries = check_list_copy(worn_gear[i])
|
||||
for(var/j in entries)
|
||||
entries["[j]"] = check_list_copy(entries["[j]"])
|
||||
all_gear["[i]"] = entries
|
||||
save_data["gear_list"] = all_gear
|
||||
save_data["gear_slot"] = pref.gear_slot
|
||||
|
||||
/datum/category_item/player_setup_item/loadout/proc/valid_gear_choices(var/max_cost)
|
||||
|
||||
Reference in New Issue
Block a user