diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-05-03 15:58:03 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-05-03 15:58:03 -0700 |
commit | 6b8d5abd7fc1d2f1d6f794640117c649eae3e01a (patch) | |
tree | 0ad0436287ad1f9bbd3cfb28f7574d5a6710592f /src-10_reduced-kcal-during-sleep.patch | |
parent | Updated to 2023-04-15-1344 (diff) | |
download | cataclysm-bn-6b8d5abd7fc1d2f1d6f794640117c649eae3e01a.tar.xz |
Updated to 2023-04-30-2223
Revert more ammo patches.
Revert more books patches.
Clean up old book patch.
Fix removed traits patch.
Fix bathroom fluff patch.
Remove obsolete vacutainer patch.
Rename source patches.
Diffstat (limited to 'src-10_reduced-kcal-during-sleep.patch')
-rw-r--r-- | src-10_reduced-kcal-during-sleep.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src-10_reduced-kcal-during-sleep.patch b/src-10_reduced-kcal-during-sleep.patch new file mode 100644 index 0000000..d376754 --- /dev/null +++ b/src-10_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 ); |