Difference between revisions of "Template:Comfort Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div><li style="display: inline-table;">{{#vardefine: name | {{{1|{{PAGENAME}}}}} }}{{#vardefine: basecomfort | {{Q|{{#var: name}}|Comfort Base}}}} {| {{STDT| sor...")
 
Line 19: Line 19:
 
| {{#expr:{{#var:basecomfort}}*1.70 round 2}}
 
| {{#expr:{{#var:basecomfort}}*1.70 round 2}}
 
|-
 
|-
{{#if: {{#pos:{{Q|{{#var: name}}|End table}}}}|
+
{{#if: {{#pos:{{Q|{{#var: name}}|Facility}}|End table}}|
<td><small>+ End Table & Dresser</small>
+
<th><small>+ End Table & Dresser</small>
<th> {{#expr:({{#var:basecomfort}}+0.1)*0.76 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*0.76 round 2}}
<th> {{#expr:({{#var:basecomfort}}+0.1)*0.88 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*0.88 round 2}}
<th> {{#expr:({{#var:basecomfort}}+0.1)*1.00 round 2}}  
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*1.00 round 2}}  
<th> {{#expr:({{#var:basecomfort}}+0.1)*1.12 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*1.12 round 2}}
<th> {{#expr:({{#var:basecomfort}}+0.1)*1.24 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*1.24 round 2}}
<th> {{#expr:({{#var:basecomfort}}+0.1)*1.45 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*1.45 round 2}}
<th> {{#expr:({{#var:basecomfort}}+0.1)*1.70 round 2}}
+
<td> {{#expr:({{#var:basecomfort}}+0.1)*1.70 round 2}}
 
}}
 
}}
 
|}
 
|}

Revision as of 03:59, 22 November 2021

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

This template generates a table summarizing the comfort for each quality tier. If the object in question is has the end table and dresser as facilities, 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

{{Comfort Quality Table}}

On the Bed page produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Comfort 0.57 0.66 0.75 0.84 0.93 1.09 1.28
    + End Table & Dresser 0.65 0.75 0.85 0.95 1.05 1.23 1.45
  • {{Comfort Quality Table | Armchair}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Comfort 0.61 0.7 0.8 0.9 0.99 1.16 1.36