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

From RimWorld Wiki
Jump to navigation Jump to search
(make this whole shenanigans a bit more manageable)
(Support for stuffable weapons)
Line 40: Line 40:
 
|-
 
|-
 
! style="text-align:right;" | Awful {{#var:name}}
 
! style="text-align:right;" | Awful {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Awful}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#vardefineecho:stuffable|{{Q|{{#var:name}}|Stuff Tags}}}}|Awful}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 65: Line 65:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Awful}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Awful}} {{Icon Small|silver}}
 
|-
 
|-
 
! style="text-align:right;" | Poor {{#var:name}}
 
! style="text-align:right;" | Poor {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Poor}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Poor}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 93: Line 93:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Poor}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Poor}} {{Icon Small|silver}}
 
|-
 
|-
 
! style="text-align:right;" | Normal {{#var:name}}
 
! style="text-align:right;" | Normal {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Normal}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Normal}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 121: Line 121:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Normal}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Normal}} {{Icon Small|silver}}
 
|-
 
|-
 
! style="text-align:right;" | Good {{#var:name}}
 
! style="text-align:right;" | Good {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Good}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Good}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 149: Line 149:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Good}} {{Icon Small|silver }}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Good}} {{Icon Small|silver }}
 
|-
 
|-
 
! style="text-align:right;" | Excellent {{#var:name}}
 
! style="text-align:right;" | Excellent {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Excellent}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Excellent}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 177: Line 177:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Excellent}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Excellent}} {{Icon Small|silver}}
 
|-
 
|-
 
! style="text-align:right;" | Masterwork {{#var:name}}
 
! style="text-align:right;" | Masterwork {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Masterwork}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Masterwork}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 205: Line 205:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Masterwork}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Masterwork}} {{Icon Small|silver}}
 
|-
 
|-
 
! style="text-align:right;" | Legendary {{#var:name}}
 
! style="text-align:right;" | Legendary {{#var:name}}
| {{True Melee DPS Calculator|{{#var:name}}||Legendary}}
+
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Legendary}}
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
Line 233: Line 233:
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapse}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{Market Value Calculator|{{#var:name}}||Legendary}} {{Icon Small|silver}}
+
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stuffable}}|Steel}}|Legendary}} {{Icon Small|silver}}
 
|}
 
|}
<sup>For the full effects of qualities, see [[Quality]].</sup>
+
<sup>{{#if:{{#var:stuffable}}|Assuming it's made out of [[steel]].}} For the full effects of qualities, see [[Quality]].</sup>
 
</li></div><references/></includeonly><noinclude>
 
</li></div><references/></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:49, 31 December 2022

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}}
  • Quality DPS[1] AP[1] Handle (Blunt)Point (Stab)Edge (Cut) Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Awful Persona monosword 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% 1500 Silver
    Poor Persona monosword 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% 2250 Silver
    Normal Persona monosword 14.53 72% 12 1.6s 18% 7.5 25% 27 1.6s 90% 16.88 38% 27 1.6s 90% 16.88 38% 3000 Silver
    Good Persona monosword 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% 3500 Silver
    Excellent Persona monosword 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% 4000 Silver
    Masterwork Persona monosword 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% 5000 Silver
    Legendary Persona monosword 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% 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}}
  • Quality DPS[1] AP[1] Handle (Poke)Head (Blunt) Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Awful Club 5.1 15.2% 7.2 2s 10.4% 3.6 25% 11.2 2s 16.8% 5.6 75% 40 Silver
    Poor Club 5.74 17.1% 8.1 2s 11.7% 4.05 25% 12.6 2s 18.9% 6.3 75% 60 Silver
    Normal Club 6.38 19% 9 2s 13% 4.5 25% 14 2s 21% 7 75% 80 Silver
    Good Club 7.01 20.9% 9.9 2s 14.3% 4.95 25% 15.4 2s 23.1% 7.7 75% 100 Silver
    Excellent Club 7.65 22.8% 10.8 2s 15.6% 5.4 25% 16.8 2s 25.2% 8.4 75% 120 Silver
    Masterwork Club 9.24 27.55% 13.05 2s 18.85% 6.53 25% 20.3 2s 30.45% 10.15 75% 200 Silver
    Legendary Club 10.52 31.35% 14.85 2s 21.45% 7.43 25% 23.1 2s 34.65% 11.55 75% 400 Silver

    Assuming it's made out of steel. 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 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}}
  • Quality 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]
    Awful Thrumbo horn 7.59 27.9% 22.4 2.6s 33.6% 8.62 38% 22.4 2.6s 33.6% 8.62 38% 7.2 2s 10.8% 3.6 25% 400 Silver
    Poor Thrumbo horn 8.54 31.39% 25.2 2.6s 37.8% 9.69 38% 25.2 2.6s 37.8% 9.69 38% 8.1 2s 12.15% 4.05 25% 600 Silver
    Normal 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
    Good Thrumbo horn 10.44 38.36% 30.8 2.6s 46.2% 11.85 38% 30.8 2.6s 46.2% 11.85 38% 9.9 2s 14.85% 4.95 25% 1000 Silver
    Excellent Thrumbo horn 11.39 41.85% 33.6 2.6s 50.4% 12.92 38% 33.6 2.6s 50.4% 12.92 38% 10.8 2s 16.2% 5.4 25% 1200 Silver
    Masterwork Thrumbo horn 13.76 50.57% 40.6 2.6s 60.9% 15.62 38% 40.6 2.6s 60.9% 15.62 38% 13.05 2s 19.575% 6.53 25% 2000 Silver
    Legendary Thrumbo horn 15.66 57.54% 46.2 2.6s 69.3% 17.77 38% 46.2 2.6s 69.3% 17.77 38% 14.85 2s 22.275% 7.43 25% 3800 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