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)
Line 1: Line 1:
<includeonly><div><li style="display: inline-table;">
+
<includeonly><div><li style="display: inline-table;"><!--
{{#vardefine:stufftags|{{lc:{{Q|{{#vardefineecho:name | {{{ 1 | {{PAGENAME}} }}} }}|Stuff Tags}} }} }}<!--
+
--><!-- VARIABLES --><!--
-->{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base|100}}|R}}}}<!--
+
-->{{#vardefine:name      | {{{1|{{PAGENAME}} }}} }}<!-- Name of the weapon
-->{{#vardefine:defaultM|{{{2|Steel}}} }}
+
-->{{#vardefine:defaultM  | {{{2|Steel}}} }}<!-- Default material. Default = 100, since it's weapon modifiers are all 1.
 +
-->{{#vardefine:stufftags  | {{lc: {{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- The weapons stuff tags. Empty if weapon isn't stuffable
 +
-->{{#vardefine:HP         | {{formatnum: {{Q|{{#var:name}}|Max Hit Points Base|100}} | R}} }}<!-- The weapons hit points. Default = 100
 +
-->{{#vardefine:hasQuality | {{#switch: {{#var:name}} | Beer | Club | Elephant tusk | Thrumbo horn | Wood = | #default = true}} }}<!-- True if the weapon has quality
 +
-->
 +
<!-- CONTROL PANEL -->
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ <!--Select which features you'd like to compare-->
 
|+ <!--Select which features you'd like to compare-->
Line 9: Line 14:
 
|-
 
|-
 
{{Control Panel|Attacks}}
 
{{Control Panel|Attacks}}
{{#if:{{#var:stufftags}}|{{Control Panel|Quality}}|{{Control Panel|Quality|invert=yes}}}}
+
{{#if:{{#var:hasQuality}}|{{#if:{{#var:stufftags}}|{{Control Panel|Quality}}|{{Control Panel|Quality|invert=yes}} }} }}
 
<!--{{#if:{{#var:stufftags}} |
 
<!--{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
Line 22: Line 27:
 
}} -->
 
}} -->
 
|}
 
|}
 
+
<!-- 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}}|colspan="4"|colspan="3"}} style="vertical-align: middle; text-align: left;" | {{Icon Small|{{#var:name}}|32}} {{#var:name}}
Line 41: Line 46:
 
<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 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 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>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool. </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS </th>
<th {{#var:collapseA}} 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><!--
+
<th {{#var:collapseA}} 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}} |
<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>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool. </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
+
<th {{#var:collapseA}} 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}} |  
+
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
<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>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool. </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
+
<th {{#var:collapseA}} 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}} |  
+
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
<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>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool.</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Cool. </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> AP </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS</th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> DPS </th>
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/></th>
+
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/> </th>
}}
+
}}<!--
|- {{#if: {{#var:stufftags}} | {{#vardefineecho:collapseQ|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality"}} | {{#vardefineecho:collapseQ|class="mw-collapsible" id="mw-customcollapsible-collapseQuality"}} }}
+
-->{{#if:{{#var:hasQuality}} |
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|0}}" | {{#vardefineecho:quality|Awful}} <!--
+
<tr {{#if: {{#var:stufftags}} | {{#vardefineecho:collapseQ|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality"}} | {{#vardefineecho:collapseQ|class="mw-collapsible" id="mw-customcollapsible-collapseQuality"}} }}>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}} }} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|0}}"> {{#vardefineecho:quality|Awful}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Awful}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#vardefineecho:attack1Cooldown | {{Q|{{#var:name}}|Attack 1 Cooldown}} }}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 77: Line 83:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#vardefineecho:attack2Cooldown | {{Q|{{#var:name}}|Attack 2 Cooldown}} }}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 83: Line 89:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#vardefineecho:attack3Cooldown | {{Q|{{#var:name}}|Attack 3 Cooldown}} }}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 89: Line 95:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#vardefineecho:attack4Cooldown | {{Q|{{#var:name}}|Attack 4 Cooldown}} }}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Awful}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 106: Line 112:
 
   }}
 
   }}
 
}}
 
}}
|- {{#var:collapseQ}}
+
</tr>
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|1}}"| {{#vardefineecho:quality|Poor}}<!--
+
<tr {{#var:collapseQ}}>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|1}}"> {{#vardefineecho:quality|Poor}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Poor}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 118: Line 125:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 124: Line 131:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 130: Line 137:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Poor}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 147: Line 154:
 
   }}
 
   }}
 
}}
 
}}
|-
+
</tr>}}
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|2}}"| {{#vardefineecho:quality|Normal}} <!--
+
<tr>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|2}}"> {{#vardefineecho:quality|Normal}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Normal}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 159: Line 167:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 165: Line 173:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 171: Line 179:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Normal}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 188: Line 196:
 
   }}
 
   }}
 
}}
 
}}
|- {{#var:collapseQ}}
+
</tr><!--
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|3}}"| {{#vardefineecho:quality|Good}} <!--
+
-->{{#if:{{#var:hasQuality}} |
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<tr {{#var:collapseQ}}>
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Good}}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|3}}"> {{#vardefineecho:quality|Good}} </th><!--
| {{#var:trueAP}}%
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 +
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 200: Line 210:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 206: Line 216:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 212: Line 222:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Good}} {{Icon Small|silver }}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 229: Line 239:
 
   }}
 
   }}
 
}}
 
}}
|- {{#var:collapseQ}}
+
</tr>
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|4}}"| {{#vardefineecho:quality|Excellent}} <!--
+
<tr {{#var:collapseQ}}>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|4}}"> {{#vardefineecho:quality|Excellent}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Excellent}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 241: Line 252:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 247: Line 258:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 253: Line 264:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Excellent}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 270: Line 281:
 
   }}
 
   }}
 
}}
 
}}
|- {{#var:collapseQ}}
+
</tr>
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|5}}"| {{#vardefineecho:quality|Masterwork}} <!--
+
<tr {{#var:collapseQ}}>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|5}}"> {{#vardefineecho:quality|Masterwork}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Masterwork}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 282: Line 294:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 288: Line 300:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 294: Line 306:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Masterwork}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 311: Line 323:
 
   }}
 
   }}
 
}}
 
}}
|- {{#var:collapseQ}}
+
</tr>
! style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|6}}"| {{#vardefineecho:quality|Legendary}} <!--
+
<tr {{#var:collapseQ}}>
-->{{#if: {{#var:stufftags}} | {{!!}} style="text-align:left;" data-sort-value="{{#var:defaultM}}" {{!}} {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] }}
+
<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|6}}"> {{#vardefineecho:quality|Legendary}} </th><!--
| {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Legendary}}
+
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
| {{#var:trueAP}}%
+
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 +
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack1Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
Line 323: Line 336:
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack2Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
Line 329: Line 342:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack3Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
Line 335: Line 348:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
<td {{#var:collapseA}}> {{#var:attack4Cooldown}}s </td>
+
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
| {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }}
+
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
| {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Legendary}} {{Icon Small|silver}}
+
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
Line 351: Line 364:
 
     | link = none
 
     | link = none
 
   }}
 
   }}
 +
}}
 +
</tr>
 
}}
 
}}
 
|}
 
|}

Revision as of 13:49, 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
    Quality
    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