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

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 94758 by Cheldra (talk))
Tag: Undo
(bugfix)
Line 26: Line 26:
 
| {{#var:DPS}}
 
| {{#var:DPS}}
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 3|{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}</p>}}
+
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 3|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Min Range|0}} < 3|1|0}} = 1|{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}</p>}}
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 12|{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}</p>}}
+
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 12|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Min Range|0}} < 12|1|0}} = 1|{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}</p>}}
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 25|{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}</p>}}
+
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 25|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Min Range|0}} < 25|1|0}} = 1|{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}</p>}}
{{!}} {{#ifexpr:{{Q|{{#var:name}}|Range}} > 40|{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}</p>}}|
+
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 40|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Min Range|0}} < 40|1|0}} = 1|{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}|<p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}</p>}}|
 
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
 
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
 
}}
 
}}
 
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>
 
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>
 
|}</noinclude>
 
|}</noinclude>

Revision as of 11:20, 12 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 - - -% -% -% -% - - - - - - ?