Difference between revisions of "Template:Weapon No Quality Table"
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
This page has been marked as needing documentation of its function and purpose. You can help RimWorld Wiki by creating it here |
The second parameter (if present) suppresses the heading.
Template documentation[create]
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. |
Ranged table
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.