Difference between revisions of "Template:Other Weapon Attack Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 2 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 2 Type}}|{{Q|{{#var:name}}|Attack 2 Type}}]])</th>
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 2 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 2 Type}}|{{Q|{{#var:name}}|Attack 2 Type}}]])</th>
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br/>
+
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 3 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 3 Type}}|{{Q|{{#var:name}}|Attack 3 Type}}]])</th>
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 3 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 3 Type}}|{{Q|{{#var:name}}|Attack 3 Type}}]])</th>
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br/>
+
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 4 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 4 Type}}|{{Q|{{#var:name}}|Attack 4 Type}}]])</th>
 
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 4 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 4 Type}}|{{Q|{{#var:name}}|Attack 4 Type}}]])</th>
 
}}
 
}}
 
! 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>]
 
! 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>
 
<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>
 
<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>
 
<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>
 
<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>
Line 47: Line 47:
 
<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>
 
<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>
 
|-
 
|-
 
! style="text-align:right;" | '''{{#var:name}}'''
 
! style="text-align:right;" | '''{{#var:name}}'''

Revision as of 14:45, 31 October 2022

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


Description

This template generates a table summarizing stats for an given melee weapon, including average damage per second, armor piercing and Market Value.

This template is intended exclusively for weapons that are not stuffable, for that see Template:Weapon Material Table, and do not have quality, for that see Template:Weapon Stats Table. This template exists to give an equivalent comparison method to those tables.

Parameters

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

The second parameter (if present) suppresses the heading.

Example usage

{{Other Weapon Attack Table | Thrumbo horn}}

Produces:

Attack table

  • Name DPS[1] AP[1] Point (Stab) Point (Scratch) Base (Blunt) Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Thrumbo horn 9.49 34.88% 28 2.6s 42% 10.77 38% 28 2.6s 42% 10.77 38% 9 2s 13.5% 4.5 25% 800 Silver
    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 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