Difference between revisions of "Template:Armor material table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
{{#vardefine:armorsharp|{{Q|{{PAGENAME}}|Armor - Sharp}}}} {{#vardefine:armorblunt|{{Q|{{PAGENAME}}|Armor - Blunt}}}} {{#vardefine:armorheat|{{Q|{{PAGENAME}}|Armor - Sharp}}}} {{#vardefine:HP|{{Q|{{PAGENAME}}|HP}}}}{{#vardefine:value|{{Q|{{PAGENAME}}|Market Value}}}}
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
 
|-
 
|-
Line 10: Line 11:
  
 
| Silver
 
| Silver
| {{ #expr: 0.72*{{Q|{{PAGENAME}}|Armor - Sharp}}*100}}%
+
| {{ #expr: 0.72*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: 0.36*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: 0.36*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: 0.36*{{#var:armorheat|}}*100}}%
 
| {{ #expr: 0.36*{{#var:armorheat|}}*100}}%

Revision as of 01:50, 13 March 2020

Material Sharp Blunt Heat Item HP Market Value
Silver Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Gold Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Steel Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Plasteel Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Uranium Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.

Assuming Normal quality, for the effect of other qualities, see Quality.

To use; first define scalar values then place template. Example values are for Plate armor

{{#vardefine:armorsharp|0.73}}
{{#vardefine:armorblunt|0.73}}
{{#vardefine:armorheat|0.73}}
{{#vardefine:HP|290}}
{{#vardefine:value|535}}
{{Armor material table}}

Which would result in:

Material Sharp Blunt Heat Item HP Market Value
Silver Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Gold Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Steel Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Plasteel Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.
Uranium Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Unexpected * operator.% Expression error: Missing operand for *. Silver Expression error: Missing operand for *.

Assuming Normal quality, for the effect of other qualities, see Quality.


There is a way to pull this data straight from the infobox and not require the initial definitions, but it is not currently supported by this template.