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

From RimWorld Wiki
Jump to navigation Jump to search
(For weapons not covered by the Quality and Material Tables)
 
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:name | {{{ 1 |{{PAGENAME}}}}} }}<!--
+
<includeonly>{{#if:{{{2|}}}||== Attack table ==}}
 +
{{#vardefine:name | {{{ 1 |{{PAGENAME}}}}} }}<!--
 
-->{{#vardefine: attack1Cooldown|{{Q|{{#var:name}}|Attack 1 Cooldown}}}}<!--
 
-->{{#vardefine: attack1Cooldown|{{Q|{{#var:name}}|Attack 1 Cooldown}}}}<!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|<!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|<!--
Line 9: Line 10:
 
<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;" | Name
 
! 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. It may also change depending on the stats and 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. 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 name="Actual"/>
 
! rowspan="2" style="vertical-align: middle;" | AP<ref name="Actual"/>
! style="border-style: none;" colspan="5" | {{ucfirst:{{Q|{{#var:name}}|Attack 1 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 1 Type}}|{{Q|{{#var:name}}|Attack 1 Type}}]])
+
<th class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable" style="border-style: none;" colspan="5"> {{ucfirst:{{Q|{{#var:name}}|Attack 1 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 1 Type}}|{{Q|{{#var:name}}|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|{{#var:name}}|Attack 2 Part}}}} ([[Damage types#{{Q|{{#var:name}}|Attack 2 Type}}|{{Q|{{#var:name}}|Attack 2 Type}}]])
+
<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}}|
! 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 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}}|
! 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 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
+
! 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's attack verbs are considered. It may change depending on the melee verbs available to the wielder</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>
 
|-
 
|-
!style="text-align:right;" |'''{{#var:name}}'''
+
! style="text-align:right;" | {{#var:name}}
 
| {{True Melee DPS Calculator|{{#var:name}}||Normal}}
 
| {{True Melee DPS Calculator|{{#var:name}}||Normal}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
| style="border:#d09c59 2px; border-style: none none none solid;"|{{#var: attack1Damage}}
+
<td class="mw-collapsible mw-collapsed"  style="border:#d09c59 2px; border-style: none none none solid;" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack1Damage}} </td>
| {{#var:attack1Cooldown}}s
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack1Cooldown}}s </td>
| {{#expr: {{#var: attack1AP}}}}%
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack1AP}}}}% </td>
| {{#expr: {{#var: attack1Damage}}/{{#var:attack1Cooldown}} round 2}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
| style="border:#d09c59 2px; border-style: none solid none none;"| {{#expr: 100*{{#var:attack1SelectionChance}} round 2}}%
+
<td class="mw-collapsible mw-collapsed" style="border:#d09c59 2px; border-style: none solid none none;" id="mw-customcollapsible-collapseMeleeTable"> {{%|{{#var:attack1SelectionChance}} round 2}} </td>
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
{{!}} {{#var: attack2Damage}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack2Damage}} </td>
{{!}} {{#var:attack2Cooldown}}s
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack2Cooldown}}s </td>
{{!}} {{#expr: {{#var: attack2AP}}}}%
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack2AP}}}}% </td>
{{!}} {{#expr: {{#var: attack2Damage}}/{{#var:attack2Cooldown}} round 2}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
{{!}} style="border:#d09c59 2px; border-style: none solid none none;"{{!}} {{#expr: 100*{{#var:attack2SelectionChance}} round 2}}%
+
<td class="mw-collapsible mw-collapsed" style="border:#d09c59 2px; border-style: none solid none none;" id="mw-customcollapsible-collapseMeleeTable"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
{{!}} {{#var: attack3Damage}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack3Damage}} </td>
{{!}} {{#var:attack3Cooldown}}s
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack3Cooldown}}s </td>
{{!}} {{#expr: {{#var: attack3AP}}}}%
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack3AP}}}}% </td>
{{!}} {{#expr: {{#var: attack3Damage}}/{{#var:attack3Cooldown}} round 2}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
{{!}} style="border:#d09c59 2px; border-style: none solid none none;"{{!}} {{#expr: 100*{{#var:attack3SelectionChance}} round 2}}%
+
<td class="mw-collapsible mw-collapsed" style="border:#d09c59 2px; border-style: none solid none none;" id="mw-customcollapsible-collapseMeleeTable"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br>
+
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
{{!}} {{#var: attack4Damage}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack4Damage}} </td>
{{!}} {{#var:attack4Cooldown}}s
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#var:attack4Cooldown}}s </td>
{{!}} {{#expr: {{#var: attack4AP}}}}%
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack4AP}}}}% </td>
{{!}} {{#expr: {{#var: attack4Damage}}/{{#var:attack4Cooldown}} round 2}}
+
<td class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeTable"> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
{{!}} style="border:#d09c59 2px; border-style: none solid none none;"{{!}} {{#expr: 100*{{#var:attack4SelectionChance}} round 2}}%}}
+
<td class="mw-collapsible mw-collapsed" style="border:#d09c59 2px; border-style: none solid none none;" id="mw-customcollapsible-collapseMeleeTable"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Normal}} {{icon small|silver|}}
+
| {{Market Value Calculator|{{#var:name}}||Normal}} {{Icon Small|silver}}
 
|-
 
|-
|}
+
|}</li></div><references/></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:20, 21 March 2023

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


Description[edit]

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[edit]

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[edit]

{{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