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

From RimWorld Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
!data-sort-type="number"| Legendary
 
!data-sort-type="number"| Legendary
 
|-
 
|-
! Non-Stone and Jade
+
! {{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|Non-Stone and Jade|[[Rest effectiveness]]}}
 
| {{#expr:{{#var:baseresteffectiveness}}*0.86*100 round 0}}%
 
| {{#expr:{{#var:baseresteffectiveness}}*0.86*100 round 0}}%
 
| {{#expr:{{#var:baseresteffectiveness}}*0.92*100 round 0}}%
 
| {{#expr:{{#var:baseresteffectiveness}}*0.92*100 round 0}}%
Line 19: Line 19:
 
| {{#expr:{{#var:baseresteffectiveness}}*1.60*100 round 0}}%
 
| {{#expr:{{#var:baseresteffectiveness}}*1.60*100 round 0}}%
 
|-
 
|-
! Stone except Jade
+
{{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|
| {{#expr:{{#var:baseresteffectiveness}}*0.86*0.9*100 round 0}}%
+
<th> Stone except Jade
| {{#expr:{{#var:baseresteffectiveness}}*0.92*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*0.86*0.9*100 round 0}}%
| {{#expr:{{#var:baseresteffectiveness}}*1.00*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*0.92*0.9*100 round 0}}%
| {{#expr:{{#var:baseresteffectiveness}}*1.08*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*1.00*0.9*100 round 0}}%
| {{#expr:{{#var:baseresteffectiveness}}*1.14*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*1.08*0.9*100 round 0}}%
| {{#expr:{{#var:baseresteffectiveness}}*1.25*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*1.14*0.9*100 round 0}}%
| {{#expr:{{#var:baseresteffectiveness}}*1.60*0.9*100 round 0}}%
+
<td> {{#expr:{{#var:baseresteffectiveness}}*1.25*0.9*100 round 0}}%
 +
<td> {{#expr:{{#var:baseresteffectiveness}}*1.60*0.9*100 round 0}}%
 +
}}
 
|}
 
|}
 
</li><div></includeonly><noinclude>
 
</li><div></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 14:00, 22 November 2021

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% 92% 100% 108% 114% 125% 160%
    Stone except Jade 77% 83% 90% 97% 103% 113% 144%
  • Hospital bed

    {{Rest Effectiveness Quality Table | Hospital bed}}

    Produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% 92% 100% 108% 114% 125% 160%
  • Animal bed

    {{Rest Effectiveness Quality Table | Animal bed}}

    Produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% 92% 100% 108% 114% 125% 160%
  • Sleeping spot

    {{Rest Effectiveness Quality Table | Sleeping spot}}

    Produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 69% 74% 80% 86% 91% 100% 128%