Difference between revisions of "Template:Weapon No Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div><li style="display: inline-table;"> {| {{STDT|sortable c_03 text-center}} |- ! Quality ! <abbr title="Damage per shot">Dam.</abbr> ! {{AP}} {{#if: {{#vardefi...")
 
m (moved)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div><li style="display: inline-table;">
+
<includeonly>{{#if:{{{2|}}}||== Ranged table ==}}
 +
<div><li style="display: inline-table;"><!--
 +
-->{{#vardefine:range|{{Q|{{#vardefineecho:name| {{{ 1 | {{PAGENAME}} }}} }}|Range}}}}
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
 
|-
 
|-
Line 9: Line 11:
 
   ! <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr>
 
   ! <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr>
 
   ! <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr>
 
   ! <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr>
   ! <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long</small>)</abbr>
+
   ! <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long)</small></abbr>
 
}}
 
}}
 
! <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr>
 
! <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr>
Line 32: Line 34:
 
{{#if: {{#var:missRadius}} ||
 
{{#if: {{#var:missRadius}} ||
 
   {{#if: {{#var:accTouch}} |
 
   {{#if: {{#var:accTouch}} |
     {{!}} {{#expr: {{#ifexpr: {{#var:accTouch}}  > 1 | 1 | {{#var:accTouch}}  }} * {{#var:avgDPS}} round 2}}
+
     {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}< 3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accTouch}}  > 1 | 1 | {{#var:accTouch}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
     {{!}} {{#expr: {{#ifexpr: {{#var:accShort}}  > 1 | 1 | {{#var:accShort}}  }} * {{#var:avgDPS}} round 2}}
+
     {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accShort}}  > 1 | 1 | {{#var:accShort}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
     {{!}} {{#expr: {{#ifexpr: {{#var:accMedium}} > 1 | 1 | {{#var:accMedium}} }} * {{#var:avgDPS}} round 2}}
+
     {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accMedium}} > 1 | 1 | {{#var:accMedium}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
     {{!}} {{#expr: {{#ifexpr: {{#var:accLong}}  > 1 | 1 | {{#var:accLong}}  }} * {{#var:avgDPS}} round 2}}
+
     {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accLong}}  > 1 | 1 | {{#var:accLong}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
   | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
   | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
}} }}
Line 41: Line 43:
 
|-
 
|-
 
|}
 
|}
 +
<sup>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. 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}}
+
{{Obsolete|reason=Functionality merged in [[Template: Weapon Stats Table]]}}
{{Documentation}}
+
The second parameter (if present) suppresses the heading.
 
{{Weapon No Quality Table|Charge blaster turret}}
 
{{Weapon No Quality Table|Charge blaster turret}}
 
[[Category:Customized table templates]]
 
[[Category:Customized table templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:45, 25 April 2023

The second parameter (if present) suppresses the heading.

Ranged table

  • Quality Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    Value
    Charge blaster turret 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.