Difference between revisions of "Template:Weapon Stats Table/Melee"

From RimWorld Wiki
Jump to navigation Jump to search
(now works for weapons without quality (hardcoded list, but can easily be turned in a parameter). still need to get rid of the quality column)
(Disabling quality column when not relevant.)
Line 29: Line 29:
 
<!-- MAIN TABLE -->
 
<!-- MAIN TABLE -->
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
! {{#if:{{#var:stufftags}}|colspan="4"|colspan="3"}} style="vertical-align: middle; text-align: left;" | {{Icon Small|{{#var:name}}|32}} {{#var:name}}
+
! {{#if:{{#var:stufftags}}|{{#if:{{#var:hasQuality}}|colspan="4"|colspan="3"}}|{{#if:{{#var:hasQuality}}|colspan="3"|colspan="2"}}}} style="vertical-align: middle; text-align: left;" | {{Icon Small|{{#var:name}}|32}} {{#var:name}}
 
<th {{#vardefineecho:collapseA|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseAttacks"}} 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><!--
 
<th {{#vardefineecho:collapseA|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseAttacks"}} 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}} |
Line 41: Line 41:
 
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" style="border:#a67d47 2px; border-style: none none solid none;" | Value
 
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" style="border:#a67d47 2px; border-style: none none solid none;" | Value
 
|-
 
|-
<th style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid solid;"> Quality<br/> </th><!--
+
{{#if:{{#var:hasQuality}}|<th style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid solid;"> Quality<br/> </th>}}<!--
 
-->{{#if: {{#var:stufftags}} |
 
-->{{#if: {{#var:stufftags}} |
<th style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Material </th> }}
+
<th style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid {{#if:{{#var:hasQuality}}|none|solid}};"> Material </th> }}
<th data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> 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> </th>
+
<th data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid {{#if:{{#var:stufftags}}{{#var:hasQuality}}|none|solid}};"> 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> </th>
 
<th data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP<ref name="Actual"/> </th>
 
<th data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP<ref name="Actual"/> </th>
 
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam. </th>
 
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Dam. </th>

Revision as of 15:08, 17 April 2023

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

Summary

This template is part of the following system generating tables for all weapons:

Usage

If you want to use this template specifically you can specify the weapon as the first parameter:

{{Weapon Stats Table/Melee|Longsword}}

Otherwise it will use the name of the page it's placed on:

{{Weapon Stats Table/Melee}}

Examples

Longsword


A weapon with quality and with materials:

{{Weapon Stats Table/Melee|Longsword}}

Deactivated since the page would be to big.

Persona monosword


A weapon with quality but without materials:

{{Weapon Stats Table/Melee|Persona monosword}}
  • Feature Toggle
    Attacks Ritual Quality Check Off.pngRitual Quality Check On.png
    Quality Ritual Quality Check On.pngRitual Quality Check Off.png
    Persona monosword Persona monosword Handle (Blunt)Point (Stab)Edge (Cut) HP Value
    Quality
    DPS[1] AP[1] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Awful 11.63 57.6% 9.6 1.6s 14.4% 6 25% 21.6 1.6s 72% 13.5 38% 21.6 1.6s 72% 13.5 38% 100 1500 Silver
    Poor 13.08 64.8% 10.8 1.6s 16.2% 6.75 25% 24.3 1.6s 81% 15.19 38% 24.3 1.6s 81% 15.19 38% 100 2250 Silver
    Normal 14.53 72% 12 1.6s 18% 7.5 25% 27 1.6s 90% 16.88 38% 27 1.6s 90% 16.88 38% 100 3000 Silver
    Good 15.98 79.2% 13.2 1.6s 19.8% 8.25 25% 29.7 1.6s 99% 18.56 38% 29.7 1.6s 99% 18.56 38% 100 3500 Silver
    Excellent 17.44 86.4% 14.4 1.6s 21.6% 9 25% 32.4 1.6s 108% 20.25 38% 32.4 1.6s 108% 20.25 38% 100 4000 Silver
    Masterwork 24.47 130.5% 17.4 1.6s 26.1% 10.88 0% 39.15 1.6s 130.5% 24.47 50% 39.15 1.6s 130.5% 24.47 50% 100 5000 Silver
    Legendary 27.84 148.5% 19.8 1.6s 29.7% 12.38 0% 44.55 1.6s 148.5% 27.84 50% 44.55 1.6s 148.5% 27.84 50% 100 6000 Silver

    For the full effects of 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 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

    Club


    A weapon without quality but with materials:

    {{Weapon Stats Table/Melee|Club}}
    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

    Thrumbo horn


    A weapon without quality and without materials:

    {{Weapon Stats Table/Melee|Thrumbo horn}}
  • Feature Toggle
    Attacks Ritual Quality Check Off.pngRitual Quality Check On.png
    Thrumbo horn Thrumbo horn Point (Stab)Point (Scratch)Base (Blunt) HP Value
    DPS[1] AP[1] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Normal 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% 150 800 Silver

    For the full effects of 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 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