From f5a53e66b76d71c5c970c96b392f199aa00adff1 Mon Sep 17 00:00:00 2001 From: Metis <100518708+sheepishgoat@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:46:51 -0400 Subject: [PATCH] fixes perma fatness --- code/modules/client/preferences.dm | 4 ++++ code/modules/client/preferences_savefile.dm | 1 + 2 files changed, 5 insertions(+) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index cf81e47337..82f533df3b 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -8,6 +8,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) var/client/parent //doohickeys for savefiles var/path + var/clientckey //GS13 EDIT var/vr_path var/default_slot = 1 //Holder so it doesn't default to slot 1, rather the last one used var/max_save_slots = 24 @@ -280,6 +281,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) if(istype(C)) if(!IsGuestKey(C.key)) load_path(C.ckey) + clientckey = C.ckey //GS13 EDIT unlock_content = C.IsByondMember() if(unlock_content) max_save_slots = 32 @@ -3732,6 +3734,8 @@ GLOBAL_LIST_EMPTY(preferences_datums) character.fatness_perma = permanent_fat character.weight_gain_rate = wg_rate character.weight_loss_rate = wl_rate + character.savekey = clientckey + character.ckeyslot = ckeyslot // GS13 EDIT - END diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index e4d86720f5..72432da9c8 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -714,6 +714,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car default_slot = slot WRITE_FILE(S["default_slot"] , slot) + ckeyslot = slot S.cd = "/character[slot]" var/needs_update = savefile_needs_update(S) if(needs_update == -2) //fatal, can't load any data