Difference between revisions of "User:Harakoni/ChairQualityStuffableMaterial"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{#vardefine:material| {{{ 1 | Cloth}}} }}<noinclude> {{#vardefine:name| {{{ 2 | Armchair}}} }}{{#vardefine:size|{{Q|{{#var:name}}|Size}}}}<noinclude>[<span style="color:#...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:material| {{{ 1 | Cloth}}} }}<noinclude>
+
{{#vardefine:material| {{{ 1| Cloth}}} }}
{{#vardefine:name|     {{{ 2 | Armchair}}} }}{{#vardefine:size|{{Q|{{#var:name}}|Size}}}}<noinclude>[<span style="color:#0645ad;" class="mw-collapsible mw-customtoggle-Longsword" id="mw-customcollapsible-Longsword">Expand</span><span style="color:#0645ad;" class="mw-collapsible mw-collapsed mw-customtoggle-Longsword" id="mw-customcollapsible-Longsword">Collapse</span>]
+
<noinclude>{{#vardefine:name| Armchair}}
 +
{{#vardefine:stufftags|{{lc:{{Q|{{#var:name}}|Stuff Tags}}}}}}{{#vardefine:size|{{Q|{{#var:name}}|Size}}}}
 +
{{#vardefine:image|{{Q|{{#var:name}}|Image}}}}
 +
{{#vardefine: comfort|{{Q|{{#var:name}}|Comfort Base}}}}
 +
{{#vardefine: beauty|{{Q|{{#var:name}}|Beauty Base}}}}
 +
{{#vardefine: flammability|{{Q|{{#var:name}}|Flammability Base}}}}
 +
{{#vardefine: HP|{{Q|{{#var:name}}|Max Hit Points Base}}}}
 +
</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| {{#expr: {{#var: flammability}} * {{Q|{{#var:material}}|Flammability Factor}}}}}}
 +
{{#vardefine: HPMaterial| {{#expr: {{#var: HP}} * {{Q|{{#var:material}}|Max Hit Points Factor}}}}}}
 +
<noinclude>
 +
{| class="wikitable"
 +
|+ Select which chairs you'd like to compare
 +
|-
 +
! Weapon !! Toggle !! Weapon !! Toggle
 +
|-
 +
|-
 +
| {{Icon Small|Armchair}} [[Armchair]] || <span style="color:#0645ad;" class="mw-collapsible mw-customtoggle-Armchair" id="mw-customcollapsible-Armchair">{{Cross}}</span><span style="color:#0645ad;" class="mw-collapsible mw-collapsed mw-customtoggle-Armchair" id="mw-customcollapsible-Armchair">{{Check}}</span>
 +
|}
 +
 
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
 
!  
 
!  
Line 18: 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> Comfort </td>
+
<td> {{#expr: {{#var:comfort}} * 0.76 round 2}} </td>
<td> Beauty </td>
+
<td><!--
<td> Flammability </td>
+
-->{{#vardefine:tempBeauty |
<td> HP </td>
+
  {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0
 +
    | {{#var:preBeauty}} * {{#var:beautyFactor}} {{#ifexpr: {{#var:beautyFactor}} > 0 | - | +}} 0.000000001 <!-- beauty factor provided by quality. apply small offset so 0.5 is rounded down/up depending on sign -->
 +
    | {{#var:preBeauty}} }}
 +
  round 0}}
 +
}}
 +
{{#vardefineecho:finalBeauty |
 +
  {{#ifeq: {{#var:tempBeauty}} | -0 | 0 | {{#var:tempBeauty}} }}
 +
}} </td>
 +
<td> {{#var: flammabilityMaterial}} </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 28: Line 57:
 
<td data-sort-value="2" style="text-align:right;  background-color:#e8bc84;" >'''Poor'''</td>
 
<td data-sort-value="2" style="text-align:right;  background-color:#e8bc84;" >'''Poor'''</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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Poor}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#expr: {{#var:comfort}} * 0.88 round 2}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Poor}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Poor}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 36: Line 68:
 
<td data-sort-value="3" style="text-align:right;  background-color:#e8bc84;" >'''Normal'''</td>
 
<td data-sort-value="3" style="text-align:right;  background-color:#e8bc84;" >'''Normal'''</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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Normal}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#var:comfort}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Normal}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Normal}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 44: Line 79:
 
<td data-sort-value="4" style="text-align:right;  background-color:#e8bc84;" >'''Good'''</td>
 
<td data-sort-value="4" style="text-align:right;  background-color:#e8bc84;" >'''Good'''</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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Good}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#expr: {{#var:comfort}} * 1.12 round 2}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Good}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Good}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 52: Line 90:
 
<td data-sort-value="5" style="text-align:right;  background-color:#e8bc84;" >'''Excellent'''</td>
 
<td data-sort-value="5" style="text-align:right;  background-color:#e8bc84;" >'''Excellent'''</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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Excellent}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#expr: {{#var:comfort}} * 1.24 round 2}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Excellent}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Excellent}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 60: 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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Masterwork}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#expr: {{#var:comfort}} * 1.45 round 2}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Masterwork}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Masterwork}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
Line 68: Line 112:
 
<td data-sort-value="7" style="text-align:right;  background-color:#e8bc84;" >'''Legendary'''</td>
 
<td data-sort-value="7" style="text-align:right;  background-color:#e8bc84;" >'''Legendary'''</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> {{True Melee DPS Calculator|{{#var:name}}|{{#var:material}}|Legendary}}</td>
+
<td> {{#var: size}}</td>
<td> {{#var:trueAP}}%</td>
+
<td> {{#expr: {{#var:comfort}} * 1.70 round 2}} </td>
 +
<td> Beauty </td>
 +
<td> {{#var: flammabilityMaterial}} </td>
 +
<td> {{#var: HPMaterial}} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Legendary}} {{icon small|silver|}}</td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#var:material}}|Legendary}} {{icon small|silver|}}</td>
 
</tr>
 
</tr>
 
<noinclude>[[Category: Harakoni page]]</noinclude>
 
<noinclude>[[Category: Harakoni page]]</noinclude>

Latest revision as of 03:00, 14 November 2024







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. 1.2 120 108 Silver
Armchair.png Poor Cloth Armchair 1 × 1 0.7 Beauty 1.2 120 162 Silver
Armchair.png Normal Cloth Armchair 1 × 1 0.8 Beauty 1.2 120 215 Silver
Armchair.png Good Cloth Armchair 1 × 1 0.9 Beauty 1.2 120 270 Silver
Armchair.png Excellent Cloth Armchair 1 × 1 0.99 Beauty 1.2 120 325 Silver
Armchair.png Masterwork Cloth Armchair 1 × 1 1.16 Beauty 1.2 120 540 Silver
Armchair.png Legendary Cloth Armchair 1 × 1 1.36 Beauty 1.2 120 1075 Silver