Difference between revisions of "Template:Weapon Stats Table"
Line 27: | Line 27: | ||
<th>Damage | <th>Damage | ||
<th>AP | <th>AP | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<th>{{H:title|link=no|Base weapon accuracy at Touch Range (3 tiles) | Accuracy<br/>(Touch)}} | <th>{{H:title|link=no|Base weapon accuracy at Touch Range (3 tiles) | Accuracy<br/>(Touch)}} | ||
<th>{{H:title|link=no|Base weapon accuracy at Short Range (12 tiles) | Accuracy<br/>(Short)}} | <th>{{H:title|link=no|Base weapon accuracy at Short Range (12 tiles) | Accuracy<br/>(Short)}} | ||
<th>{{H:title|link=no|Base weapon accuracy at Medium Range (25 tiles) | Accuracy<br/>(Medium)}} | <th>{{H:title|link=no|Base weapon accuracy at Medium Range (25 tiles) | Accuracy<br/>(Medium)}} | ||
<th>{{H:title|link=no|Base weapon accuracy at Long Range (40 tiles) | Accuracy<br/>(Long)}} | <th>{{H:title|link=no|Base weapon accuracy at Long Range (40 tiles) | Accuracy<br/>(Long)}} | ||
+ | }} | ||
<th>{{H:title|link=no|Damage Per Second assuming all shots hit|DPS<br/>(Optimal)}} | <th>{{H:title|link=no|Damage Per Second assuming all shots hit|DPS<br/>(Optimal)}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<th>{{H:title|link=no|DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy|DPS<br/>(Touch)}} | <th>{{H:title|link=no|DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy|DPS<br/>(Touch)}} | ||
<th>{{H:title|link=no|DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy|DPS<br/>(Short)}} | <th>{{H:title|link=no|DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy|DPS<br/>(Short)}} | ||
<th>{{H:title|link=no|DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy|DPS<br/>(Medium)}} | <th>{{H:title|link=no|DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy|DPS<br/>(Medium)}} | ||
<th>{{H:title|link=no|DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy|DPS<br/>(Long)}} | <th>{{H:title|link=no|DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy|DPS<br/>(Long)}} | ||
+ | }} | ||
|}} | |}} | ||
! Market Value | ! Market Value | ||
Line 47: | Line 51: | ||
<td> {{ #expr: 0.9*{{#var:damage|}} round 2}} | <td> {{ #expr: 0.9*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 0.9*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 0.9*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 0.8*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: 0.9*{{#var:avgDPS|}} round 2}} | <td> {{ #expr: 0.9*{{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 0.8*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: {{#ifexpr: {{ #expr: 0.8*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 58: | Line 65: | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 0.8*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: {{#ifexpr: {{ #expr: 0.8*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.8*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 72: | Line 80: | ||
<td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 0.9*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: {{#var:avgDPS|}} round 2}} | <td> {{ #expr: {{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 0.9*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: {{#ifexpr: {{ #expr: 0.9*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 83: | Line 94: | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 0.9*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: {{#ifexpr: {{ #expr: 0.9*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 0.9*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 96: | Line 108: | ||
<td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.0*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: {{#var:avgDPS|}} round 2}} | <td> {{ #expr: {{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.0*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.0*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 107: | Line 122: | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.0*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.0*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.0*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 120: | Line 136: | ||
<td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.1*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: {{#var:avgDPS|}} round 2}} | <td> {{ #expr: {{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.1*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.1*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 131: | Line 150: | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.1*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.1*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.1*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 144: | Line 164: | ||
<td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.0*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.0*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.2*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: {{#var:avgDPS|}} round 2}} | <td> {{ #expr: {{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.2*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.2*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 155: | Line 178: | ||
{{!}} {{#expr: {{#ifexpr: {{ #expr: 1.2*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: {{#ifexpr: {{ #expr: 1.2*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.2*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 168: | Line 192: | ||
<td> {{ #expr: 1.25*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.25*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.25*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.25*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.35*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: 1.25*{{#var:avgDPS|}} round 2}} | <td> {{ #expr: 1.25*{{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: 1.25*{{#ifexpr: {{ #expr: 1.35*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: 1.25*{{#ifexpr: {{ #expr: 1.35*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 179: | Line 206: | ||
{{!}} {{#expr: 1.25*{{#ifexpr: {{ #expr: 1.35*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: 1.25*{{#ifexpr: {{ #expr: 1.35*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.35*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} | ||
Line 192: | Line 220: | ||
<td> {{ #expr: 1.5*{{#var:damage|}} round 2}} | <td> {{ #expr: 1.5*{{#var:damage|}} round 2}} | ||
<td> {{ #expr: 1.5*{{#var:avgAP|}} round 2}}% | <td> {{ #expr: 1.5*{{#var:avgAP|}} round 2}}% | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accTouch|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Touch) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accTouch|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accShort|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Short) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accShort|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accShort|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accMedium|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Medium) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accMedium|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accMedium|}} round 0}}}}%|-}} | ||
<td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accLong|}} round 0}}}}%|-}} | <td> {{#if: {{Q|{{#var:name}}|Accuracy (Long) Base}} | {{#ifexpr: {{ #expr: 1.5*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accLong|}} round 0}}}}%|-}} | ||
+ | }} | ||
<td> {{ #expr: 1.5*{{#var:avgDPS|}} round 2}} | <td> {{ #expr: 1.5*{{#var:avgDPS|}} round 2}} | ||
+ | {{#if: {{Q|{{#var:name}}|Miss Radius}}|| | ||
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}| | ||
{{!}} {{#expr: 1.5*{{#ifexpr: {{ #expr: 1.5*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | {{!}} {{#expr: 1.5*{{#ifexpr: {{ #expr: 1.5*{{#var:accTouch|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accTouch|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | ||
Line 203: | Line 234: | ||
{{!}} {{#expr: 1.5*{{#ifexpr: {{ #expr: 1.5*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | {{!}} {{#expr: 1.5*{{#ifexpr: {{ #expr: 1.5*{{#var:accLong|}} round 2}} > 100 | 100 | {{ #expr: 1.5*{{#var:accLong|}} round 0}}}}/100*{{#var:avgDPS }} round 2}} | | ||
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - | ||
+ | }} | ||
}} | }} | ||
|}} | |}} |
Revision as of 13:37, 22 November 2021
Description
This template generates a table summarizing stats for an given weapon, including average damage per second, armor piercing and Market Value, for each quality tier (if applicable) and every stuff option (if applicable).
Note that at the time of writing, weapons with no quality are hardcoded into the template, rather than pulled from the page properties. New no-quality weapons must be manually excepted from the template.
Property:Mode must be set to properly display melee weapons, otherwise it will default to the ranged format.
This template is part of the following system generating tables for all weapons:
- Template:Weapon Stats Table - Usually the template that should be called on normal pages. Creates the headers.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
- Template:Weapon Stats Table/Ranged/Row - Creates the rows for the ranged combat table.
- Template:Weapon Stats Table/Melee - Creates the table for melee attacks.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:True Melee DPS Calculator - Does a lot of the calculations and defines essential variables for the /Melee/Row template.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
Parameters
The first parameter (if present) will specify which weapon to generate the template for.
If absent, {{PAGENAME}}
will be used.
The no header
parameter will disable the top heading, but not the subheadings for ranged and melee attacks, when set to true.
The header level
parameter takes numbers and sets the size of the headings - note that top heading is sized by the number directly, with subheading one size smaller. Default value is 2. It can be used with or without no header
.
Example usage
{{Weapon Stats Table | Persona monosword}}
Produces:
Quality Table
Quality | Damage | Avg DPS | Avg AP | Market Value |
---|---|---|---|---|
Awful Persona monosword | 21.6 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 1500 |
Poor Persona monosword | 24.3 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 1125 |
Normal Persona monosword | 27 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 1125 |
Good Persona monosword | 29.7 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 1405 |
Excellent Persona monosword | 32.4 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 2110 |
Masterwork Persona monosword | 39.15 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 4110 |
Legendary Persona monosword | 44.55 | Expression error: Unexpected round operator. | Expression error: Unexpected round operator.% | 7110 |
{{Weapon Stats Table | Assault rifle|}}
Produces:
Quality Table
Quality | Damage | AP | Accuracy (Touch) | Accuracy (Short) | Accuracy (Medium) | Accuracy (Long) | DPS (Optimal) | DPS (Touch) | DPS (Short) | DPS (Medium) | DPS (Long) |
Market Value |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Awful Assault rifle | 9.9 | 14.4% | 48% | 56% | 52% | 44% | 9.79 | 5.22 | 6.09 | 5.66 | 4.79 | 240 |
Poor Assault rifle | 11 | 16% | 54% | 63% | 59% | 50% | 10.88 | 5.88 | 6.85 | 6.42 | 5.44 | 180 |
Normal Assault rifle | 11 | 16% | 60% | 70% | 65% | 55% | 10.88 | 6.53 | 7.62 | 7.07 | 5.98 | 180 |
Good Assault rifle | 11 | 16% | 66% | 77% | 72% | 61% | 10.88 | 7.18 | 8.38 | 7.83 | 6.64 | 225 |
Excellent Assault rifle | 11 | 16% | 72% | 84% | 78% | 66% | 10.88 | 7.83 | 9.14 | 8.49 | 7.18 | 335 |
Masterwork Assault rifle | 13.75 | 20% | 81% | 95% | 88% | 74% | 13.6 | 11.02 | 12.92 | 11.97 | 10.06 | 845 |
Legendary Assault rifle | 16.5 | 24% | 90% | 100% | 98% | 83% | 16.32 | 14.69 | 16.32 | 15.99 | 13.55 | 3845 |
{{Weapon Stats Table | Incendiary launcher|}}
Produces:
Quality Table
Quality | Damage | AP | DPS (Optimal) |
Market Value |
---|---|---|---|---|
Awful Incendiary launcher | 9 | 0% | 1.29 | 170 |
Poor Incendiary launcher | 10 | 0% | 1.43 | 128 |
Normal Incendiary launcher | 10 | 0% | 1.43 | 128 |
Good Incendiary launcher | 10 | 0% | 1.43 | 159 |
Excellent Incendiary launcher | 10 | 0% | 1.43 | 240 |
Masterwork Incendiary launcher | 12.5 | 0% | 1.79 | 600 |
Legendary Incendiary launcher | 15 | 0% | 2.15 | 2990 |
The above documentation is transcluded from Template:Weapon Stats Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |