Difference between revisions of "Template:Ranged Cooldown Row"

From RimWorld Wiki
Jump to navigation Jump to search
 
Line 4: Line 4:
 
{{#vardefine:baseTime|  {{#expr: {{{?Aiming Time Base}}}+{{{?Ranged Cooldown Base}}}+{{#var:burstTime}} }} }}
 
{{#vardefine:baseTime|  {{#expr: {{{?Aiming Time Base}}}+{{{?Ranged Cooldown Base}}}+{{#var:burstTime}} }} }}
 
! {{Icon Small|{{{?Name}}}|24}}
 
! {{Icon Small|{{{?Name}}}|24}}
! {{DLC Icons|[[{{{?Name}}}]]}}
+
! {{DLC Icons|{{{?Name}}}}}
 
| 100% <!--This seems dumb, but it makes it clear what the other col is comparing against -->
 
| 100% <!--This seems dumb, but it makes it clear what the other col is comparing against -->
 
| {{#expr: ({{#var:baseTime}}/({{{?Aiming Time Base}}}+(0.8*{{{?Ranged Cooldown Base}}})+{{#var:burstTime}}))*100 round 0}}%
 
| {{#expr: ({{#var:baseTime}}/({{{?Aiming Time Base}}}+(0.8*{{{?Ranged Cooldown Base}}})+{{#var:burstTime}}))*100 round 0}}%

Latest revision as of 12:07, 24 October 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

As each ranged weapon has their own combination of Warm-up and Cooldown times, the effect of changes in Ranged Cooldown on total DPS can vary from weapon to weapon. This template calculates the effect on DPS for ranged weapons affected by a variety of changes in Ranged Cooldown reduction of the Heavy bandolierContent added by the Biotech DLC

These values are then displayed as a table row for use with the #Ask method. The #Ask controls what weapons are placed in the template.

Usage[edit]

The template must be used with the #Ask method and a table. It is compatible with Template:STDT tables.

<div><li style="display: inline-table;"> {| {{STDT|sortable c_06 text-center}} |- ! colspan="2" | Weapon !! DPS<br>(100% Ranged Cooldown Time) !! DPS<br>(80% Ranged Cooldown Time) {{#ask: [[Aiming Time Base::+]] [[Category:Weapons]] [[Class::!Mechanoid Weapons]] [[Name::!Uranium slug cannon]] [[Name::!Thump cannon]] [[Name::!Autocannon]] [[Name::!Light charge blaster]] [[Name::!Mini-turret gun]] [[Mode::!Single-Use]] | named args=yes | ?Name=?Name | ?Aiming Time Base #=?Aiming Time Base | ?Ranged Cooldown Base #=?Ranged Cooldown Base | ?Burst Count =?Burst Count | ?Burst Ticks =?Burst Ticks | format=template | template=Ranged Cooldown Row | sort = From DLC, name }} |} </li><div>

Results in:

  • Weapon DPS
    (100% Ranged Cooldown Time)
    DPS
    (80% Ranged Cooldown Time)
    Assault rifle Assault rifle 100% 113%
    Autopistol Autopistol 100% 118%
    Bolt-action rifle Bolt-action rifle 100% 110%
    Chain shotgun Chain shotgun 100% 110%
    Charge lance Charge lance 100% 114%
    Charge rifle Charge rifle 100% 113%
    EMP grenades EMP grenades 100% 115%
    EMP launcher EMP launcher 100% 111%
    Frag grenades Frag grenades 100% 115%
    Greatbow Greatbow 100% 109%
    Heavy SMG Heavy SMG 100% 113%
    Incendiary launcher Incendiary launcher 100% 111%
    LMG LMG 100% 109%
    Machine pistol Machine pistol 100% 112%
    Minigun Minigun 100% 107%
    Molotov cocktails Molotov cocktails 100% 115%
    Pila Pila 100% 111%
    Pump shotgun Pump shotgun 100% 113%
    Recurve bow Recurve bow 100% 112%
    Revolver Revolver 100% 120%
    Short bow Short bow 100% 112%
    Smoke launcher Smoke launcher 100% 111%
    Sniper rifle Sniper rifle 100% 109%
    Hellcat rifle Hellcat rifle Content added by the Anomaly DLC 100% 112%
    Nerve spiker Nerve spiker Content added by the Anomaly DLC 100% 112%
    Tactical turret gun Tactical turret gun Content added by the Anomaly DLC 100% 124%
    Flamebow Flamebow Content added by the Biotech DLC 100% 112%
    Grenadier armor Grenadier armor Content added by the Royalty DLC 100% 109%