Difference between revisions of "Template:Rest Effectiveness Quality Table"
Jump to navigation
Jump to search
Bracketed numbers are in-game hours to refill rest from 0% to 100% at the given rest effectiveness.
Bracketed numbers are in-game hours to refill rest from 0% to 100% at the given rest effectiveness.
Bracketed numbers are in-game hours to refill rest from 0% to 100% at the given rest effectiveness.
Bracketed numbers are in-game hours to refill rest from 0% to 100% at the given rest effectiveness.
(small adjustments, so non-quality buildings no longer has a header saying "quality") |
Arcangelus (talk | contribs) (Added bioferrite. i honestly don't know what circumstances would push anyone to use it, but now it is there for comparisons.) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
VARIABLES | VARIABLES | ||
-->{{#vardefine:name | {{{1| {{PAGENAME}} }}} }}<!-- | -->{{#vardefine:name | {{{1| {{PAGENAME}} }}} }}<!-- | ||
− | -->{{#vardefine:hasQuality | {{ | + | -->{{#vardefine:hasQuality | {{#ifeq:{{#show:{{#var:name}}|?Has Quality|link = none}}|true|true|}} }}<!-- |
− | -->{{#vardefine:stony | {{#pos:{{ | + | -->{{#vardefine:stony | {{#pos:{{#show:{{#var:name}}|?Stuff Tags|link=no}}|Stony}} }}<!-- |
− | -->{{#vardefine:baseresteffectiveness | {{ | + | -->{{#vardefine:metalic | {{#pos:{{#show:{{#var:name}}|?Stuff Tags|link=no}}|Metallic}} }}<!-- |
− | -->{{#vardefine:restRate | {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} | + | -->{{#vardefine:uses_sleep_acc | {{#pos:{{#show:{{#var:name}}|?Facility|link=no}}|Sleep accelerator}} }}<!-- |
+ | -->{{#vardefine:baseresteffectiveness | {{#show:{{#var:name}}|?Rest Effectiveness|link=no}} }}<!-- | ||
+ | -->{{#vardefine:restRate | 10.5 }}<!-- See [[Rest#Positive]] for an explanation of the formula | ||
+ | The number above was obtained from the formula {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} | ||
TABLE | TABLE | ||
--><div><li style="display:inline-table;"> | --><div><li style="display:inline-table;"> | ||
{| {{STDT| sortable c_08 text-center}} | {| {{STDT| sortable c_08 text-center}} | ||
− | ! {{#if: {{# | + | ! {{#if: {{#var:stony}}{{#var:metalic}}|Material| {{#if: {{#var:hasQuality}} | Quality | colspan="3" {{!}} {{#var:name}} }} }} |
− | {{# | + | {{#if: {{#var:hasQuality}} | |
! Awful | ! Awful | ||
! Poor | ! Poor | ||
Line 21: | Line 24: | ||
! Legendary}} | ! Legendary}} | ||
|- | |- | ||
− | ! {{#if: {{#var:stony}}|Non-Stone and Jade|[[Rest effectiveness]]}} | + | ! {{#if: {{#var:stony}}|Non-Stone and Jade|[[Rest effectiveness]] {{#if: {{#var:metalic}}|<small><br/>Excluding Bioferrite</small> }}}} |
− | {{# | + | {{#if: {{#var:hasQuality}} | |
{{!}} {{%|{{#var:baseresteffectiveness}}*0.86|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.86) round 2}} h) | {{!}} {{%|{{#var:baseresteffectiveness}}*0.86|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.86) round 2}} h) | ||
{{!}} {{%|{{#var:baseresteffectiveness}}*0.92|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.92) round 2}} h) | {{!}} {{%|{{#var:baseresteffectiveness}}*0.92|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.92) round 2}} h) | ||
Line 31: | Line 34: | ||
{{!}} {{%|{{#var:baseresteffectiveness}}*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*1.6 ) round 2}} h) | {{!}} {{%|{{#var:baseresteffectiveness}}*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*1.6 ) round 2}} h) | ||
| {{!}} {{%|{{#var:baseresteffectiveness}} |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}} ) round 2}} h)}} | | {{!}} {{%|{{#var:baseresteffectiveness}} |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}} ) round 2}} h)}} | ||
− | {{#if: | + | {{#if: {{#var:uses_sleep_acc}}|<tr> |
<th> <small>{{#if: {{#var:stony}}|Non-Stone and Jade<br/>}}+ [[Sleep accelerator]] {{IdeologyIcon}}</small> </th> | <th> <small>{{#if: {{#var:stony}}|Non-Stone and Jade<br/>}}+ [[Sleep accelerator]] {{IdeologyIcon}}</small> </th> | ||
− | {{# | + | {{#if: {{#var:hasQuality}} | |
{{!}} {{%|({{#var:baseresteffectiveness}}+0.35)*0.86|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}+0.35)*0.86) round 2}} h) | {{!}} {{%|({{#var:baseresteffectiveness}}+0.35)*0.86|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}+0.35)*0.86) round 2}} h) | ||
{{!}} {{%|({{#var:baseresteffectiveness}}+0.35)*0.92|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}+0.35)*0.92) round 2}} h) | {{!}} {{%|({{#var:baseresteffectiveness}}+0.35)*0.92|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}+0.35)*0.92) round 2}} h) | ||
Line 45: | Line 48: | ||
}}{{#if: {{#var:stony}}|<tr> | }}{{#if: {{#var:stony}}|<tr> | ||
<th> Stone except Jade </th> | <th> Stone except Jade </th> | ||
− | {{# | + | {{#if: {{#var:hasQuality}} | |
{{!}} {{%|{{#var:baseresteffectiveness}}*0.9*0.86|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9*0.86) round 2}} h) | {{!}} {{%|{{#var:baseresteffectiveness}}*0.9*0.86|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9*0.86) round 2}} h) | ||
{{!}} {{%|{{#var:baseresteffectiveness}}*0.9*0.92|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9*0.92) round 2}} h) | {{!}} {{%|{{#var:baseresteffectiveness}}*0.9*0.92|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9*0.92) round 2}} h) | ||
Line 55: | Line 58: | ||
| {{!}} {{%|{{#var:baseresteffectiveness}}*0.9 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9 ) round 2}} h)}} | | {{!}} {{%|{{#var:baseresteffectiveness}}*0.9 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.9 ) round 2}} h)}} | ||
</tr> | </tr> | ||
− | + | {{#if: {{#var:uses_sleep_acc}}|<tr> | |
<th> <small>Stone except Jade<br/>+ [[Sleep accelerator]] {{IdeologyIcon}}</small> </th> | <th> <small>Stone except Jade<br/>+ [[Sleep accelerator]] {{IdeologyIcon}}</small> </th> | ||
− | {{# | + | {{#if: {{#var:hasQuality}} | |
{{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*0.86|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*0.86) round 2}} h) | {{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*0.86|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*0.86) round 2}} h) | ||
{{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*0.92|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*0.92) round 2}} h) | {{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*0.92|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*0.92) round 2}} h) | ||
Line 66: | Line 69: | ||
{{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*1.6 ) round 2}} h) | {{!}} {{%|({{#var:baseresteffectiveness}}*0.9+0.35)*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.9+0.35)*1.6 ) round 2}} h) | ||
| {{!}} {{%| {{#var:baseresteffectiveness}}*0.9+0.35 |0}} <br/>({{#expr:{{#var:restRate}}/( {{#var:baseresteffectiveness}}*0.9+0.35 ) round 2}} h)}} | | {{!}} {{%| {{#var:baseresteffectiveness}}*0.9+0.35 |0}} <br/>({{#expr:{{#var:restRate}}/( {{#var:baseresteffectiveness}}*0.9+0.35 ) round 2}} h)}} | ||
+ | </tr> | ||
+ | }} }}{{#if: {{#var:metalic}}|<tr> | ||
+ | <th> [[Bioferrite]]{{AnomalyIcon}} </th> | ||
+ | {{#if: {{#var:hasQuality}} | | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*0.86|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*0.86) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*0.92|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*0.92) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85 ) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*1.08|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*1.08) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*1.14|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*1.14) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*1.25|0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*1.25) round 2}} h) | ||
+ | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85*1.6 ) round 2}} h) | ||
+ | | {{!}} {{%|{{#var:baseresteffectiveness}}*0.85 |0}} <br/>({{#expr:{{#var:restRate}}/({{#var:baseresteffectiveness}}*0.85 ) round 2}} h)}} | ||
+ | </tr> | ||
+ | {{#if: {{#var:uses_sleep_acc}}|<tr> | ||
+ | <th> <small>[[Bioferrite]]{{AnomalyIcon}}<br/>+ [[Sleep accelerator]] {{IdeologyIcon}}</small> </th> | ||
+ | {{#if: {{#var:hasQuality}} | | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*0.86|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*0.86) round 2}} h) | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*0.92|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*0.92) round 2}} h) | ||
+ | {{!}} {{%| {{#var:baseresteffectiveness}}*0.85+0.35 |0}} <br/>({{#expr:{{#var:restRate}}/( {{#var:baseresteffectiveness}}*0.85+0.35 ) round 2}} h) | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*1.08|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*1.08) round 2}} h) | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*1.14|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*1.14) round 2}} h) | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*1.25|0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*1.25) round 2}} h) | ||
+ | {{!}} {{%|({{#var:baseresteffectiveness}}*0.85+0.35)*1.6 |0}} <br/>({{#expr:{{#var:restRate}}/(({{#var:baseresteffectiveness}}*0.85+0.35)*1.6 ) round 2}} h) | ||
+ | | {{!}} {{%| {{#var:baseresteffectiveness}}*0.85+0.35 |0}} <br/>({{#expr:{{#var:restRate}}/( {{#var:baseresteffectiveness}}*0.85+0.35 ) round 2}} h)}} | ||
</tr> | </tr> | ||
}} }} | }} }} |
Latest revision as of 20:26, 24 March 2025
Summary[edit]
This template generates a table summarizing the rest effectiveness for each quality tier. If the object in question is has an option to use stone as a construction material, it will add a row to that effect.
Parameters[edit]
The first parameter, if present, will specify which object to generate the template for.
If absent, {{PAGENAME}}
will be used.
Example usage[edit]
Bed[edit]
{{Rest Effectiveness Quality Table}}
On the Bed page produces:
Material | Awful | Poor | Normal | Good | Excellent | Masterwork | Legendary |
---|---|---|---|---|---|---|---|
Non-Stone and Jade | 86% (12.21 h) |
92% (11.41 h) |
100% (10.5 h) |
108% (9.72 h) |
114% (9.21 h) |
125% (8.4 h) |
160% (6.56 h) |
Non-Stone and Jade + Sleep accelerator ![]() |
116% (9.04 h) |
124% (8.45 h) |
135% (7.78 h) |
146% (7.2 h) |
154% (6.82 h) |
169% (6.22 h) |
216% (4.86 h) |
Stone except Jade | 77% (13.57 h) |
83% (12.68 h) |
90% (11.67 h) |
97% (10.8 h) |
103% (10.23 h) |
113% (9.33 h) |
144% (7.29 h) |
Stone except Jade + Sleep accelerator ![]() |
108% (9.77 h) |
115% (9.13 h) |
125% (8.4 h) |
135% (7.78 h) |
143% (7.37 h) |
156% (6.72 h) |
200% (5.25 h) |
Bioferrite![]() |
73% (14.36 h) |
78% (13.43 h) |
85% (12.35 h) |
92% (11.44 h) |
97% (10.84 h) |
106% (9.88 h) |
136% (7.72 h) |
Bioferrite![]() + Sleep accelerator ![]() |
103% (10.17 h) |
110% (9.51 h) |
120% (8.75 h) |
130% (8.1 h) |
137% (7.68 h) |
150% (7 h) |
192% (5.47 h) |
Hospital bed[edit]
{{Rest Effectiveness Quality Table | Hospital bed}}
Produces:
Material | Awful | Poor | Normal | Good | Excellent | Masterwork | Legendary |
---|---|---|---|---|---|---|---|
Rest effectiveness Excluding Bioferrite |
86% (12.21 h) |
92% (11.41 h) |
100% (10.5 h) |
108% (9.72 h) |
114% (9.21 h) |
125% (8.4 h) |
160% (6.56 h) |
+ Sleep accelerator ![]() |
116% (9.04 h) |
124% (8.45 h) |
135% (7.78 h) |
146% (7.2 h) |
154% (6.82 h) |
169% (6.22 h) |
216% (4.86 h) |
Bioferrite![]() |
73% (14.36 h) |
78% (13.43 h) |
85% (12.35 h) |
92% (11.44 h) |
97% (10.84 h) |
106% (9.88 h) |
136% (7.72 h) |
Bioferrite![]() + Sleep accelerator ![]() |
103% (10.17 h) |
110% (9.51 h) |
120% (8.75 h) |
130% (8.1 h) |
137% (7.68 h) |
150% (7 h) |
192% (5.47 h) |
Animal bed[edit]
{{Rest Effectiveness Quality Table | Animal bed}}
Produces:
Quality | Awful | Poor | Normal | Good | Excellent | Masterwork | Legendary |
---|---|---|---|---|---|---|---|
Rest effectiveness | 86% (12.21 h) |
92% (11.41 h) |
100% (10.5 h) |
108% (9.72 h) |
114% (9.21 h) |
125% (8.4 h) |
160% (6.56 h) |
Sleeping spot[edit]
{{Rest Effectiveness Quality Table | Sleeping spot}}
Produces:
Sleeping spot | ||
---|---|---|
Rest effectiveness | 80% (13.13 h) |
The above documentation is transcluded from Template:Rest Effectiveness Quality Table/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. |