Difference between revisions of "Template:Weapon Material Table"

From RimWorld Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>==Material Table==
+
<includeonly>== Material table ==
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}<!--
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}<!--
 
-->{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base|100}}|R}}}}<!--
 
-->{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base|100}}|R}}}}<!--
Line 12: Line 12:
 
<div><li style="display: inline-table;">
 
<div><li style="display: inline-table;">
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
|-
 
 
! rowspan="2" style="vertical-align: middle;" | Material
 
! rowspan="2" style="vertical-align: middle;" | Material
! rowspan="2" style="vertical-align: middle;" | DPS<ref>Note: This is the actual base DPS that uses the melee verb system updated in [[Version/1.1.2610|1.1.2610]], it may sometimes disagree with the listed DPS in the in-game infobox. It may also change depending on the melee verbs available to the wielder</ref>
+
! rowspan="2" style="vertical-align: middle;" | DPS<ref name="Actual">Note: This is the actual base average derived from the [[Weapons#Listed_DPS_on_pawns|melee verb system]] updated in [[Version/1.1.2610|1.1.2610]], it may sometimes disagree with the listed value in the in-game infobox.<br>It may also change depending on the stats and the melee verbs available to the wielder</ref>
! rowspan="2" style="vertical-align: middle;" | AP<ref>Note: This is the actual base AP that uses the melee verb system updated in [[Version/1.1.2610|1.1.2610]], it may sometimes disagree with the listed AP in the in-game infobox. It may also change depending on the melee verbs available to the wielder</ref>
+
! rowspan="2" style="vertical-align: middle;" | AP<ref name="Actual"/>
! style="border-style: none;" colspan="5" | {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}]])
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}]]) </th>
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
! style="border-style: none;" colspan="5" {{!}} {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}]])
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}]]) </th>
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|
! style="border-style: none;" colspan="5" {{!}} {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}]])
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}]]) </th>
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|
! style="border-style: none;" colspan="5" {{!}} {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Type}}]])
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Part}}}} ([[Damage types#{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Type}}|{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Type}}]]) </th>
 
}}
 
}}
 
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" | HP
 
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" | HP
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" | Value
+
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" | Value [<span style="color:#0645ad;" class="mw-collapsible mw-customtoggle-collapseMeleeTable" id="mw-customcollapsible-collapseMeleeTable">Expand</span><span style="color:#0645ad;" class="mw-collapsible mw-collapsed mw-customtoggle-collapseMeleeTable" id="mw-customcollapsible-collapseMeleeTable">Collapse</span>]
|-
+
<tr>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;" | Dam.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"| Cool.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"| AP
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"| DPS
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"| Chance<ref name="Chance">Chance for attack to be selected, assuming only the weapon attacks are considered.</ref>
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance">Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder</ref></th>
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Dam.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Cool.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} AP
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} DPS
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Chance<ref name="Chance"/>
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Dam.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Cool.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} AP
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} DPS
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Chance<ref name="Chance"/>
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Dam.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Cool.
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} AP
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} DPS
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
! data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"{{!}} Chance<ref name="Chance"/>
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
 
}}
 
}}
|-
+
</tr>
{{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}}||  
+
{{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} ||
{{Weapon Material Table Row |Bearskin}}
+
  {{#ask: [[Stuff Category::Leathery]]
{{Weapon Material Table Row |Birdskin}}
+
    | format = template
{{Weapon Material Table Row |Bluefur}}
+
    | template = Weapon Material Table Row
{{Weapon Material Table Row |Camelhide}}
+
    | link = none
{{Weapon Material Table Row |Chinchilla fur}}
+
}} }}<!--
{{Weapon Material Table Row |Dog leather}}
+
-->{{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} ||
{{Weapon Material Table Row |Elephant leather}}
+
  {{#ask: [[Stuff Category::Fabric]]
{{Weapon Material Table Row |Foxfur}}
+
    | format = template
{{Weapon Material Table Row |Guinea pig fur}}
+
    | template = Weapon Material Table Row
{{Weapon Material Table Row |Heavy fur}}
+
    | link = none
{{Weapon Material Table Row |Human leather}}
+
}} }}<!--
{{Weapon Material Table Row |Lightleather}}
+
-->{{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} ||
{{Weapon Material Table Row |Lizardskin}}
+
  {{#ask: [[Stuff Category::Woody]]
{{Weapon Material Table Row |Panthera fur}}
+
    | format = template
{{Weapon Material Table Row |Patchleather}}
+
    | template = Weapon Material Table Row
{{Weapon Material Table Row |Pigskin}}
+
    | link = none
{{Weapon Material Table Row |Plainleather}}
+
}} }}<!--
{{Weapon Material Table Row |Rhinoceros leather}}
+
-->{{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} ||
{{Weapon Material Table Row |Thrumbofur}}
+
  {{#ask: [[Stuff Category::Stony]]
{{Weapon Material Table Row |Wolfskin}}
+
    | format = template
}}
+
    | template = Weapon Material Table Row
|-
+
    | link = none
{{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}||  
+
}} }}<!--
{{Weapon Material Table Row |Alpaca wool}}
+
-->{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} ||
{{Weapon Material Table Row |Bison wool}}
+
  {{#ask: [[Stuff Category::Metallic]]
{{Weapon Material Table Row |Cloth}}
+
    | format = template
{{Weapon Material Table Row |Devilstrand}}
+
    | template = Weapon Material Table Row
{{Weapon Material Table Row |Hyperweave}}
+
    | link = none
{{Weapon Material Table Row |Megasloth wool}}
+
}} }}
{{Weapon Material Table Row |Muffalo wool}}
 
