Difference between revisions of "User:Harakoni/ChairQualityStuffableMaterial"

From RimWorld Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
{{#vardefine: flammability|{{Q|{{#var:name}}|Flammability Base}}}}
 
{{#vardefine: flammability|{{Q|{{#var:name}}|Flammability Base}}}}
 
{{#vardefine: HP|{{Q|{{#var:name}}|HP}}}}
 
{{#vardefine: HP|{{Q|{{#var:name}}|HP}}}}
 
+
</noinclude>
 +
{{#vardefine:preBeauty | {{#expr: {{#var:beauty}} <!-- base beauty of the building --> * {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{#if:{{#var:stufftags}}|{{Q|{{#var:material}}|Beauty Factor}}|1}} }} <!-- beauty factor provided by the material. Set to 1 if base beauty of the building is negative --> + {{Q|{{#var:material}}|Beauty Offset|0}} <!-- beauty offset provided by the material -->}} }}
 +
{{#vardefine: flammabilityMaterial| {{#var: flammability}} * {{Q|{{#var:material}}|Flammability Factor}}
 +
{{#vardefine: HPMaterial| {{#var: HP}} * {{Q|{{#var:material}}|Max Hit Points Factor}}
 +
<noinclude>
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ Select which chairs you'd like to compare
 
|+ Select which chairs you'd like to compare
Line 34: Line 38:
 
<td style="text-align:left; background-color:#e8bc84;" > '''[[{{#var:material}}]] [[{{#var:name}}]]''' </td>  
 
<td style="text-align:left; background-color:#e8bc84;" > '''[[{{#var:material}}]] [[{{#var:name}}]]''' </td>  
 
<td> {{#var: size}}</td>
 
<td> {{#var: size}}</td>
<td> {{#expr: {{#var:comfort}} *{{#var:comfortFactor}} round 2}} </td>
+
<td> {{#expr: {{#var:comfort}} * 0.76 round 2}} </td>
<td> {{#vardefine:preBeauty | {{#expr: {{#var:beauty}} <!-- base beauty of the building -->
+
<td><!--
  * {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Beauty Factor}}|1}} }} <!-- beauty factor provided by the material. Set to 1 if base beauty of the building is negative -->
 
  + {{Q|{{{1}}}|Beauty Offset|0}} <!-- beauty offset provided by the material -->
 
}} }}<!--
 
 
-->{{#vardefine:tempBeauty |
 
-->{{#vardefine:tempBeauty |
 
   {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0
 
   {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0
Line 48: Line 49:
 
   {{#ifeq: {{#var:tempBeauty}} | -0 | 0 | {{#var:tempBeauty}} }}
 
   {{#ifeq: {{#var:tempBeauty}} | -0 | 0 | {{#var:tempBeauty}} }}
 
}} </td>
 
}} </td>
<td> Flammability </td>
+
<td> {{#var: flammabilityMaterial}} </td>
<td> HP </td>
+
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Awful}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Awful}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 100: Line 101:
 
<td data-sort-value="6" style="text-align:right;  background-color:#e8bc84;" >'''Masterwork'''</td>
 
<td data-sort-value="6" style="text-align:right;  background-color:#e8bc84;" >'''Masterwork'''</td>
 
<td style="text-align:left; background-color:#e8bc84;" > '''[[{{#var:material}}]] [[{{#var:name}}]]''' </td>  
 
<td style="text-align:left; background-color:#e8bc84;" > '''[[{{#var:material}}]] [[{{#var:name}}]]''' </td>  
<<td> Size </td>
+
<td> Size </td>
 
<td> Comfort </td>
 
<td> Comfort </td>
 
<td> Beauty </td>
 
<td> Beauty </td>

Revision as of 21:07, 13 November 2024






{{#vardefine: flammabilityMaterial| 1 * 1.2 {{#vardefine: HPMaterial| * 1

Select which chairs you'd like to compare
Weapon Toggle Weapon Toggle
Armchair Armchair Ex.pngCheck.png
Quality Name Size Comfort Beauty Flammability HP Market Value
Armchair.png Awful Cloth Armchair 1 × 1 0.61 Expression error: Unexpected < operator. 108 Silver
Armchair.png Poor Cloth Armchair Size Comfort Beauty Flammability HP 162 Silver
Armchair.png Normal Cloth Armchair Size Comfort Beauty Flammability HP 215 Silver
Armchair.png Good Cloth Armchair Size Comfort Beauty Flammability HP 270 Silver
Armchair.png Excellent Cloth Armchair Size Comfort Beauty Flammability HP 325 Silver
Armchair.png Masterwork Cloth Armchair Size Comfort Beauty Flammability HP 540 Silver
Armchair.png Legendary Cloth Armchair Size Comfort Beauty Flammability HP 1075 Silver