mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
[MIRROR] Fixes savefile corruption bug and allows character swapping (#11406)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
c58ead6223
commit
4d3de029e3
@@ -319,6 +319,7 @@ var/const/preview_icons = 'icons/mob/human_races/preview.dmi'
|
||||
|
||||
data["b_type"] = pref.b_type
|
||||
data["digitigrade"] = pref.digitigrade
|
||||
data["tail_layering"] = pref.read_preference(/datum/preference/choiced/human/tail_layering)
|
||||
|
||||
data["synth_color_toggle"] = pref.synth_color
|
||||
data["synth_color"] = pref.read_preference(/datum/preference/color/human/synth_color)
|
||||
@@ -996,6 +997,13 @@ var/const/preview_icons = 'icons/mob/human_races/preview.dmi'
|
||||
pref.digitigrade = !pref.digitigrade
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
if("set_tail_layering")
|
||||
var/new_tail_layering = tgui_input_list(user, "Select a tail layer.", "Set Tail Layer", GLOB.tail_layer_options,
|
||||
pref.read_preference(/datum/preference/choiced/human/tail_layering))
|
||||
if(new_tail_layering)
|
||||
pref.update_preference_by_type(/datum/preference/choiced/human/tail_layering, new_tail_layering)
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
if("synth_color_toggle")
|
||||
pref.synth_color = !pref.synth_color
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
Reference in New Issue
Block a user