Difference between revisions of "Template:Rest Effectiveness Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
| {{#expr:{{#var:baseresteffectiveness}}*1.25*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*1.25) round 2}} hr)
 
| {{#expr:{{#var:baseresteffectiveness}}*1.25*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*1.25) round 2}} hr)
 
| {{#expr:{{#var:baseresteffectiveness}}*1.60*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*1.60) round 2}} hr)
 
| {{#expr:{{#var:baseresteffectiveness}}*1.60*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*1.60) round 2}} hr)
|-
+
{{#if: {{#pos:{{Q|{{#var: name}}|Facility}}|Sleep accelerator}}|
 +
<tr>
 +
<th> <small>+ [[Sleep accelerator]]</small>
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*0.86*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.86) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*0.92*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.92) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.00*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*1.00) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.08*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*1.08) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.14*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*1.14) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.25*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*1.25) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.60*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*1.60) round 2}} hr)
 +
</tr>
 +
}}
 
{{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|
 
{{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|
 +
<tr>
 
<th> Stone except Jade
 
<th> Stone except Jade
 
<td> {{#expr:{{#var:baseresteffectiveness}}*0.86*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*0.86) round 2}} hr)
 
<td> {{#expr:{{#var:baseresteffectiveness}}*0.86*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*0.86) round 2}} hr)
Line 28: Line 40:
 
<td> {{#expr:{{#var:baseresteffectiveness}}*1.25*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*1.25) round 2}} hr)
 
<td> {{#expr:{{#var:baseresteffectiveness}}*1.25*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*1.25) round 2}} hr)
 
<td> {{#expr:{{#var:baseresteffectiveness}}*1.60*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*1.60) round 2}} hr)
 
<td> {{#expr:{{#var:baseresteffectiveness}}*1.60*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/({{#var:baseresteffectiveness}}*0.9*1.60) round 2}} hr)
 +
</tr>
 
}}
 
}}
 +
{{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|{{#if: {{#pos:{{Q|{{#var: name}}|Facility}}|Sleep accelerator}}|
 +
<tr>
 +
<th> <small>+ [[Sleep accelerator]]</small>
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*0.86*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*0.86) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*0.92*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*0.92) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.00*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*1.00) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.08*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*1.08) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.14*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*1.14) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.25*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*1.25) round 2}} hr)
 +
<td> {{#expr:({{#var:baseresteffectiveness}}+0.35)*1.60*0.9*100 round 0}}% ({{#expr:(((1/0.005714286)*150)/2500)/(({{#var:baseresteffectiveness}}+0.35)*0.9*1.60) round 2}} hr)
 +
</tr>
 +
}}}}
 
|}
 
|}
 
</li><div><sup>Bracketed times are time to refill [[rest]] to 100% from 0% at the given rest effectiveness.</sup></includeonly><noinclude>
 
</li><div><sup>Bracketed times are time to refill [[rest]] to 100% from 0% at the given rest effectiveness.</sup></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 04:56, 25 August 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Summary

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

The first parameter, if present, will specify which object to generate the template for. If absent, {{PAGENAME}} will be used.

Example usage

Bed

{{Rest Effectiveness Quality Table}}

On the Bed page produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Non-Stone and Jade 86% (12.21 hr) 92% (11.41 hr) 100% (10.5 hr) 108% (9.72 hr) 114% (9.21 hr) 125% (8.4 hr) 160% (6.56 hr)
    + Sleep accelerator 116% (9.04 hr) 124% (8.45 hr) 135% (7.78 hr) 146% (7.2 hr) 154% (6.82 hr) 169% (6.22 hr) 216% (4.86 hr)
    Stone except Jade 77% (13.57 hr) 83% (12.68 hr) 90% (11.67 hr) 97% (10.8 hr) 103% (10.23 hr) 113% (9.33 hr) 144% (7.29 hr)
    + Sleep accelerator 104% (10.05 hr) 112% (9.39 hr) 122% (8.64 hr) 131% (8 hr) 139% (7.58 hr) 152% (6.91 hr) 194% (5.4 hr)
  • Bracketed times are time to refill rest to 100% from 0% at the given rest effectiveness.

    Hospital bed

    {{Rest Effectiveness Quality Table | Hospital bed}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% (12.21 hr) 92% (11.41 hr) 100% (10.5 hr) 108% (9.72 hr) 114% (9.21 hr) 125% (8.4 hr) 160% (6.56 hr)
    + Sleep accelerator 116% (9.04 hr) 124% (8.45 hr) 135% (7.78 hr) 146% (7.2 hr) 154% (6.82 hr) 169% (6.22 hr) 216% (4.86 hr)
  • Bracketed times are time to refill rest to 100% from 0% at the given rest effectiveness.

    Animal bed

    {{Rest Effectiveness Quality Table | Animal bed}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% (12.21 hr) 92% (11.41 hr) 100% (10.5 hr) 108% (9.72 hr) 114% (9.21 hr) 125% (8.4 hr) 160% (6.56 hr)


  • Bracketed times are time to refill rest to 100% from 0% at the given rest effectiveness.

    Sleeping spot

    {{Rest Effectiveness Quality Table | Sleeping spot}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 69% (15.26 hr) 74% (14.27 hr) 80% (13.12 hr) 86% (12.15 hr) 91% (11.51 hr) 100% (10.5 hr) 128% (8.2 hr)


  • Bracketed times are time to refill rest to 100% from 0% at the given rest effectiveness.