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

From RimWorld Wiki
Jump to navigation Jump to search
m
(Should now be red if the range band is partially available, should be blank if if its not usable at all.)
Line 1: Line 1:
{{#vardefine: name         | {{{?Name}}}
+
{{#vardefine: name | {{{?Name}}}
}}{{#vardefine: DPS         | {{Q| {{#var:name}} | Maximum DPS}}
+
}}{{#vardefine: DPS | {{Q| {{#var:name}} | Maximum DPS}}
 +
}}{{#vardefine: range  | {{Q|{{#var:name}}|Range}}
 
}}
 
}}
<noinclude>
+
<noinclude>{{#vardefine: name  | heavy SMG}}{{#vardefine: DPS | {{Q| {{#var:name}} | Maximum DPS}}}}{{#vardefine: range  | {{Q|{{#var:name}}|Range}}}}
 
{| {{STDT|sortable c_06 text-center}}
 
{| {{STDT|sortable c_06 text-center}}
 
! colspan='2'|Name !! Damage !! AP !! Stopping Power !! Warm-Up<br/>(ticks*) !! Cooldown<br/>(ticks*) !! Range<br/>(tiles) !! Burst Count !! Burst (ticks*) !! Bullet Speed !! Accuracy<br/>(Touch) !! Accuracy<br/>(Short) !! Accuracy<br/>(Medium) !! Accuracy<br/>(Long)  !! Miss Radius !! Blast Radius !! DPS<br/>(Optimal) !! DPS<br/>(Touch) !! DPS<br/>(Short) !! DPS<br/>(Medium) !! DPS<br/>(Long) !! Value {{icon|silver|}}
 
! colspan='2'|Name !! Damage !! AP !! Stopping Power !! Warm-Up<br/>(ticks*) !! Cooldown<br/>(ticks*) !! Range<br/>(tiles) !! Burst Count !! Burst (ticks*) !! Bullet Speed !! Accuracy<br/>(Touch) !! Accuracy<br/>(Short) !! Accuracy<br/>(Medium) !! Accuracy<br/>(Long)  !! Miss Radius !! Blast Radius !! DPS<br/>(Optimal) !! DPS<br/>(Touch) !! DPS<br/>(Short) !! DPS<br/>(Medium) !! DPS<br/>(Long) !! Value {{icon|silver|}}
Line 26: Line 27:
 
| {{#var:DPS}}
 
| {{#var:DPS}}
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
 
{{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}}|
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 3|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Minimum 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>}}
+
{{#switch: 1
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 12|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Minimum 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>}}
+
| {{#expr:{{#var:range}}<3}} = {{!}} <p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}</p>
{{!}} {{#ifexpr:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 25|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Minimum 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:{{#ifexpr:{{Q|{{#var:name}}|Range}} > 40|1|0}}*{{#ifexpr:{{Q|{{#var:name}}|Minimum 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>}}|
+
{{!}} -
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
+
{{!}} -
 +
| {{#expr:{{#var:range}}<12}} = {{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}
 +
{{!}} <p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}</p>
 +
{{!}} -
 +
{{!}} -
 +
| {{#expr:{{#var:range}}<25}} = {{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}
 +
{{!}} <p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}</p>
 +
{{!}} -
 +
| {{#expr:{{#var:range}}<40}} = {{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}
 +
{{!}} <p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}</p>
 +
| #default = {{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Touch) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Short) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}
 +
{{!}} {{#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>{{#expr:5 < 25}}

Revision as of 11:26, 13 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
Heavy SMG heavy SMG 12 18 0.5 54 99 22.9 3 11 48 85% 65% 35% 20% - - 12.34 10.489 8.021

4.319

- 355

1