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

From RimWorld Wiki
Jump to navigation Jump to search
(Replaced content with "Under construction.")
Tag: Replaced
Line 1: Line 1:
Under construction.
+
<includeonly><div><li style="display: inline-table;">{{#vardefine: name | {{{1|{{PAGENAME}}}}} }}{{#vardefine: baseresteffectiveness | {{Q|{{#var: name}}|Rest Effectiveness}}}}
 +
{| {{STDT| sortable c_08 text-center}}
 +
! Material
 +
!data-sort-type="number"| Awful
 +
!data-sort-type="number"| Poor
 +
!data-sort-type="number"| Normal
 +
!data-sort-type="number"| Good
 +
!data-sort-type="number"| Excellent
 +
!data-sort-type="number"| Masterwork
 +
!data-sort-type="number"| Legendary
 +
|-
 +
! Non-Stone and Jade
 +
| {{#expr:{{#var:baseresteffectiveness}}*0.86*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*0.92*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.00*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.08*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.14*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.25*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.60*100 round 0}}%
 +
|-
 +
! Stone except Jade
 +
| {{#expr:{{#var:baseresteffectiveness}}*0.86*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*0.92*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.00*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.08*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.14*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.25*0.9*100 round 0}}%
 +
| {{#expr:{{#var:baseresteffectiveness}}*1.60*0.9*100 round 0}}%
 +
|}
 +
</li><div></includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Revision as of 13:55, 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
    Non-Stone and Jade 86% 92% 100% 108% 114% 125% 160%
    Stone except Jade 77% 83% 90% 97% 103% 113% 144%
  • Animal bed

    {{Rest Effectiveness Quality Table | Animal bed}}

    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%
  • Sleeping spot

    {{Rest Effectiveness Quality Table | Sleeping spot}}

    Produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Non-Stone and Jade 69% 74% 80% 86% 91% 100% 128%
    Stone except Jade 62% 66% 72% 78% 82% 90% 115%