Difference between revisions of "Template:Armor material table"

From RimWorld Wiki
Jump to navigation Jump to search
(Moved category declaration to doc subpage.)
Line 1: Line 1:
<noinclude>
+
<includeonly>==Material Table==
{{documentation}}
 
[[Category: Templates]]
 
</noinclude><includeonly>==Material Table==
 
 
<div><li style="display: inline-table;">
 
<div><li style="display: inline-table;">
 
{{#vardefine:armorname | {{{ 1 | {{PAGENAME}} }}} }}{{#vardefine:armorsharp| {{formatnum:{{Q|{{#var:armorname}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt| {{formatnum:
 
{{#vardefine:armorname | {{{ 1 | {{PAGENAME}} }}} }}{{#vardefine:armorsharp| {{formatnum:{{Q|{{#var:armorname}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt| {{formatnum:
Line 65: Line 62:
 
<sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup>
 
<sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup>
 
</li><div></includeonly>
 
</li><div></includeonly>
 +
<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 23:35, 17 January 2021


Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template generates a table summarizing stats for an article of armor, including Sharp, Blunt and Heat armor, HP, and Market Value, for the variety of different materials available for it.

Parameters

The first parameter (if present) will specify which article of armor to generate the template for. If absent, {{PAGENAME}} will be used.

The second parameter indicates if Wood should be included in the materials list. If absent, it will assume not.

Example usage

{{Armor material table | Plate armor}}

Produces:

Material Table

  • Material Sharp Blunt Heat Item HP Market Value
    Silver Plate armor 52.6% 26.3% 26.3% 203 Silver -583.2
    Gold Plate armor 52.6% 26.3% 26.3% 174 Silver -37771.62
    Steel Plate armor 65.7% 32.9% 43.8% 290 Silver -37771.62
    Plasteel Plate armor 83.2% 40.2% 47.5% 812 Silver -179429.39
    Uranium Plate armor 78.8% 39.4% 47.5% 725 Silver -566791.19

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

  • {{Armor material table | Plate armor | 1}}
    

    Produces:

    Material Table

  • Material Sharp Blunt Heat Item HP Market Value
    Wood Plate armor 39.4% 39.4% 29.2% 188.5 Silver 9.36
    Silver Plate armor 52.6% 26.3% 26.3% 203 Silver -533.94
    Gold Plate armor 52.6% 26.3% 26.3% 174 Silver -35178.82
    Steel Plate armor 65.7% 32.9% 43.8% 290 Silver -35178.82
    Plasteel Plate armor 83.2% 40.2% 47.5% 812 Silver -167147.71
    Uranium Plate armor 78.8% 39.4% 47.5% 725 Silver -528006.96

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