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',
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.2 ? 250 : 200,
319 speed => $V lt v5.0.2 ? 3.5 : 3.85,
320 build => $V lt v5.0.2 ? 43 : 37,
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
549 %{ $unit{siege_tank} },
553 %{ $unit{siege_tank}->{special}->[0] }, # siege mode
556 %{ $unit{siege_tank}->{special}->[0]->{attack}->[0] }, # shock cannon
581 hp => $V lt v4.7.1 ? 180 : 120,
589 name => $V lt v4.7.1 ? 'Tornado Blaster' : 'Typhoon Missile Pod',
590 damage => $V lt v4.7.1 ? 3 : 18,
591 upgrade => $V lt v4.7.1 ? 1 : 2,
592 bonus => $V ge v4.7.1 ? {} : {
596 cooldown => $V lt v4.7.1 ? .1 : .71,
597 range => $V lt v4.7.1 ? 6 : 5,
600 speed => $V lt v4.7.1 ? 4.13 : 4.73,
606 desc => $V lt v4.7.1 ? 'target air for 160 damage ignoring armor while visible and within 15 range'
607 : 'deal 400 damage (double to armored after upgrade) over 14 seconds',
612 $V ge v4.7.1 ? () : {
613 name => 'Rapid Fire Launchers',
615 desc => 'rapid first 12 Lock On shots',
622 $V lt v4.7.1 ? () : {
623 name => 'Mag-Field Accelerator',
626 build => $V lt v4.8.2 ? 79 : 100,
627 desc => 'increases lock-on damage to ',
634 armor => $V ge v3.14.0 && $V lt v4.7.1 ? 2 : 1,
636 $unit{thor}->{attack}->[0], # thor's hammer
637 $unit{thor}->{attack}->[1], # javelin missiles
639 %{ $unit{thor}->{attack}->[2] }, # punisher cannons
640 name => 'High Impact Payload',
641 damage => $V lt v4.7.1 ? 35 : $V lt v4.11.0 ? 40 : 25,
644 $V lt v4.7.1 ? 'armored' : 'massive' => $V lt v4.11.0 ? 15 : 10,
645 $V lt v4.7.1 ? '-armored' : '-massive' => 2,
647 cooldown => $V lt v4.7.1 ? 2.14 : $V lt v4.11.0 ? 1.71 : .9,
648 range => $V lt v4.8.2 ? 10 : 11,
656 hp => $V lt v4.3.0 ? 125 : 135,
662 $unit{medivac}->{special}->[0], # heal
664 %{ $unit{medivac}->{special}->[1] }, # ignite afterburners
665 desc => 'boost speed and accelleration to 4.25 for 8s',
667 duration => $V lt v4.7.1 ? 6.43 : 4.29,
668 cooldown => $V lt v4.11.0 ? 20 : 14,
674 name => 'Rapid Reignition System',
703 name => 'Lexington Rockets',
706 type => 'projectile',
714 name => 'Defender Mode',
716 transform => 2.88, # 1.46s to revert
717 alt => 'Defender Liberator',
721 name => 'Concord Cannon',
722 desc => 'within 5 diameter circle',
730 sight => 15, # only targeted area
733 name => 'Advanced Ballistics',
756 name => 'Hyperflight Rotors',
758 min => $V lt v4.7.1 ? 200 : 150,
759 gas => $V lt v4.7.1 ? 200 : 150,
767 speed => $V lt v4.11.0 ? 3.85 : 4.13,
770 %{ $unit{raven}->{special}->[0] }, # auto-turret
774 name => '12 mm Gauss Cannon',
780 range => $V lt v4.3.0 ? 1 : 2,
783 $unit{raven}->{special}->[0]->{upgrade}->[0], # hi-sec auto tracking
784 $unit{raven}->{special}->[0]->{upgrade}->[1], # structure armor
785 # no more durable materials
789 name => 'Interference Matrix',
791 desc => 'disable target mech or psionic unit rendering it unable to attack or cast',
792 cost => $V lt v4.11.0 ? 50 : 75,
794 duration => $V lt v4.11.0 ? 7.9 : 11,
797 name => 'Anti-Armor Missile',
799 desc => $V lt v4.7.1 ? 'launches missile to do splash damage and reduce armor by 3'
800 : 'launches missile to reduce armor by 3',
805 damage => $V lt v4.3.0 ? 30 : $V lt v4.7.1 ? 15 : 0,
816 %{ $unit{battlecruiser} },
818 $unit{battlecruiser}->{attack}->[0], # ats laser
820 %{ $unit{battlecruiser}->{attack}->[1] }, # ata laser
821 damage => $V lt v4.7.1 ? 6 : 5,
826 name => 'Tactical Jump',
828 desc => 'warps to the target location after 5s (invulnerable after 1s)',
833 %{ $unit{battlecruiser}->{special}->[0] }, # yc
834 desc => '240 damage to a single target',
854 $unit{queen}->{attack}->[0], # claws
856 %{ $unit{queen}->{attack}->[1] }, # acid spines
857 range => $V lt v4.12.0 ? 8 : 7,
864 %{ $unit{overlord} },
865 speed => .902, # changed in 4.0.0
868 %{ $unit{overlord}->{upgrade}->[0] }, # carapace
871 $unit{overlord}->{upgrade}->[1], # sacs
876 %{ $unit{overseer} },
879 name => 'Oversight Mode',
881 desc => 'gain 25% vision while immobilized',
886 @{ $unit{overseer}->{special} }, # changeling, contaminate
891 $unit{spine_crawler},
894 %{ $unit{spore_crawler} },
897 %{ $unit{spore_crawler}->{attack}->[0] }, # seeker spores
910 %{ $unit{baneling} },
914 %{ $unit{baneling}->{attack}->[0] }, # volatile burst
915 damage => $V lt v4.12.0 ? 20 : $V lt v5.0.2 ? 18 : 15,
917 light => $V lt v4.12.0 ? 15 : $V lt v5.0.2 ? 17 : 20,
928 %{ $unit{baneling}->{upgrade}->[0] }, # centrifugal hooks
938 %{ $unit{roach}->{special}->[0] }, # rapid regeneration
939 desc => 'regenerates health at 7 HP/s while burrowed',
942 %{ $unit{roach}->{special}->[1] }, # tunneling claws
943 min => $V lt v4.7.1 ? 150 : 100,
944 gas => $V lt v4.7.1 ? 150 : 100,
946 desc => 'move while burrowed at speed of 2.8',
973 type => 'projectile',
984 %{ $unit{hydralisk} },
988 %{ $unit{hydralisk}->{upgrade}->[0] }, # grooved spines
995 $unit{hydralisk}->{upgrade}->[1], # muscular augments
1003 base => ['Hydralisk'],
1023 range => $V lt v4.11.0 ? 9 : 8,
1031 $V lt v4.11.0 ? () : {
1032 name => 'Seismic Spines',
1050 %{ $unit{infestor} },
1053 %{ $unit{infestor}->{special}->[0] }, # neural parasite
1054 range => $V lt v4.11.0 ? 9 : 8,
1056 $unit{infestor}->{special}->[1], # fungal growth
1058 name => 'Microbial Shroud',
1060 desc => 'reduce damage from air by 50% to ground units in target area',
1061 cost => $V lt v4.11.3 ? 100 : 75,
1062 min => $V lt v4.11.3 ? 150 : undef,
1063 gas => $V lt v4.11.3 ? 150 : undef,
1064 build => $V lt v4.11.3 ? 79 : undef,
1065 req => $V lt v4.11.3 ? 'Hive' : undef,
1068 radius => $V lt v4.11.3 ? 3 : 3.5,
1070 $V ge v4.11.0 ? () : {
1071 %{ $unit{infestor}->{special}->[2] }, # infested terran
1074 %{ $unit{infestor}->{special}->[2]->{attack}->[0] }, # rockets
1075 cooldown => $V lt v4.10.1 ? .95 : 1.14,
1083 % {$unit{nydus_worm} },
1084 min => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75, # Nydus Network costs 150/150
1085 gas => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75,
1086 cooldown => $V lt v4.11.0 ? 0 : 14, # Summon Nydus Worm
1090 %{ $unit{swarm_host} },
1094 %{ $unit{swarm_host}->{special}->[0] }, # locust
1096 upgrade => [], # no flying
1108 %{ $unit{ultralisk} },
1111 $unit{ultralisk}->{upgrade}->[0], # chitinous plating
1113 name => 'Anabolic Synthesis',
1117 speed => $V lt v4.8.2 ? .41 : .82,
1118 creep => -.215, # reverse speed increase