From 3be2a34e126564361676b1a303d0634382d7ed61 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Tue, 25 Jan 2022 18:07:28 -0800 Subject: Updated to 2022-01-22-0831 Add patch to reduce calorie consumption while sleeping. --- jc_reduced-kcal-during-sleep.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 jc_reduced-kcal-during-sleep.patch diff --git a/jc_reduced-kcal-during-sleep.patch b/jc_reduced-kcal-during-sleep.patch new file mode 100644 index 0000000..d376754 --- /dev/null +++ b/jc_reduced-kcal-during-sleep.patch @@ -0,0 +1,13 @@ +--- a/src/character.cpp ++++ b/src/character.cpp +@@ -4806,6 +4806,10 @@ + // Multiplied by 2 to account for legacy (bugged to always apply) + // bonus for sleeping over 2 hours + rates.recovery = 2.0f * ( 1.0f + mutation_value( fatigue_regen_modifier ) ); ++ if( !is_hibernating() ) { ++ rates.hunger *= 0.5f; ++ rates.thirst *= 0.5f; ++ } + if( is_hibernating() ) { + // Hunger and thirst advance *much* more slowly whilst we hibernate. + rates.hunger *= ( 1.0f / 7.0f ); -- cgit v1.2.1