{{Weapon Material Table Row |Sheep wool}}
 
{{Weapon Material Table Row |Synthread}}
 
}}
 
|-
 
{{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}||  
 
{{Weapon Material Table Row |Wood}}
 
}}
 
|-
 
{{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}||  
 
{{Weapon Material Table Row |Granite blocks}}
 
{{Weapon Material Table Row |Limestone blocks}}
 
{{Weapon Material Table Row |Marble blocks}}
 
{{Weapon Material Table Row |Sandstone blocks}}
 
{{Weapon Material Table Row |Slate blocks}}
 
{{Weapon Material Table Row |Jade}}
 
}}
 
|-
 
{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}}||
 
{{Weapon Material Table Row |Gold}}
 
{{Weapon Material Table Row |Plasteel}}
 
{{Weapon Material Table Row |Silver}}
 
{{Weapon Material Table Row |Steel}}
 
{{Weapon Material Table Row |Uranium}}
 
}}
 
|-
 
 
|}
 
|}
 
<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>
{{Reflist}} </li></div></includeonly><noinclude>
+
</li></div><references/></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:05, 31 December 2022

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


Description[edit]

This template generates a table summarizing stats for a weapon for the variety of different materials available for it.

The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Weapon Material Table Row and Template:True Melee DPS Calculator

Parameters[edit]

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

Example usage[edit]

{{Weapon Material Table}}

on the Ikwa page would produce:

Material table

  • Material DPS[1] AP[1] Handle (Blunt) Handle (Poke) Head (Stab) Edge (Cut) HP Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Wooden Ikwa 3.79 10.98% 8.1 2s 11.7% 4.05 37.5% 8.1 2s 11.7% 4.05 37.5% 6 2s 8.8% 3 12.5% 6 2s 8.8% 3 12.5% 65 73 Silver
    Bioferrite Ikwa 8.33 24.38% 8.1 2s 11.7% 4.05 12.5% 8.1 2s 11.7% 4.05 12.5% 19.5 2s 28.6% 9.75 37.5% 19.5 2s 28.6% 9.75 37.5% 200 83 Silver
    Golden Ikwa 5.34 15.63% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 11.25 2s 16.5% 5.63 37.5% 11.25 2s 16.5% 5.63 37.5% 60 5015 Silver
    Plasteel Ikwa 9 21.08% 8.1 1.28s 11.7% 6.33 12.5% 8.1 1.28s 11.7% 6.33 12.5% 16.5 1.28s 24.2% 12.89 37.5% 16.5 1.28s 24.2% 12.89 37.5% 280 490 Silver
    Silver Ikwa 5.91 17.28% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 12.75 2s 18.7% 6.38 37.5% 12.75 2s 18.7% 6.38 37.5% 70 520 Silver
    Steel Ikwa 6.75 19.75% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 15 2s 22% 7.5 37.5% 15 2s 22% 7.5 37.5% 100 113 Silver
    Uranium Ikwa 7.16 23.03% 13.5 2.42s 19.5% 5.58 12.5% 13.5 2.42s 19.5% 5.58 12.5% 16.5 2.42s 24.2% 6.82 37.5% 16.5 2.42s 24.2% 6.82 37.5% 250 335 Silver

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

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 2.2 2.3 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder
    {{Weapon Material Table | Axe}}
    

    on any page would produce:

    Material table

  • Material DPS[1] AP[1] Handle (Poke) Edge (Cut) HP Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Wooden Axe 3.79 10.98% 8.1 2s 11.7% 4.05 75% 6 2s 8.8% 3 25% 65 78 Silver
    Bioferrite Axe 8.33 24.38% 8.1 2s 11.7% 4.05 25% 19.5 2s 28.6% 9.75 75% 200 101 Silver
    Golden Axe 5.34 15.63% 9 2s 13% 4.5 25% 11.25 2s 16.5% 5.63 75% 60 5025 Silver
    Plasteel Axe 9 21.08% 8.1 1.28s 11.7% 6.33 25% 16.5 1.28s 24.2% 12.89 75% 280 505 Silver
    Silver Axe 5.91 17.28% 9 2s 13% 4.5 25% 12.75 2s 18.7% 6.38 75% 70 525 Silver
    Steel Axe 6.75 19.75% 9 2s 13% 4.5 25% 15 2s 22% 7.5 75% 100 120 Silver
    Uranium Axe 7.16 23.03% 13.5 2.42s 19.5% 5.58 25% 16.5 2.42s 24.2% 6.82 75% 250 350 Silver

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

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder