summaryrefslogtreecommitdiff
path: root/src-10_reduced-kcal-during-sleep.patch
blob: 20d83f2535169a2ca9fd9b42d819933d43490c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.
             // This will slow calories consumption enough to go through the 7 days of hibernation