From bf2e7804ab4bb344f4aa5090f1d06a266b028c9d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 10 Nov 2021 02:27:04 +0100 Subject: [PATCH] sc: lotv unit updates to patch 5.0.2 BU Changes copied from Blizzard patch notes. Retains all earlier values since patch 4.1.4 hidden behind a hardcoded version variable. --- sc-units-hots.inc.pl | 26 +-- sc-units-lotv.inc.pl | 415 +++++++++++++++++++++++++++++++++++++------ 2 files changed, 376 insertions(+), 65 deletions(-) diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index 9faaea8..16dccef 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -1,6 +1,8 @@ use utf8; use strict; +my $V = v5.0.2; # some patch data for invisible attributes + [ 'patch 2.1.9+', # http://wiki.teamliquid.net/starcraft2/Unit_Statistics @@ -147,6 +149,7 @@ use strict; psionic => 1, massive => 1, flying => 1, + heroic => 1, }, attack => [ { @@ -1436,8 +1439,8 @@ use strict; upgrade => [ { name => 'Infernal Pre-Igniter', - min => 150, - gas => 150, + min => $V lt v4.11.0 ? 150 : 100, + gas => $V lt v4.11.0 ? 150 : 100, build => 110, attack => [ { @@ -1497,8 +1500,8 @@ use strict; upgrade => [ { name => 'Infernal Pre-Igniter', - min => 150, - gas => 150, + min => $V lt v4.11.0 ? 150 : 100, + gas => $V lt v4.11.0 ? 150 : 100, build => 110, attack => [ { @@ -1848,7 +1851,7 @@ use strict; special => [ { alt => 'Auto-Turret', -# abbr => 'at', + abbr => 'at', cost => 50, size => 2, cargo => 0, @@ -2006,7 +2009,7 @@ use strict; }, { anti => 2, - name => 'ATS Laser Batteries', + name => 'ATA Laser Batteries', damage => 6, upgrade => 1, cooldown => 0.225, @@ -2182,8 +2185,8 @@ use strict; upgrade => [ { name => 'Pneumatized Carapace', - min => 100, - gas => 100, + min => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75, + gas => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75, build => 60, speed => 1.294, }, @@ -2252,8 +2255,8 @@ use strict; upgrade => [ { name => 'Pneumatized Carapace', - min => 100, - gas => 100, + min => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75, + gas => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75, build => 60, speed => 3.375 - 1.875, }, @@ -2632,6 +2635,7 @@ use strict; }, attack => [ { + name => 'Infested Rockets', anti => 3, damage => 8, cooldown => 0.8608, @@ -2658,7 +2662,7 @@ use strict; race => 'zerg', cat => 'lair', name => 'Nydus Worm', - min => 100, + min => 100, # Nydus Network costs 150/200 gas => 100, build => 20, size => 3, diff --git a/sc-units-lotv.inc.pl b/sc-units-lotv.inc.pl index e7608c5..bf5de99 100644 --- a/sc-units-lotv.inc.pl +++ b/sc-units-lotv.inc.pl @@ -1,6 +1,7 @@ use utf8; use strict; +my $V = v5.0.2; my $RT = 1.4; # real-time speed factor to faster my $hots = do 'sc-units-hots.inc.pl' or die $!; @@ -16,7 +17,7 @@ for my $row (@{$hots}) { } [ -'patch 4.1.4', +sprintf('patch %vd', $V), # protoss @@ -27,9 +28,44 @@ $unit{photon_cannon}, { %{ $unit{mothership} }, speed => 2.62, + special => [ + $unit{mothership}->{special}->[0], # cf + $unit{mothership}->{special}->[1], # mr + { + %{ $unit{mothership}->{special}->[2] }, # tw + desc => $V lt v4.11.0 ? 'create a temporal field which slows ground units by 50%' + : 'create a temporal field which slows ground and air units by 50%', + }, + ], }, -$unit{nexus}, +{ + %{ $unit{nexus} }, + attack => [], + energy => 50, + capacity => 200, + special => [ + $unit{nexus}->{special}->[0], # chrono boost + { + name => $V lt v4.7.1 ? 'Mass Recall' : 'Strategic Recall', + abbr => 'sr', + desc => 'recalls units owned by the player in the target area to the Nexus', + cost => 50, + cooldown => $V lt v4.7.1 || $V ge v4.10.1 ? 130 : 85, + radius => $V lt v4.7.1 ? 6.5 : 2.5, + duration => 3.6, # +.7 warp in + }, + $V lt v4.12.0 ? () : { + name => 'Battery Overcharge', + abbr => 'bo', + desc => 'increase target Shield Battery restoration rate by 100% and function without consuming energy for 14s', + cost => 50, + duration => 14, + cooldown => 60, # shared by all nexuses + range => 8, # within any friendly nexus + }, + ], +}, { %{ $unit{zealot} }, @@ -50,12 +86,25 @@ $unit{nexus}, upgrade => [ { name => 'Charge', - speed => .98, + speed => $V lt v4.11.0 ? .98 : 1.57, }, ], }, -$unit{sentry}, +{ + %{ $unit{sentry} }, + special => [ + $unit{sentry}->{special}->[0], # ff + { + %{ $unit{sentry}->{special}->[1] }, # gs + radius => $V lt v4.7.1 ? 4 : 4.5, + }, + { + %{ $unit{sentry}->{special}->[2] }, # hl + cost => $V lt v4.7.1 ? 100 : 75, + }, + ], +}, { %{ $unit{stalker} }, @@ -79,7 +128,7 @@ $unit{sentry}, pop => 2, min => 100, gas => 25, - build => 27, + build => $V lt v4.8.2 ? 27 : 30, warp => 20, size => 1, cargo => 2, @@ -133,7 +182,7 @@ $unit{sentry}, build => 100, attack => [ { - cooldown => -.5, # +45% + cooldown => $V lt v4.11.0 || $V ge v4.11.3 ? -.5 : -.6, # +45%/60% }, ], }, @@ -152,15 +201,54 @@ $unit{sentry}, range => 6, }, ], + special => [ + { + $unit{high_templar}->{special}->[0], # fb + range => $V lt v4.12.0 ? 9 : 10, + }, + $unit{high_templar}->{special}->[1], # ps + ], +}, + +{ + %{ $unit{dark_templar} }, + special => [ + $unit{dark_templar}->{special}->[0], # cl + { + name => 'Shadow Stride', + abbr => 'bl', + desc => 'teleport to visible location', + min => 100, + gas => 100, + build => $V lt v4.7.1 ? 121 : 100, + range => 8, + cooldown => $V lt v4.7.1 ? 21 : 14, + }, + ], }, -$unit{dark_templar}, $unit{archon}, -$unit{observer}, + +{ + %{ $unit{observer} }, + speed => $V lt v4.8.2 || $V ge v4.11.0 ? 2.63 : 3.01, + special => [ + $unit{observer}->{special}->[0], # cloak + { + name => 'Surveillance Mode', + abbr => 'sm', + desc => 'gain 25% vision while immobilized', + sight => 2.75, # +25% + transform => .54, + }, + ], +}, { %{ $unit{warp_prism} }, hp => 80, + min => $V lt v4.10.1 ? 200 : 250, + range => $V lt v4.10.1 ? 6 : 5, # pickup upgrade => [ { %{ $unit{warp_prism}->{special}->[0] }, # gravitic drive @@ -226,12 +314,29 @@ $unit{phoenix}, { %{ $unit{void_ray} }, - speed => 3.5, + min => $V lt v5.0.2 ? 250 : 200, + speed => $V lt v5.0.2 ? 3.5 : 3.85, + build => $V lt v5.0.2 ? 43 : 37, + upgrade => [ + { + name => 'Flux Vanes', + min => 100, + gas => 100, + build => 57, + speed => $V lt v5.0.2 ? 1.15 : .798, + }, + ], }, { %{ $unit{oracle} }, build => 37, + attr => { + $V lt v4.8.2 ? 'light' : 'armored' => 1, + mech => 1, + psionic => 1, + flying => 1, + }, attack => [ { %{ $unit{oracle}->{attack}->[0] }, # pulsar beam @@ -245,10 +350,10 @@ $unit{phoenix}, name => 'Revelation', abbr => 'rv', desc => 'hit enemy units and buildings are revealed for ½ minute', - cost => 50, + cost => $V lt v4.12.0 ? 50 : 25, range => 9, - cooldown => 2.2, - duration => 30, + cooldown => $V lt v4.12.0 ? 2 : 10, + duration => $V lt v4.12.0 ? 30 : $V lt v5.0.2 ? 15 : 20, radius => 6, }, { @@ -288,8 +393,12 @@ $unit{phoenix}, { %{ $unit{tempest} }, - hp => 300, - shield => 150, + hp => $V lt v4.7.1 ? 300 : $V lt v4.11.0 ? 150 : 200, + shield => $V lt v4.7.1 ? 150 : $V lt v4.11.0 ? 125 : 100, + min => $V lt v4.7.1 ? 300 : 250, + gas => $V lt v4.7.1 ? 200 : 175, + pop => $V lt v4.7.1 ? 6 : 5, + speed => $V lt v4.7.1 ? 2.63 : $V lt v4.8.2 ? 3.5 : 3.15, attack => [ { %{ $unit{tempest}->{attack}->[0] }, # kinetic overload @@ -297,24 +406,47 @@ $unit{phoenix}, massive => 22, -massive => 2, }, + range => $V lt v4.11.0 ? 15 : 14, }, { %{ $unit{tempest}->{attack}->[1] }, # resonance coil + bonus => { + structure => 0, + }, damage => 40, upgrade => 4, }, ], + upgrade => [ + $V lt v5.0.2 ? () : { + name => 'Tectonic Destabilizers', + attack => [ + {}, + { + bonus => { + structure => 40, + }, + }, + ], + min => 150, + gas => 150, + build => 100, + }, + ], }, { %{ $unit{carrier} }, - hp => 250, + hp => $V lt v4.7.1 ? 250 : 300, + build => $V lt v4.7.1 ? 86 : 64, special => [ { %{ $unit{carrier}->{special}->[0] }, # interceptor min => 5, + build => $V lt v4.7.1 ? 6 : $V lt v4.10.1 ? 11 : 9, }, ], + $V lt v4.7.1 ? () : (upgrade => []), # remove Graviton Catapult }, # terran @@ -331,12 +463,12 @@ $unit{marine}, attack => [ { %{ $unit{marauder}->{attack}->[0] }, # punisher grenades - count => 2, - damage => 5, + count => $V lt v4.3.0 ? 2 : 1, + damage => $V lt v4.3.0 ? 5 : 10, upgrade => 1, bonus => { - armored => 5, - -armored => 0, + armored => $V lt v4.3.0 ? 5 : 10, + -armored => $V lt v4.3.0 ? 0 : 1, }, }, ], @@ -362,7 +494,10 @@ $unit{marine}, range => 10, duration => 1.43, }, - $unit{ghost}->{special}->[1], # emp round + { + %{ $unit{ghost}->{special}->[1] }, # emp round + radius => $V lt v4.10.1 ? 1.5 : 2, + }, $unit{ghost}->{special}->[2], # cloak $unit{ghost}->{special}->[3], # tac nuke strike ], @@ -442,7 +577,7 @@ $unit{marine}, size => 1.5, cargo => 3, armor => 1, - hp => 180, + hp => $V lt v4.7.1 ? 180 : 120, attr => { armored => 1, mech => 1, @@ -450,29 +585,30 @@ $unit{marine}, attack => [ { anti => 1, - name => 'Typhoon Blaster', - damage => 3, - upgrade => 1, - bonus => { + name => $V lt v4.7.1 ? 'Tornado Blaster' : 'Typhoon Missile Pod', + damage => $V lt v4.7.1 ? 3 : 18, + upgrade => $V lt v4.7.1 ? 1 : 2, + bonus => $V ge v4.7.1 ? {} : { armored => 2, -armored => 0, }, - cooldown => .1, - range => 6, + cooldown => $V lt v4.7.1 ? .1 : .71, + range => $V lt v4.7.1 ? 6 : 5, }, ], - speed => 4.13, + speed => $V lt v4.7.1 ? 4.13 : 4.73, sight => 11, special => [ { name => 'Lock On', abbr => 'lo', - desc => 'target air for 160 damage ignoring armor while visible and within 15 range', + desc => $V lt v4.7.1 ? 'target air for 160 damage ignoring armor while visible and within 15 range' + : 'deal 400 damage (double to armored after upgrade) over 14 seconds', range => 7, - duration => 14, + duration => 14.3, cooldown => 4, }, - { + $V ge v4.7.1 ? () : { name => 'Rapid Fire Launchers', abbr => 'rf', desc => 'rapid first 12 Lock On shots', @@ -481,30 +617,67 @@ $unit{marine}, build => 79, }, ], + upgrade => [ + $V lt v4.7.1 ? () : { + name => 'Mag-Field Accelerator', + min => 100, + gas => 100, + build => $V lt v4.8.2 ? 79 : 100, + desc => 'increases lock-on damage to ', + }, + ], }, { %{ $unit{thor} }, - armor => 2, + armor => $V ge v3.14.0 && $V lt v4.7.1 ? 2 : 1, attack => [ - $unit{thor}->{attack}->[0], - $unit{thor}->{attack}->[1], + $unit{thor}->{attack}->[0], # thor's hammer + $unit{thor}->{attack}->[1], # javelin missiles { - %{ $unit{thor}->{attack}->[2] }, # high impact - damage => 35, + %{ $unit{thor}->{attack}->[2] }, # punisher cannons + name => 'High Impact Payload', + damage => $V lt v4.7.1 ? 35 : $V lt v4.11.0 ? 40 : 25, upgrade => 3, bonus => { - armored => 15, - -armored => 2, + $V lt v4.7.1 ? 'armored' : 'massive' => $V lt v4.11.0 ? 15 : 10, + $V lt v4.7.1 ? '-armored' : '-massive' => 2, }, - cooldown => 2.14, + cooldown => $V lt v4.7.1 ? 2.14 : $V lt v4.11.0 ? 1.71 : .9, + range => $V lt v4.8.2 ? 10 : 11, }, ], #TODO smart servos }, -$unit{viking}, -$unit{medivac}, +{ + %{ $unit{viking} }, + hp => $V lt v4.3.0 ? 125 : 135, +}, + +{ + %{ $unit{medivac} }, + special => [ + $unit{medivac}->{special}->[0], # heal + { + %{ $unit{medivac}->{special}->[1] }, # ignite afterburners + desc => 'boost speed and accelleration to 4.25 for 8s', + speed => 5.94, + duration => $V lt v4.7.1 ? 6.43 : 4.29, + cooldown => $V lt v4.11.0 ? 20 : 14, + -cooldown => 9, + }, + ], + upgrade => [ + { + name => 'Rapid Reignition System', + min => 100, + gas => 100, + build => 57, + speed => .63, + }, + ], +}, { race => 'terran', @@ -574,11 +747,23 @@ $unit{medivac}, sight => 10, }, -$unit{banshee}, +{ + %{ $unit{banshee} }, + speed => 3.85, + upgrade => [ + { + name => 'Hyperflight Rotors', + speed => 1.4, + min => $V lt v4.7.1 ? 200 : 150, + gas => $V lt v4.7.1 ? 200 : 150, + build => 121, + }, + ], +}, { %{ $unit{raven} }, - speed => 3.85, + speed => $V lt v4.11.0 ? 3.85 : 4.13, special => [ { %{ $unit{raven}->{special}->[0] }, # auto-turret @@ -591,7 +776,7 @@ $unit{banshee}, range => 6, }, ], - range => 1, + range => $V lt v4.3.0 ? 1 : 2, duration => 10, upgrade => [ $unit{raven}->{special}->[0]->{upgrade}->[0], # hi-sec auto tracking @@ -603,19 +788,20 @@ $unit{banshee}, name => 'Interference Matrix', abbr => 'im', desc => 'disable target mech or psionic unit rendering it unable to attack or cast', - cost => 50, + cost => $V lt v4.11.0 ? 50 : 75, range => 9, - duration => 7.9, + duration => $V lt v4.11.0 ? 7.9 : 11, }, { name => 'Anti-Armor Missile', abbr => 'aa', - desc => 'launches missile to do 30 splash damage and reduces armor by 3', + desc => $V lt v4.7.1 ? 'launches missile to do splash damage and reduce armor by 3' + : 'launches missile to reduce armor by 3', range => 10, size => 2.88, attack => [ { - damage => 30, + damage => $V lt v4.3.0 ? 30 : $V lt v4.7.1 ? 15 : 0, splash => 1, }, ], @@ -625,7 +811,37 @@ $unit{banshee}, ], }, -$unit{battlecruiser}, +{ + %{ $unit{battlecruiser} }, + attack => [ + $unit{battlecruiser}->{attack}->[0], # ats laser + { + %{ $unit{battlecruiser}->{attack}->[1] }, # ata laser + damage => $V lt v4.7.1 ? 6 : 5, + }, + ], + special => [ + { + name => 'Tactical Jump', + abbr => 'tj', + desc => 'warps to the target location after 5s (invulnerable after 1s)', + duration => 4, + cooldown => 71, + }, + { + %{ $unit{battlecruiser}->{special}->[0] }, # yc + desc => '240 damage to a single target', + attack => [ + { + damage => 240, + }, + ], + cost => undef, + cooldown => 71, + }, + ], + upgrade => [], +}, # zerg @@ -637,7 +853,7 @@ $unit{drone}, $unit{queen}->{attack}->[0], # claws { %{ $unit{queen}->{attack}->[1] }, # acid spines - range => 8, + range => $V lt v4.12.0 ? 8 : 7, }, ], range => 8, @@ -679,6 +895,20 @@ $unit{zergling}, { %{ $unit{baneling} }, min => 25, + attack => [ + { + %{ $unit{baneling}->{attack}->[0] }, # volatile burst + damage => $V lt v4.12.0 ? 20 : $V lt v5.0.2 ? 18 : 15, + bonus => { + light => $V lt v4.12.0 ? 15 : $V lt v5.0.2 ? 17 : 20, + -light => 2, + structure => 80, + -structure => 5, + }, + splash => 1, + range => 0, + }, + ], upgrade => [ { %{ $unit{baneling}->{upgrade}->[0] }, # centrifugal hooks @@ -687,7 +917,22 @@ $unit{zergling}, ], }, -$unit{roach}, +{ + %{ $unit{roach} }, + special => [ + { + %{ $unit{roach}->{special}->[0] }, # rapid regeneration + desc => 'regenerates health at 7 HP/s while burrowed', + }, + { + %{ $unit{roach}->{special}->[1] }, # tunneling claws + min => $V lt v4.7.1 ? 150 : 100, + gas => $V lt v4.7.1 ? 150 : 100, + build => 79, + desc => 'move while burrowed at speed of 2.8', + }, + ], +}, { race => 'zerg', @@ -761,20 +1006,71 @@ $unit{roach}, upgrade => 2, splash => 'line', cooldown => 1.43, - range => 9, + range => $V lt v4.11.0 ? 9 : 8, bonus => { armored => 10, -armored => 1, }, }, ], + upgrade => [ + $V lt v4.11.0 ? () : { + name => 'Seismic Spines', + attack => [ + { + range => 2, + }, + ], + req => 'Hive', + min => 150, + gas => 150, + build => 57, + }, + ], speed => 4.13, creep => 1.3, sight => 10, }, -$unit{infestor}, -$unit{nydus_worm}, +{ + %{ $unit{infestor} }, + special => [ + { + %{ $unit{infestor}->{special}->[0] }, # neural parasite + range => $V lt v4.11.0 ? 9 : 8, + }, + $unit{infestor}->{special}->[1], # fungal growth + { + name => 'Microbial Shroud', + abbr => 'ms', + desc => 'reduce damage from air by 50% to ground units in target area', + cost => $V lt v4.11.3 ? 100 : 75, + min => $V lt v4.11.3 ? 150 : undef, + gas => $V lt v4.11.3 ? 150 : undef, + build => $V lt v4.11.3 ? 79 : undef, + req => $V lt v4.11.3 ? 'Hive' : undef, + range => 9, + duration => 11, + radius => $V lt v4.11.3 ? 3 : 3.5, + }, + $V ge v4.11.0 ? () : { + %{ $unit{infestor}->{special}->[2] }, # infested terran + attack => [ + { + %{ $unit{infestor}->{special}->[2]->{attack}->[0] }, # rockets + cooldown => $V lt v4.10.1 ? .95 : 1.14, + }, + ], + }, + ], +}, + +{ + % {$unit{nydus_worm} }, + min => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75, # Nydus Network costs 150/150 + gas => $V lt v4.7.1 ? 100 : $V lt v4.11.0 ? 50 : 75, + cooldown => $V lt v4.11.0 ? 0 : 14, # Summon Nydus Worm +}, { %{ $unit{swarm_host} }, @@ -797,6 +1093,17 @@ $unit{viper}, { %{ $unit{ultralisk} }, armor => 2, + upgrade => [ + $unit{ultralisk}->{upgrade}->[0], # chitinous plating + { + name => 'Anabolic Synthesis', + min => 150, + gas => 150, + build => 42.85, + speed => $V lt v4.8.2 ? .41 : .82, + creep => -.215, # reverse speed increase + }, + ], }, ] -- 2.30.0