Difference between revisions of "User:Harakoni/MeleeStuffable"

From RimWorld Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{{#vardefine:avgAP|    {{formatnum:{{Q|{{#var:name}}|MeleeAP}}|R}}}}
 
{{#vardefine:avgAP|    {{formatnum:{{Q|{{#var:name}}|MeleeAP}}|R}}}}
 
{{#vardefine:dmgType|  {{formatnum:{{Q|{{#var:name}}|Damage Type}}|R}}}}
 
{{#vardefine:dmgType|  {{formatnum:{{Q|{{#var:name}}|Damage Type}}|R}}}}
{{#vardefine:value|    {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}
+
{{#vardefine:value|    {{#if: {{Q|{{#var:name}}|Market Value Base}} | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} |  {{formatnum: {{Market Value Calculator|{{#var:name}}|{{#var:material}}}}|R}} }} }}
  
 
{{#ifeq:  {{#var:dmgType}} | Blunt |  
 
{{#ifeq:  {{#var:dmgType}} | Blunt |  
Line 24: Line 24:
 
!Avg AP
 
!Avg AP
 
!Damage Type
 
!Damage Type
!Market Value
+
! data-sort-type=number | Market Value
 
|-
 
|-
 
</noinclude>
 
</noinclude>
Line 33: Line 33:
 
|  {{ #expr: {{#var:avgAP}} {{#if: {{#var:material}}| *{{#var:dmgMulti|}} |}} round 2}}%
 
|  {{ #expr: {{#var:avgAP}} {{#if: {{#var:material}}| *{{#var:dmgMulti|}} |}} round 2}}%
 
| {{#var:dmgType|}}
 
| {{#var:dmgType|}}
| {{icon|silver|{{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}}}
+
| {{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}{{icon|silver|}}
 
|-
 
|-
 +
<noinclude>[[Category: Harakoni page]]</noinclude>

Latest revision as of 10:43, 10 February 2021








Quality Avg Damage Avg AP Damage Type Market Value
Elephant tusk Elephant tusk Expression error: Unexpected round operator. Expression error: Unexpected round operator.% 40 Silver