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

From RimWorld Wiki
Jump to navigation Jump to search
(note about quality only when necessary)
(fixed some odd looking borders. removed collapseQ, since it's no longer used. simplified colspan. (hopefully) making even clearer what's going in)
Line 28: Line 28:
 
<!-- MAIN TABLE -->
 
<!-- MAIN TABLE -->
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
! {{#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}}
+
! colspan="{{#expr: 2 {{#if:{{#var:stufftags}}|+1}} {{#if:{{#var:hasQuality}}|+1}} }}" 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 37: Line 37:
 
<th {{#var:collapseA}} 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 {{#var:collapseA}} 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" style="border:#a67d47 2px; border-style: none none solid none;" | {{HP}}
+
! rowspan="2" style="vertical-align: middle;" data-sort-type="number" style="border:#a67d47 1px; border-style: none none solid none;" | {{HP}}
! 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 1px; border-style: none solid solid none;" | Value
 
|-
 
|-
{{#if:{{#var:hasQuality}}|<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 1px; 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 {{#if:{{#var:hasQuality}}|none|solid}};"> Material </th> }}
+
<th style="background-color:#d09c59; border:#a67d47 1px; 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 {{#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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; 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 1px; border-style: none none solid none;"> Chance<ref name="Chance"/> </th>
}}<!--
 
-->{{#if:{{#var:hasQuality}} |{{#if: {{#var:stufftags}} | {{#vardefine:collapseQ|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality"}} | {{#vardefine:collapseQ|class="mw-collapsible" id="mw-customcollapsible-collapseQuality"}} }}{{#vardefine:qualitySort|0}}{{#vardefine:quality|Awful}}
 
{{#if:{{#var:stufftags}} |
 
  {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
    | format = template
 
    | template = Weapon Quality Table/Melee/Row
 
    | link = none
 
  }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
{{#vardefine:qualitySort|1}}{{#vardefine:quality|Poor}}
 
{{#if:{{#var:stufftags}} |
 
  {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
    | format = template
 
    | template = Weapon Quality Table/Melee/Row
 
    | link = none
 
  }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
 
{{#vardefine:qualitySort|2}}{{#vardefine:quality|Normal}}{{#if:{{#var:stufftags}} |
 
  {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
    | format = template
 
    | template = Weapon Quality Table/Melee/Row
 
    | link = none
 
  }}|{{Weapon Quality Table/Melee/Row}}
 
 
}}
 
}}
{{#if:{{#var:hasQuality}} |{{#vardefine:qualitySort|3}}{{#vardefine:quality|Good}}
+
{{#if:{{#var:hasQuality}} |
{{#if:{{#var:stufftags}} |
+
  {{#vardefine:qualitySort|0}}{{#vardefine:quality|Awful}}
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
+
  {{#if: {{#var:stufftags}}
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
+
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
+
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]  OR}}
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
+
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
+
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
    | format = template
+
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
    | template = Weapon Quality Table/Melee/Row
+
      | format = template
    | link = none
+
      | template = Weapon Quality Table/Melee/Row
  }}|{{Weapon Quality Table/Melee/Row}}
+
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 +
  {{#vardefine:qualitySort|1}}{{#vardefine:quality|Poor}}
 +
  {{#if: {{#var:stufftags}}
 +
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 +
      | format = template
 +
      | template = Weapon Quality Table/Melee/Row
 +
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 
}}
 
}}
{{#vardefine:qualitySort|4}}{{#vardefine:quality|Excellent}}
+
{{#vardefine:qualitySort|2}}{{#vardefine:quality|Normal}}
{{#if:{{#var:stufftags}} |
 
  {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
    | format = template
 
    | template = Weapon Quality Table/Melee/Row
 
    | link = none
 
  }}|{{Weapon Quality Table/Melee/Row}}
 
}}{{#vardefine:qualitySort|5}}{{#vardefine:quality|Masterwork}}
 
{{#if:{{#var:stufftags}} |
 
  {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
 
          {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
    | format = template
 
    | template = Weapon Quality Table/Melee/Row
 
    | link = none
 
  }}|{{Weapon Quality Table/Melee/Row}}
 
}}{{#vardefine:qualitySort|6}}{{#vardefine:quality|Legendary}}
 
 
{{#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}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}|{{Weapon Quality Table/Melee/Row}}
+
   }}
 +
  | {{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
 +
{{#if:{{#var:hasQuality}} |
 +
  {{#vardefine:qualitySort|3}}{{#vardefine:quality|Good}}
 +
  {{#if: {{#var:stufftags}}
 +
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 +
      | format = template
 +
      | template = Weapon Quality Table/Melee/Row
 +
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 +
  {{#vardefine:qualitySort|4}}{{#vardefine:quality|Excellent}}
 +
  {{#if: {{#var:stufftags}}
 +
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 +
      | format = template
 +
      | template = Weapon Quality Table/Melee/Row
 +
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 +
  {{#vardefine:qualitySort|5}}{{#vardefine:quality|Masterwork}}
 +
  {{#if: {{#var:stufftags}}
 +
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 +
      | format = template
 +
      | template = Weapon Quality Table/Melee/Row
 +
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 +
  {{#vardefine:qualitySort|6}}{{#vardefine:quality|Legendary}}
 +
  {{#if: {{#var:stufftags}}
 +
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}  || [[Stuff Category::Fabric]]  OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 +
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]]}}
 +
      | format = template
 +
      | template = Weapon Quality Table/Melee/Row
 +
      | link = none}}
 +
    | {{Weapon Quality Table/Melee/Row}}
 +
  }}
 
}}
 
}}
 
|}
 
|}

Revision as of 20:00, 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

    Template:Weapon Quality Table/Melee/Row

     Template:Weapon Quality Table/Melee/Row
    

    Template:Weapon Quality Table/Melee/Row Template:Weapon Quality Table/Melee/Row

     Template:Weapon Quality Table/Melee/Row
     
     Template:Weapon Quality Table/Melee/Row
     
     Template:Weapon Quality Table/Melee/Row
    
    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]

    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


    Template:Weapon Quality Table/Melee/Row

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