5 my $RT = 1.4; # real-time speed factor to faster
7 my $hots = do 'sc-units-hots.inc.pl' or die $!;
9 for my $row (@{$hots}) {
10 ref $row eq 'HASH' or next;
11 for ($row, @{ $row->{special} }, @{ $row->{upgrade} }) {
12 $_ *= $RT for $_->{speed} // ();
13 $_ /= $RT for $_->{build} // (), $_->{transform} // (), $_->{warp} // (), $_->{cooldown} // ();
14 $_->{cooldown} and $_->{cooldown} /= $RT for @{ $_->{attack} // [] };
16 $unit{ lc $row->{name} =~ tr/ /_/r } = $row;
20 sprintf('patch %vd', $V),
29 %{ $unit{mothership} },
32 $unit{mothership}->{special}->[0], # cf
33 $unit{mothership}->{special}->[1], # mr
35 %{ $unit{mothership}->{special}->[2] }, # tw
36 desc => $V lt v4.11.0 ? 'create a temporal field which slows ground units by 50%'
37 : 'create a temporal field which slows ground and air units by 50%',
48 $unit{nexus}->{special}->[0], # chrono boost
50 name => $V lt v4.7.1 ? 'Mass Recall' : 'Strategic Recall',
52 desc => 'recalls units owned by the player in the target area to the Nexus',
54 cooldown => $V lt v4.7.1 || $V ge v4.10.1 ? 130 : 85,
55 radius => $V lt v4.7.1 ? 6.5 : 2.5,
56 duration => 3.6, # +.7 warp in
58 $V lt v4.12.0 ? () : {
59 name => 'Battery Overcharge',
61 desc => 'increase target Shield Battery restoration rate by 100% and function without consuming energy for 14s',
64 cooldown => 60, # shared by all nexuses
65 range => 8, # within any friendly nexus
76 desc => 'on attack, increases movement speed to 8.47 for 2.5s and deals 8 damage on hit',
77 min => 100, # changed in 3.14.0
89 speed => $V lt v4.11.0 ? .98 : 1.57,
97 $unit{sentry}->{special}->[0], # ff
99 %{ $unit{sentry}->{special}->[1] }, # gs
100 radius => $V lt v4.7.1 ? 4 : 4.5,
103 %{ $unit{sentry}->{special}->[2] }, # hl
104 cost => $V lt v4.7.1 ? 100 : 75,
113 %{ $unit{stalker}->{attack}->[0] }, # particle disruptors
131 build => $V lt v4.8.2 ? 27 : 30,
152 type => 'projectile', #XXX: assumption
161 name => 'Psionic Transfer',
163 desc => 'project shade, teleport after 7s',
171 attack => [], #TODO: indicate diff from parent
172 speed => 5, #XXX: faster than 3.5
173 range => 7, #XXX: calculate from speed
179 name => 'Resonating Glaives',
185 cooldown => $V lt v4.11.0 || $V ge v4.11.3 ? -.5 : -.6, # +45%/60%
193 %{ $unit{high_templar} },
206 $unit{high_templar}->{special}->[0], # fb
207 range => $V lt v4.12.0 ? 9 : 10,
209 $unit{high_templar}->{special}->[1], # ps
214 %{ $unit{dark_templar} },
216 $unit{dark_templar}->{special}->[0], # cl
218 name => 'Shadow Stride',
220 desc => 'teleport to visible location, ¾s attack delay afterwards',
223 build => $V lt v4.7.1 ? 121 : 100,
225 cooldown => $V lt v4.7.1 ? 21 : 14,
233 %{ $unit{observer} },
234 speed => $V lt v4.8.2 || $V ge v4.11.0 ? 2.63 : 3.01,
236 $unit{observer}->{special}->[0], # cloak
238 name => 'Surveillance Mode',
240 desc => 'gain 25% vision while immobilized',
242 sight => 2.75, # +25%
249 %{ $unit{warp_prism} },
251 min => $V lt v4.10.1 ? 200 : 250,
252 range => $V lt v4.10.1 ? 6 : 5, # pickup
255 %{ $unit{warp_prism}->{special}->[0] }, # gravitic drive
264 %{ $unit{colossus} },
267 %{ $unit{colossus}->{attack}->[0] }, # thermal lances
274 # cooldown => 1.18, #XXX
299 name => 'Purification Nova',
304 type => 'trans', #TODO: indicate
317 %{ $unit{void_ray} },
318 min => $V lt v5.0.9 && $V ge v5.0.2 ? 200 : 250,
319 speed => $V lt v5.0.2 ? 3.5 : 3.85,
320 build => $V lt v5.0.9 && $V ge v5.0.2 ? 37 : 43,
323 name => 'Flux Vanes',
327 speed => $V lt v5.0.2 ? 1.15 : .798,
336 $V lt v4.8.2 ? 'light' : 'armored' => 1,
343 %{ $unit{oracle}->{attack}->[0] }, # pulsar beam
351 name => 'Revelation',
353 desc => 'hit enemy units and buildings are revealed for ½ minute',
354 cost => $V lt v4.12.0 ? 50 : 25,
356 cooldown => $V lt v4.12.0 ? 2 : 10,
357 duration => $V lt v4.12.0 ? 30 : $V lt v5.0.2 ? 15 : 20,
361 name => 'Stasis Ward',
363 desc => 'places ward for 170s',
368 alt => 'Stasis Ward',
380 name => 'Permanent Cloak',
382 desc => 'cloaked at all times',
386 name => 'Stasis Trap',
388 desc => 'triggered by nearby ground units, trapping them for 21½s',
397 hp => $V lt v4.7.1 ? 300 : $V lt v4.11.0 ? 150 : 200,
398 shield => $V lt v4.7.1 ? 150 : $V lt v4.11.0 ? 125 : 100,
399 min => $V lt v4.7.1 ? 300 : 250,
400 gas => $V lt v4.7.1 ? 200 : 175,
401 pop => $V lt v4.7.1 ? 6 : 5,
402 speed => $V lt v4.7.1 ? 2.63 : $V lt v4.8.2 ? 3.5 : 3.15,
405 %{ $unit{tempest}->{attack}->[0] }, # kinetic overload
410 range => $V lt v4.11.0 ? 15 : 14,
413 %{ $unit{tempest}->{attack}->[1] }, # resonance coil
422 $V lt v5.0.2 ? () : {
423 name => 'Tectonic Destabilizers',
441 hp => $V lt v4.7.1 ? 250 : 300,
442 build => $V lt v4.7.1 ? 86 : 64,
445 %{ $unit{carrier}->{special}->[0] }, # interceptor
447 build => $V lt v4.7.1 ? 6 : $V lt v4.10.1 ? 11 : 9,
450 $V lt v4.7.1 ? () : (upgrade => []), # remove Graviton Catapult
457 $unit{missile_turret},
458 $unit{planetary_fortress},
463 %{ $unit{marauder} },
466 %{ $unit{marauder}->{attack}->[0] }, # punisher grenades
467 count => $V lt v4.3.0 ? 2 : 1,
468 damage => $V lt v4.3.0 ? 5 : 10,
471 armored => $V lt v4.3.0 ? 5 : 10,
472 -armored => $V lt v4.3.0 ? 0 : 1,
490 # replaces Sniper Round
491 name => 'Steady Targeting',
493 desc => '170 damage ignoring armor to a biological unit after 1.43s without damage',
499 %{ $unit{ghost}->{special}->[1] }, # emp round
500 radius => $V lt v4.10.1 ? 1.5 : 2,
502 $unit{ghost}->{special}->[2], # cloak
503 $unit{ghost}->{special}->[3], # tac nuke strike
511 %{ $unit{hellion}->{attack}->[0] }, # infernal flamethrower
524 $unit{hellbat}->{special}->[0], # Hellion Mode
526 name => 'Smart Servos',
530 transform => -1.43, # halve #TODO: alter special duration?
536 %{ $unit{widow_mine} },
540 %{ $unit{widow_mine}->{attack}->[0] }, # Sentinel Missiles
544 transform => $V lt v5.0.9 ? .71 : 1.07,
550 %{ $unit{siege_tank} },
554 %{ $unit{siege_tank}->{special}->[0] }, # siege mode
557 %{ $unit{siege_tank}->{special}->[0]->{attack}->[0] }, # shock cannon
582 hp => $V lt v4.7.1 ? 180 : 120,
590 name => $V lt v4.7.1 ? 'Tornado Blaster' : 'Typhoon Missile Pod',
591 damage => $V lt v4.7.1 ? 3 : 18,
592 upgrade => $V lt v4.7.1 ? 1 : 2,
593 bonus => $V ge v4.7.1 ? {} : {
597 cooldown => $V lt v4.7.1 ? .1 : .71,
598 range => $V lt v4.7.1 ? 6 : 5,
601 speed => $V lt v4.7.1 ? 4.13 : 4.73,
607 desc => $V lt v4.7.1 ? 'target air for 160 damage ignoring armor while visible and within 15 range'
608 : 'deal 400 damage (double to armored after upgrade) over 14 seconds',
613 $V ge v4.7.1 ? () : {
614 name => 'Rapid Fire Launchers',
616 desc => 'rapid first 12 Lock On shots',
623 $V lt v4.7.1 ? () : {
624 name => 'Mag-Field Accelerator',
627 build => $V lt v4.8.2 ? 79 : 100,
628 desc => 'increases lock-on damage to ',
635 armor => $V ge v3.14.0 && $V lt v4.7.1 ? 2 : 1,
637 $unit{thor}->{attack}->[0], # thor's hammer
638 $unit{thor}->{attack}->[1], # javelin missiles
640 %{ $unit{thor}->{attack}->[2] }, # punisher cannons
641 name => 'High Impact Payload',
642 damage => $V lt v4.7.1 ? 35 : $V lt v4.11.0 ? 40 : 25,
645 $V lt v4.7.1 ? 'armored' : 'massive' => $V lt v4.11.0 ? 15 : 10,
646 $V lt v4.7.1 ? '-armored' : '-massive' => 2,
648 cooldown => $V lt v4.7.1 ? 2.14 : $V lt v4.11.0 ? 1.71 : .9,
649 range => $V lt v4.8.2 ? 10 : 11,
657 hp => $V lt v4.3.0 ? 125 : 135,
663 $unit{medivac}->{special}->[0], # heal
665 %{ $unit{medivac}->{special}->[1] }, # ignite afterburners
666 desc => 'boost speed and accelleration to 4.25 for 8s',
668 duration => $V lt v4.7.1 ? 6.43 : 4.29,
669 cooldown => $V lt v4.11.0 ? 20 : 14,
675 name => 'Rapid Reignition System',
704 name => 'Lexington Rockets',
707 type => 'projectile',
715 name => 'Defender Mode',
717 transform => 2.88, # 1.46s to revert
718 alt => 'Defender Liberator',
722 name => 'Concord Cannon',
723 desc => 'within 5 diameter circle',
731 sight => 15, # only targeted area
734 name => 'Advanced Ballistics',
757 name => 'Hyperflight Rotors',
759 min => $V lt v4.7.1 ? 200 : 150,
760 gas => $V lt v4.7.1 ? 200 : 150,
768 speed => $V lt v4.11.0 ? 3.85 : 4.13,
771 %{ $unit{raven}->{special}->[0] }, # auto-turret
775 name => '12 mm Gauss Cannon',
781 range => $V lt v4.3.0 ? 1 : 2,
784 $unit{raven}->{special}->[0]->{upgrade}->[0], # hi-sec auto tracking
785 $unit{raven}->{special}->[0]->{upgrade}->[1], # structure armor
786 # no more durable materials
790 name => 'Interference Matrix',
792 desc => 'disable target mech or psionic unit rendering it unable to attack or cast',
793 cost => $V lt v4.11.0 ? 50 : 75,
795 duration => $V lt v4.11.0 ? 7.9 : 11,
798 name => 'Anti-Armor Missile',
800 desc => $V lt v4.7.1 ? 'launches missile to do splash damage and reduce armor by 3'
801 : 'launches missile to reduce armor by 3',
806 damage => $V lt v4.3.0 ? 30 : $V lt v4.7.1 ? 15 : 0,
817 %{ $unit{battlecruiser} },
819 $unit{battlecruiser}->{attack}->[0], # ats laser
821 %{ $unit{battlecruiser}->{attack}->[1] }, # ata laser
822 damage => $V lt v4.7.1 ? 6 : 5,
827 name => 'Tactical Jump',
829 desc => 'warps to the target location after 5s (invulnerable after 1s)',
834 %{ $unit{battlecruiser}->{special}->[0] }, # yc
835 desc => '240 damage to a single target',
855 $unit{queen}->{attack}->[0], # claws
857 %{ $unit{queen}->{attack}->[1] }, # acid spines
858 range => $V lt v4.12.0 ? 8 : 7,
865 %{ $unit{overlord} },
866 speed => .902, # changed in 4.0.0
869 %{ $unit{overlord}->{upgrade}->[0] }, # carapace
872 $unit{overlord}->{upgrade}->[1], # sacs
877 %{ $unit{overseer} },
880 name => 'Oversight Mode',
882 desc => 'gain 25% vision while immobilized',
887 @{ $unit{overseer}->{special} }, # changeling, contaminate
892 $unit{spine_crawler},
895 %{ $unit{spore_crawler} },
898 %{ $unit{spore_crawler}->{attack}->[0] }, # seeker spores
911 %{ $unit{baneling} },
915 %{ $unit{baneling}->{attack}->[0] }, # volatile burst
916 damage => $V lt v4.12.0 ? 20 : $V lt v5.0.2 ? 18 : 15,
918 light => $V lt v4.12.0 ? 15 : $V lt v5.0.2 ? 17 : 20,
929 %{ $unit{baneling}->{upgrade}->[0] }, # centrifugal hooks
939 %{ $unit{roach}->{special}->[0] }, # rapid regeneration
940 desc => 'regenerates health at 7 HP/s while burrowed',
943 %{ $unit{roach}->{special}->[1] }, # tunneling claws
944 min => $V lt v4.7.1 ? 150 : 100,
945 gas => $V lt v4.7.1 ? 150 : 100,
947 desc => 'move while burrowed at speed of 2.8',
974 type => 'projectile',
985 %{ $unit{hydralisk} },
989 %{ $unit{hydralisk}->{upgrade}->[0] }, # grooved spines
996 $unit{hydralisk}->{upgrade}->[1], # muscular augments
1004 base => ['Hydralisk'],
1024 range => $V lt v4.11.0 ? 9 : 8,
1033 $V lt v4.11.0 ? () : {
1034 name => 'Seismic Spines',
1046 name => 'Adaptive Talons',
1047 desc => 'halves burrow time and increases movement speed',
1049 transform => $V lt v5.0.9 ? .71 : 1.07,
1058 %{ $unit{infestor} },
1061 %{ $unit{infestor}->{special}->[0] }, # neural parasite
1062 range => $V lt v4.11.0 ? 9 : 8,
1064 $unit{infestor}->{special}->[1], # fungal growth
1066 name => 'Microbial Shroud',
1068 desc => 'reduce damage from air by 50% to ground units in target area',
1069 cost => $V lt v4.11.3 ? 100 : 75,
1070 min => $V lt v4.11.3 ? 150 : undef,
1071 gas => $V lt v4.11.3 ? 150 : undef,
1072 build => $V lt v4.11.3 ? 79 : undef,
1073 req => $V lt v4.11.3 ? 'Hive' : undef,
1076 radius => $V lt v4.11.3 ? 3 : 3.5,
1078 $V ge v4.11.0 ? () : {
1079 %{ $unit{infestor}->{special}->[2] }, # infested terran
1082 %{ $unit{infestor}->{special}->[2]->{attack}->[0] }, # rockets
1083 cooldown => $V lt v4.10.1 ? .95 : 1.14,
1091 % {$unit{nydus_worm} },
1092 min => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75, # Nydus Network costs 150/150
1093 gas => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75,
1094 cooldown => $V lt v4.11.0 ? 0 : 14, # Summon Nydus Worm
1098 %{ $unit{swarm_host} },
1102 %{ $unit{swarm_host}->{special}->[0] }, # locust
1104 upgrade => [], # no flying
1116 %{ $unit{ultralisk} },
1119 $unit{ultralisk}->{upgrade}->[0], # chitinous plating
1121 name => 'Anabolic Synthesis',
1125 speed => $V lt v4.8.2 ? .41 : .82,
1126 creep => -.215, # reverse speed increase