New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A good night sleep is healthy #57592
Conversation
You could factor them by giving additional turns in |
I'd have reduced sleep mutations change the number of turns we add to |
Is there a particular reason this PR has stalled out, or has it just slipped through the cracks? |
There's some issue wuth basic build. |
Possibly kill this pr and push the branch to a new one? No idea why the build cancels. |
I think we're good now and the failure are unrelated to this PR |
Summary
Balance "A good night sleep is healthy"
Purpose of change
Part of #37446
Describe the solution
effective_time_slept
astime_slept_between_update * fatigue._recovery_rate
effective_time_slept
todaily_sleep
effective_time_slept
tocontinuous_sleep
continuous_sleep
is, if it's more than 6_hours record a "sleep_health_mult" value of 2continuous_sleep
to 0daily_sleep * sleep_health_mult
number of hours todaily_health
with a cap of +10daily_sleep
to 0Describe alternatives you've considered
Also use
value
to storedaily_sleep
andcontinuous_sleep
instead of adding two new variables to characterTesting
Additional context
effective_time_slept
takes mutation, pain, and hibernation into account. However in my test setting a debug breakpoint just after it's computed show it was 1 even for an elfe with Tireless mutation, so I don't know what was happening there