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

From RimWorld Wiki
Jump to navigation Jump to search
(Is this what causes the push down?)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div><li style="display: inline-table;">
+
<includeonly><div><li style="display: inline-table;"><!--
{| {{STDT|sortable c_03 text-center}}
+
-->{{#vardefine:name      | {{{ 1 | {{PAGENAME}} }}} }}<!--
|-
+
-->{{#vardefine:range      | {{Q|{{#var:name}}|Range}} }}<!--
! Quality
+
-->{{#vardefine:damage    | {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }}<!--
! <abbr title="Damage per shot">Dam.</abbr>
+
-->{{#vardefine:avgAP      | {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }}<!--
! {{AP}}
+
-->{{#vardefine:accTouch  | {{formatnum:{{Q|{{#var:name}}|Accuracy (Touch) Base}}|R}}/100 }}<!--
{{#if: {{#vardefineecho:missRadius| {{Q|{{#vardefineecho:name| {{{ 1 | {{PAGENAME}} }}} }}|Miss Radius}} }} ||
+
-->{{#vardefine:accShort  | {{formatnum:{{Q|{{#var:name}}|Accuracy (Short) Base}}|R}}/100 }}<!--
   ! <abbr title="Base weapon accuracy at Touch Range (3 tiles)">Accuracy<br/><small>(Touch)</small></abbr>
+
-->{{#vardefine:accMedium  | {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100 }}<!--
   ! <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr>
+
-->{{#vardefine:accLong    | {{formatnum:{{Q|{{#var:name}}|Accuracy (Long) Base}}|R}}/100 }}<!--
   ! <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr>
+
-->{{#vardefine:avgDPS    | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}} }}<!--
   ! <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long</small>)</abbr>
+
-->{{#vardefine:hasQuality | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!--
 +
-->{{#vardefine:headerStyle| {{#if: {{#var:hasQuality}} | rowspan="2" style="border-style: none;" {{!}} }} }}
 +
{| {{STDT|c_03 text-center}}
 +
<tr>
 +
  <th {{#if: {{#var:hasQuality}} |colspan="3" style="border-style: none;" | rowspan="2" style="border-style: none;" }}> {{Icon Small|{{#var:name}}|32}} {{#if: {{#var:hasQuality}} || <br/>}}{{#var:name}} </th>
 +
  {{#if: {{#var:hasQuality}} ||
 +
  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> <abbr title="Damage per shot">Dam.</abbr> </th>
 +
  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}}} </th>
 +
  {{#if: {{#vardefineecho:missRadius| {{Q|{{#var:name}}|Miss Radius}} }} ||  
 +
   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Touch Range (3 tiles)">Accuracy<br/><small>(Touch)</small></abbr> </th>
 +
   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr> </th>
 +
   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr> </th>
 +
   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long)</small></abbr> </th> }}
 +
  <th {{#var:headerStyle}}> <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr> </th>
 +
  {{#if: {{#var:missRadius}} ||
 +
  <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Touch)</small></abbr> </th>
 +
  <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Short)</small></abbr> </th>
 +
  <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Medium)</small></abbr>  </th>
 +
  <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr> </th>}}
 +
  <th {{#var:headerStyle}}> Market<br/>value </th>
 +
</tr>
 +
{{#if: {{#var:hasQuality}}|
 +
<tr>
 +
  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none solid;">Quality</th>
 +
  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> <abbr title="Damage per shot">Dam.</abbr></th>
 +
  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}</th>
 +
</tr>
 +
  {{Weapon Stats Table/Ranged/Row|Awful|1}}
 +
  {{Weapon Stats Table/Ranged/Row|Poor|2}}
 +
  {{Weapon Stats Table/Ranged/Row|Normal|3}}
 +
  {{Weapon Stats Table/Ranged/Row|Good|4}}
 +
  {{Weapon Stats Table/Ranged/Row|Excellent|5}}
 +
  {{Weapon Stats Table/Ranged/Row|Masterwork|6}}
 +
  {{Weapon Stats Table/Ranged/Row|Legendary|7}}
 +
| {{Weapon Stats Table/Ranged/Row}}
 
}}
 
}}
! <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr>
 
{{#if: {{#var:missRadius}} ||
 
  ! <abbr title="DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Touch)</small></abbr>
 
  ! <abbr title="DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Short)</small></abbr>
 
  ! <abbr title="DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Medium)</small></abbr>
 
  ! <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr>
 
}}
 
! Market<br>Value
 
|-
 
! style="text-align:right;" | '''Awful {{#var:name}}'''
 
| {{#expr: 0.9*{{#vardefineecho:damage| {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }} round 2}}
 
| {{#if: {{#vardefineecho:avgAP| {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }} | {{%|0.9*{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#vardefineecho:accTouch|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Touch) Base}}|R}} /100|}} | {{#ifexpr: 0.8*{{#var:accTouch}}  > 1 | 100% | {{%| 0.8*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#vardefineecho:accShort|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Short) Base}}|R}} /100|}} | {{#ifexpr: 0.8*{{#var:accShort}}  > 1 | 100% | {{%| 0.8*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#vardefineecho:accMedium| {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100|}} | {{#ifexpr: 0.8*{{#var:accMedium}} > 1 | 100% | {{%| 0.8*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#vardefineecho:accLong|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Long) Base}}|R}}  /100|}} | {{#ifexpr: 0.8*{{#var:accLong}}  > 1 | 100% | {{%| 0.8*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#expr: 0.9*{{#vardefineecho:avgDPS | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}} }} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}} |
 
    {{!}} {{#expr: {{#ifexpr: 0.8*{{#var:accTouch}}  > 1 | 1 | {{#expr: 0.8*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.8*{{#var:accShort}}  > 1 | 1 | {{#expr: 0.8*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.8*{{#var:accMedium}} > 1 | 1 | {{#expr: 0.8*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.8*{{#var:accLong}}  > 1 | 1 | {{#expr: 0.8*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Awful}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | '''Poor {{#var:name}}'''
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 0.9*{{#var:accTouch}}  > 1 | 100% | {{%| 0.9*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 0.9*{{#var:accShort}}  > 1 | 100% | {{%| 0.9*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 0.9*{{#var:accMedium}} > 1 | 100% | {{%| 0.9*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 0.9*{{#var:accLong}}  > 1 | 100% | {{%| 0.9*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: 0.9*{{#var:accTouch}}  > 1 | 1 | {{#expr: 0.9*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.9*{{#var:accShort}}  > 1 | 1 | {{#expr: 0.9*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.9*{{#var:accMedium}} > 1 | 1 | {{#expr: 0.9*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 0.9*{{#var:accLong}}  > 1 | 1 | {{#expr: 0.9*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Poor}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | '''Normal {{#var:name}}'''
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: {{#var:accTouch}}  > 1 | 100% | {{%| {{#var:accTouch}}  }} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: {{#var:accShort}}  > 1 | 100% | {{%| {{#var:accShort}}  }} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: {{#var:accMedium}} > 1 | 100% | {{%| {{#var:accMedium}} }} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: {{#var:accLong}}  > 1 | 100% | {{%| {{#var:accLong}}  }} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: {{#var:accTouch}}  > 1 | 1 | {{#var:accTouch}}  }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: {{#var:accShort}}  > 1 | 1 | {{#var:accShort}}  }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: {{#var:accMedium}} > 1 | 1 | {{#var:accMedium}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: {{#var:accLong}}  > 1 | 1 | {{#var:accLong}}  }} * {{#var:avgDPS}} round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Normal}} {{Icon Small|silver}}
 
|-
 
 
!  style="text-align:right;" | '''Good {{#var:name}}'''
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.1*{{#var:accTouch}}  > 1 | 100% | {{%| 1.1*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.1*{{#var:accShort}}  > 1 | 100% | {{%| 1.1*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.1*{{#var:accMedium}} > 1 | 100% | {{%| 1.1*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.1*{{#var:accLong}}  > 1 | 100% | {{%| 1.1*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: 1.1*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.1*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.1*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.1*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.1*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.1*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.1*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.1*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Good}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | '''Excellent {{#var:name}}'''
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.2*{{#var:accTouch}}  > 1 | 100% | {{%| 1.2*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.2*{{#var:accShort}}  > 1 | 100% | {{%| 1.2*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.2*{{#var:accMedium}} > 1 | 100% | {{%| 1.2*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.2*{{#var:accLong}}  > 1 | 100% | {{%| 1.2*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: 1.2*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.2*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.2*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.2*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.2*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.2*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.2*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.2*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Excellent}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | '''Masterwork {{#var:name}}'''
 
| {{#expr: 1.25*{{#var:damage}} round 2}}
 
| {{#if: {{#var:avgAP}} | {{%|1.25*{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.35*{{#var:accTouch}}  > 1 | 100% | {{%| 1.35*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.35*{{#var:accShort}}  > 1 | 100% | {{%| 1.35*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.35*{{#var:accMedium}} > 1 | 100% | {{%| 1.35*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.35*{{#var:accLong}}  > 1 | 100% | {{%| 1.35*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#expr: 1.25*{{#var:avgDPS}} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: 1.35*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.35*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.35*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.35*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.35*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.35*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.35*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.35*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Masterwork}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | '''Legendary {{#var:name}}'''
 
| {{#expr: 1.5*{{#var:damage}} round 2}}
 
| {{#if: {{#var:avgAP}} | {{%|1.5*{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.5*{{#var:accTouch}}  > 1 | 100% | {{%| 1.5*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.5*{{#var:accShort}}  > 1 | 100% | {{%| 1.5*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.5*{{#var:accMedium}} > 1 | 100% | {{%| 1.5*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.5*{{#var:accLong}}  > 1 | 100% | {{%| 1.5*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#expr: 1.5*{{#var:avgDPS}} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#expr: {{#ifexpr: 1.5*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.5*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.5*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.5*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.5*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.5*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}
 
    {{!}} {{#expr: {{#ifexpr: 1.5*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.5*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Legendary}} {{Icon Small|silver}}
 
 
|}
 
|}
<sup>For the full effects of qualities, see [[Quality]].</sup>
+
<sup>{{#if: {{#var:hasQuality}} | For the full effects of qualities, see [[Quality]].}} {{#if: {{#var:missRadius}} || Values shown in <span style="color:firebrick; font-weight:bold>Red</span> indicate the weapon is out of range at the reference point for this range band.<br>The value is provided due to the [[Weapons#Range|interpolated nature]] of accuracy between range points.}}</sup>
 
</li></div></includeonly><noinclude>
 
</li></div></includeonly><noinclude>
{{Documentation wanted}}
 
 
{{Documentation}}
 
{{Documentation}}
{{Weapon Quality Table/Ranged|Incendiary launcher}}
 
{{Weapon Quality Table/Ranged|Assault rifle}}
 
[[Category:Customized table templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 11:24, 1 July 2024

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

Summary[edit]

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

Parameters[edit]

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

{{Weapon Stats Table/Ranged|Sniper rifle}}

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

{{Weapon Stats Table/Ranged}}

Examples[edit]

Sniper rifle[edit]


A weapon with quality, no AOE, and range greater than long

{{Weapon Stats Table/Ranged|Sniper rifle}}
  • Sniper rifle Sniper rifle Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value
    Quality Dam. AP
    Awful 22.5 34.2% 40% 56% 68.8% 70.4% 3.88 1.55 2.17 2.68 2.72 265 Silver
    Poor 25 38% 45% 63% 77.4% 79.2% 4.31 1.94 2.72 3.32 3.4 395 Silver
    Normal 25 38% 50% 70% 86% 88% 4.31 2.16 3.02 3.71 3.79 530 Silver
    Good 25 38% 55% 77% 94.6% 96.8% 4.31 2.37 3.32 4.09 4.18 660 Silver
    Excellent 25 38% 60% 84% 100% 100% 4.31 2.59 3.62 4.31 4.31 795 Silver
    Masterwork 31.25 47.5% 67.5% 94.5% 100% 100% 5.39 3.66 5.12 5.39 5.39 1325 Silver
    Legendary 37.5 57% 75% 100% 100% 100% 6.47 4.85 6.47 6.47 6.47 2650 Silver

    For the full effects of qualities, see Quality. Values shown in Red indicate the weapon is out of range at the reference point for this range band.
    The value is provided due to the interpolated nature of accuracy between range points.

  • Chain shotgun[edit]


    A weapon with quality, no AOE, and range below long

    {{Weapon Stats Table/Ranged|Chain shotgun}}
  • Chain shotgun Chain shotgun Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value
    Quality Dam. AP
    Awful 16.2 12.6% 45.6% 51.2% 44% 36% 16.86 7.75 8.6 7.42 - 200 Silver
    Poor 18 14% 51.3% 57.6% 49.5% 40.5% 18.73 9.55 10.86 9.37 - 305 Silver
    Normal 18 14% 57% 64% 55% 45% 18.73 10.68 11.99 10.3 - 405 Silver
    Good 18 14% 62.7% 70.4% 60.5% 49.5% 18.73 11.8 13.11 11.43 - 505 Silver
    Excellent 18 14% 68.4% 76.8% 66% 54% 18.73 12.74 14.42 12.36 - 605 Silver
    Masterwork 22.5 17.5% 76.95% 86.4% 74.25% 60.75% 23.41 18.03 20.13 17.33 - 1010 Silver
    Legendary 27 21% 85.5% 96% 82.5% 67.5% 28.1 24.16 26.97 23.32 - 2025 Silver

    For the full effects of qualities, see Quality. Values shown in Red indicate the weapon is out of range at the reference point for this range band.
    The value is provided due to the interpolated nature of accuracy between range points.

  • Incendiary launcher[edit]


    A weapon with quality and AOE

    {{Weapon Stats Table/Ranged|Incendiary launcher}}
  • Incendiary launcher Incendiary launcher DPS
    (Optimal)
    Market
    value
    Quality Dam. AP
    Awful 9 0% 1.29 170 Silver
    Poor 10 0% 1.43 255 Silver
    Normal 10 0% 1.43 340 Silver
    Good 10 0% 1.43 425 Silver
    Excellent 10 0% 1.43 510 Silver
    Masterwork 12.5 0% 1.79 850 Silver
    Legendary 15 0% 2.15 1700 Silver

    For the full effects of qualities, see Quality.

  • Frag grenades[edit]


    A weapon with no quality and AOE

    {{Weapon Stats Table/Ranged|Frag grenades}}
  • Frag grenades
    Frag grenades
    Dam. AP DPS
    (Optimal)
    Market
    value
    50 10% 12 265 Silver

  • Charge blaster turret[edit]


    A weapon with no quality and no AOE

    {{Weapon Stats Table/Ranged|Charge blaster turret}}
  • Charge blaster turret
    Charge blaster turret
    Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value
    15 22.5% 60% 80% 90% 85% 6 3.6 4.8 5.4 5.1 0 Silver

    Values shown in Red indicate the weapon is out of range at the reference point for this range band.
    The value is provided due to the interpolated nature of accuracy between range points.