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

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{{#if:{{{2|}}}||== Ranged table ==}}
 
<includeonly>{{#if:{{{2|}}}||== Ranged table ==}}
<div><li style="display: inline-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 33: 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 42: 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}}
 
{{Documentation wanted}}

Revision as of 12:47, 26 March 2023



The second parameter (if present) suppresses the heading.

Documentation icon Template documentation[create]

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.