From 39fc7ce11df1d2fc882df1bc23b88310e599ba84 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Sun, 15 Dec 2024 11:18:11 +0100 Subject: [PATCH] Permanence Options reload fix Clients no longer need to reload character info for permanence options to update between leaving and joining rounds --- GainStation13/code/mechanics/permanent_fat.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GainStation13/code/mechanics/permanent_fat.dm b/GainStation13/code/mechanics/permanent_fat.dm index 3a0f092a0d..9492f6b8ff 100644 --- a/GainStation13/code/mechanics/permanent_fat.dm +++ b/GainStation13/code/mechanics/permanent_fat.dm @@ -21,11 +21,13 @@ S["weight_gain_persistent"] >> persi if(persi) WRITE_FILE(S["starting_weight"] , fatness_real) + client.prefs.starting_weight = fatness_real to_chat(src, span_notice("Your starting weight has been updated!")) var/perma S["weight_gain_permanent"] >> perma if(S["weight_gain_permanent"]) WRITE_FILE(S["permanent_fat"] , fatness_perma) + client.prefs.permanent_fat = fatness_perma to_chat(src, span_notice("Your permanent fat has been updated!")) /mob/living/carbon/proc/queue_perma_save()