From f97f47bb2e4d2f69398da2b8b1921b30b43db08a Mon Sep 17 00:00:00 2001
From: Pinta <124479862+deertools@users.noreply.github.com>
Date: Wed, 8 Feb 2023 20:17:52 -0500
Subject: [PATCH] wew
---
code/modules/client/preferences.dm | 30 +++++++++++++++++++++
code/modules/client/preferences_savefile.dm | 17 ++++++++++++
2 files changed, 47 insertions(+)
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 700bdb76..ec542208 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -1018,6 +1018,18 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "Screen Shake: [(screenshake==100) ? "Full" : ((screenshake==0) ? "None" : "[screenshake]")]
"
if (user && user.client && !user.client.prefs.screenshake==0)
dat += "Damage Screen Shake: [(damagescreenshake==1) ? "On" : ((damagescreenshake==0) ? "Off" : "Only when down")]
"
+ //GS13 stuff goes here
+ dat += "
GS13 Preferences
"
+ dat += "NonCon - Weight Gain:[noncon_weight_gain == TRUE ? "Enabled" : "Disabled"]
"
+
+ dat += "GS13 Weight Gain
"
+ dat += "Weight Gain - Food:[weight_gain_food == TRUE ? "Enabled" : "Disabled"]
"
+ dat += "Weight Gain - Items:[weight_gain_items == TRUE ? "Enabled" : "Disabled"]
"
+ dat += "Weight Gain - Chems:[weight_gain_chems == TRUE ? "Enabled" : "Disabled"]
"
+ dat += "Weight Gain - Weapons:[weight_gain_weapons == TRUE ? "Enabled" : "Disabled"]
"
+ dat += "Weight Gain - Magic:[weight_gain_magic == TRUE ? "Enabled" : "Disabled"]
"
+ dat += "Weight Gain - Viruses:[weight_gain_viruses == TRUE ? "Enabled" : "Disabled"]
"
+
//Add the Hyper stuff below here
dat += "Hyper Preferences
"
dat += "NonCon - Bottom:[noncon == TRUE ? "Enabled" : "Disabled"]
"
@@ -2531,6 +2543,24 @@ GLOBAL_LIST_EMPTY(preferences_datums)
features["hide_belly"] = FALSE
features["inflatable_belly"] = FALSE
features["belly_size"] = 1
+
+ if("weight_gain_items")
+ weight_gain_items = !weight_gain_items
+ if("weight_gain_chems")
+ weight_gain_chems = !weight_gain_chems
+ if("weight_gain_food")
+ weight_gain_food = !weight_gain_food
+ if("weight_gain_weapons")
+ weight_gain_weapons = !weight_gain_weapons
+ if("weight_gain_magic")
+ weight_gain_magic = !weight_gain_magic
+ if("weight_gain_viruses")
+ weight_gain_viruses = !weight_gain_viruses
+
+ if("noncon_weight_gain")
+ noncon_weight_gain = !noncon_weight_gain
+
+
if("inflatable_belly")
features["inflatable_belly"] = !features["inflatable_belly"]
diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm
index 2c4ca7a4..47b6893a 100644
--- a/code/modules/client/preferences_savefile.dm
+++ b/code/modules/client/preferences_savefile.dm
@@ -146,6 +146,15 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["importantroles"] >> importantroles
S["pins"] >> pins
+ //GS13 code
+ S["weight_gain_food"] >> weight_gain_food
+ S["weight_gain_chems"] >> weight_gain_chems
+ S["weight_gain_items"] >> weight_gain_items
+ S["weight_gain_magic"] >> weight_gain_magic
+ S["weight_gain_viruses"] >> weight_gain_viruses
+ S["weight_gain_weapons"] >> weight_gain_weapons
+ S["noncon_weight_gain"] >> noncon_weight_gain
+
//try to fix any outdated data if necessfary
if(needs_update >= 0)
update_preferences(needs_update, S) //needs_update = savefile_version if we need an update (positive integer)
@@ -268,6 +277,14 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
//Hyper
WRITE_FILE(S["noncon"], noncon)
WRITE_FILE(S["pins"], pins)
+ //GS13
+ WRITE_FILE(S["weight_gain_food"], weight_gain_food)
+ WRITE_FILE(S["weight_gain_items"], weight_gain_items)
+ WRITE_FILE(S["weight_gain_magic"], weight_gain_magic)
+ WRITE_FILE(S["weight_gain_viruses"], weight_gain_viruses)
+ WRITE_FILE(S["weight_gain_chems"], weight_gain_chems)
+ WRITE_FILE(S["weight_gain_weapons"], weight_gain_weapons)
+ WRITE_FILE(S["noncon_weight_gain"], noncon_weight_gain)
return 1