Difference between revisions of "Template:Weapon/Row/Ranged"

From RimWorld Wiki
Jump to navigation Jump to search
(nulled out dpses beyond maximum range)
Line 26: Line 26:
 
| {{#var:DPS}}
 
| {{#var:DPS}}
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}
+
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 3|{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }} }}
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}
+
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 12|{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }} }}
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}
+
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 25|{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }} }}
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }} |
+
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 40|{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }} }}|
 
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
 
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
 
}}
 
}}
 
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>
 
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>
 
|}</noinclude>
 
|}</noinclude>

Revision as of 18:55, 11 October 2021


Name Damage AP Stopping Power Warm-Up
(ticks*)
Cooldown
(ticks*)
Range
(tiles)
Burst Count Burst (ticks*) Bullet Speed Accuracy
(Touch)
Accuracy
(Short)
Accuracy
(Medium)
Accuracy
(Long)
Miss Radius Blast Radius DPS
(Optimal)
DPS
(Touch)
DPS
(Short)
DPS
(Medium)
DPS
(Long)
Value Silver
[[{{{?Name}}}]] (Error: Page does not exist) [[{{{?Name}}}]] ? - - ? - ? 1 - - -% -% -% -% - - - - - - ?