Difference between revisions of "Template:Comfort Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
(more details)
(percentages)
Line 11: Line 11:
 
|-
 
|-
 
! [[Comfort]]
 
! [[Comfort]]
| {{#expr:{{#vardefineecho:basecomfort | {{Q|{{#vardefineecho:name | {{{1|{{PAGENAME}} }}} }}|Comfort Base}} }}*0.76 round 2}}
+
| {{%|{{#vardefineecho:basecomfort | {{Q|{{#vardefineecho:name | {{{1|{{PAGENAME}} }}} }}|Comfort Base}} }}*0.76|0}}
| {{#expr:{{#var:basecomfort}}*0.88 round 2}}
+
| {{%|{{#var:basecomfort}}*0.88|0}}
| {{#expr:{{#var:basecomfort}}*1.00 round 2}}  
+
| {{%|{{#var:basecomfort}}*1.00|0}}  
| {{#expr:{{#var:basecomfort}}*1.12 round 2}}
+
| {{%|{{#var:basecomfort}}*1.12|0}}
| {{#expr:{{#var:basecomfort}}*1.24 round 2}}
+
| {{%|{{#var:basecomfort}}*1.24|0}}
| {{#expr:{{#var:basecomfort}}*1.45 round 2}}
+
| {{%|{{#var:basecomfort}}*1.45|0}}
| {{#expr:{{#var:basecomfort}}*1.70 round 2}}
+
| {{%|{{#var:basecomfort}}*1.70|0}}
 
{{#if: {{#pos:{{#vardefineecho:facility | {{Q|{{#var:name}}|Facility}} }}|End table}} |
 
{{#if: {{#pos:{{#vardefineecho:facility | {{Q|{{#var:name}}|Facility}} }}|End table}} |
 
   <tr>
 
   <tr>
 
   ! <small>+ End Table</small>
 
   ! <small>+ End Table</small>
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*0.76 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*0.76|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*0.88 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*0.88|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.00 round 2}}  
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.00|0}}  
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.12 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.12|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.24 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.24|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.45 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.45|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.70 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.70|0}}
 
   </tr>
 
   </tr>
 
}} {{#if: {{#pos:{{#var:facility}}|Dresser}} |
 
}} {{#if: {{#pos:{{#var:facility}}|Dresser}} |
 
   <tr>
 
   <tr>
 
   ! <small>+ Dresser</small>
 
   ! <small>+ Dresser</small>
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*0.76 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*0.76|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*0.88 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*0.88|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.00 round 2}}  
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.00|0}}  
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.12 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.12|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.24 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.24|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.45 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.45|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.05)*1.70 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.05)*1.70|0}}
 
   </tr>
 
   </tr>
 
}} {{#if: {{#pos:{{#var:facility}}|End table}} | {{#if: {{#pos:{{#var:facility}}|Dresser}} |
 
}} {{#if: {{#pos:{{#var:facility}}|End table}} | {{#if: {{#pos:{{#var:facility}}|Dresser}} |
 
   <tr>
 
   <tr>
 
   ! <small>+ End Table & Dresser</small>
 
   ! <small>+ End Table & Dresser</small>
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*0.76 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*0.76|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*0.88 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*0.88|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*1.00 round 2}}  
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*1.00|0}}  
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*1.12 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*1.12|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*1.24 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*1.24|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*1.45 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*1.45|0}}
   {{!}} {{#expr:({{#var:basecomfort}}+0.1)*1.70 round 2}}
+
   {{!}} {{%|({{#var:basecomfort}}+0.1)*1.70|0}}
 
   </tr>
 
   </tr>
 
}} }}
 
}} }}

Revision as of 09:26, 16 December 2023

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 57% 66% 75% 84% 93% 109% 128%
    + End Table 61% 70% 80% 90% 99% 116% 136%
    + Dresser 61% 70% 80% 90% 99% 116% 136%
    + End Table & Dresser 65% 75% 85% 95% 105% 123% 145%
  • {{Comfort Quality Table | Armchair}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Comfort 61% 70% 80% 90% 99% 116% 136%