Difference between revisions of "Template:Rest Hours Per Day"
Jump to navigation
Jump to search
(1.9 hrs)
(1.55 hrs)
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{ | + | <noinclude>{{Documentation wanted}}{{documentation}}</noinclude><includeonly> |
− | + | {{#if:{{{color|}}}|<td style="background: hsla(110, 100%, 40%, {{#expr: (1-(1/(((0.0057143 * {{{RE|1}}} * {{{RRM|1}}}) /(0.00237 * {{{RFF|1}}} )) + 1))-0.65875)/(0.9207-0.65875) round 2}});">|<td>}} {{#vardefineecho: dayPercentageTemp | {{#expr: (1/(((0.0057143 * {{{RE|1}}} * {{{RRM|1}}}) /(0.00237 * {{{RFF|1}}} )) + 1)) * 100 round 2}}}}%<br><small>({{#expr:{{#var:dayPercentageTemp}}*0.24 round 2}} hrs)</small></td></includeonly> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{color|}}}|style="background: hsla( |
Latest revision as of 12:23, 3 September 2022
This page has been marked as needing documentation of its function and purpose. You can help RimWorld Wiki by creating it here |
Rest#Comparison_tables
{{Rest Hours Per Day|RE=2.15|RRM=2.24|RFF=1|color=1}}
(1.9 hrs)
{{Rest Hours Per Day|RE=2.15|RRM=2.24|RFF=0.8|color=1}}
(1.55 hrs)
RE = Rest Effectiveness RRM = Rest Rate Multiplier RFF = Rest Fall Factor
Where x = sleeping hours.
x * ~0.57143% * RE * RRM = (24-x) * 0.237% * RFR
x/(24-x) = (0.237% * RFR)/(~0.57143% * RE * RRM)
(24-x)/x = (~0.57143% * RE * RRM)/(0.237% * RFR)
(24/x)-1 = (~0.57143% * RE * RRM)/(0.237% * RFR)
24/x = ((~0.57143% * RE * RRM)/(0.237% * RFR))+1
x = 24/((~0.57143% * RE * RRM)/(0.237% * RFR))+1
0.65857 - lowest work % of a day 0.9207 - highest work % of a day
hsla(120, 100%, 50%,
The above documentation is transcluded from Template:Rest Hours Per Day/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |