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

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 78073 by Harakoni (talk))
Tag: Undo
(documentation wanted, category)
 
(17 intermediate revisions by 3 users not shown)
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 !! 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 Small|silver|}}
 
</noinclude>
 
</noinclude>
 
|-
 
|-
 
! {{Icon Small|{{#var:name}}}}
 
! {{Icon Small|{{#var:name}}}}
! style='text-align: left !important; width: 10em' | [[{{#var:name}}]]
+
! style='text-align: left !important; width: 10em' | {{DLC Icons|{{#var:name}}}}
 
| {{Q| {{#var:name}} | Damage Base| ? }}
 
| {{Q| {{#var:name}} | Damage Base| ? }}
 +
| {{Q| {{#var:name}} | Armor Penetration| - }}
 +
| {{Q| {{#var:name}} | Stopping Power| - }}
 
| {{Q| {{#var:name}} | Aiming Time Base| ? }}
 
| {{Q| {{#var:name}} | Aiming Time Base| ? }}
 
| {{Q| {{#var:name}} | Ranged Cooldown Base| - }}
 
| {{Q| {{#var:name}} | Ranged Cooldown Base| - }}
Line 24: Line 27:
 
| {{#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}} }}
+
{{#switch: 1
 +
| {{#expr:{{#var:range}}<3}}  = {{!}} <p style=color:red>{{#expr:{{Q| {{#var:name}} | Accuracy (Touch) 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 (Short) Base}}/100*{{#var:DPS}} }}
 
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}
 
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Medium) Base}}/100*{{#var:DPS}} }}
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }} |
+
{{!}} {{#expr:{{Q| {{#var:name}} | Accuracy (Long) Base}}/100*{{#var:DPS}} }}  
{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
+
}}
 +
|{{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} - {{!}}{{!}} -  
 
}}
 
}}
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>|}</noinclude>
+
| {{Q| {{#var:name}} | Market Value Base|?}}<noinclude>
 +
|}{{Documentation|content=
 +
{{Documentation wanted}}
 +
[[Category:Customized table templates]]
 +
}}</noinclude>

Latest revision as of 23:08, 25 April 2023


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
Documentation icon Template documentation