Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2866,18 +2866,26 @@ Slots: [job.spawn_positions] [job.round_contrib_points ? "RCP: +[job.round_contr
load_character()

if("changeslot")
// Caustic Edit - Fixes duplicate slot names not showing up + different slot name presentation
var/list/choices = list()
var/choices_default
if(path)
var/savefile/S = new /savefile(path)
if(S)
for(var/i=1, i<=max_save_slots, i++)
var/name
S.cd = "/character[i]"
S["real_name"] >> name
if(!name)
name = "Slot[i]"
var/nickname = S["nickname"]
var/realname = S["real_name"]
if(!realname)
name = "[i] - \[EMPTY SLOT\]"
else
name = "[i] - [realname][nickname ? " ([nickname])" : ""]"
if(loaded_slot == i)
choices_default = name
choices[name] = i
var/choice = tgui_input_list(user, "CHOOSE A HERO","ROGUETOWN", choices)
var/choice = tgui_input_list(user, "CHOOSE A HERO","AZURE PEAK", choices, choices_default)
// Caustic Edit End
if(choice)
choice = choices[choice]
if(!load_character(choice))
Expand Down
Loading