use utf8;
use strict;
-my $V = v5.0.2;
+my $V = v5.0.11;
my $RT = 1.4; # real-time speed factor to faster
my $hots = do 'sc-units-hots.inc.pl' or die $!;
$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',
+ desc => sprintf(
+ 'increase target Shield Battery restoration rate by %d%% and function without consuming energy for 14s',
+ $V ge v5.0.11 ? 50 : 100,
+ ),
cost => 50,
duration => 14,
cooldown => 60, # shared by all nexuses
{
%{ $unit{sentry} },
+ build => $V ge v5.0.11 ? 22.9 : 26.4,
+ speed => $V ge v5.0.11 ? 3.5 : 3.15,
special => [
$unit{sentry}->{special}->[0], # ff
{
{
%{ $unit{high_templar} },
+ speed => $V ge v5.0.11 ? 2.82 : 2.63,
attack => [
{
anti => 1,
{
name => 'Shadow Stride',
abbr => 'bl',
- desc => 'teleport to visible location',
+ desc => sprintf('teleport to visible location, %.2fs attack delay afterwards', $V ge v5.0.11 ? .71 : .75),
min => 100,
gas => 100,
build => $V lt v4.7.1 ? 121 : 100,
{
%{ $unit{observer} },
- speed => $V lt v4.8.2 || $V ge v4.11.0 ? 2.63 : 3.01,
+ speed => $V ge v5.0.11 ? 2.82 : $V lt v4.8.2 || $V ge v4.11.0 ? 2.63 : 3.01,
+ size => $V ge v5.0.11 ? 1.1 : 1,
special => [
$unit{observer}->{special}->[0], # cloak
{
shields => 55,
},
type => 'trans', #TODO: indicate
- splash => 1.5,
+ splash => $V ge v5.0.11 ? 1.375 : 1.5,
cooldown => 14.3,
range => 13, # 2s
},
{
%{ $unit{void_ray} },
- min => $V lt v5.0.2 ? 250 : 200,
+ min => $V lt v5.0.9 && $V ge v5.0.2 ? 200 : 250,
speed => $V lt v5.0.2 ? 3.5 : 3.85,
- build => $V lt v5.0.2 ? 43 : 37,
+ build => $V lt v5.0.9 && $V ge v5.0.2 ? 37 : 43,
upgrade => [
{
name => 'Flux Vanes',
cooldown => $V lt v4.12.0 ? 2 : 10,
duration => $V lt v4.12.0 ? 30 : $V lt v5.0.2 ? 15 : 20,
radius => 6,
+ detect => 1,
},
{
name => 'Stasis Ward',
abbr => 'st',
desc => '170 damage ignoring armor to a biological unit after 1.43s without damage',
cost => 50,
- range => 10,
+ range => 10, # kept until 14
duration => 1.43,
},
{
%{ $unit{ghost}->{special}->[1] }, # emp round
- radius => $V lt v4.10.1 ? 1.5 : 2,
+ radius => $V ge v5.0.11 ? 1.75 : $V lt v4.10.1 ? 1.5 : 2,
},
$unit{ghost}->{special}->[2], # cloak
$unit{ghost}->{special}->[3], # tac nuke strike
],
+ upgrade => [
+ $V ge v5.0.11 || $V lt v4.10.1 ? () : {
+ name => 'Enhanced Shockwaves',
+ min => 150,
+ gas => 150,
+ build => 79,
+ special => [
+ {},
+ { radius => .5 }, # emp
+ {},
+ {},
+ ],
+ },
+ ],
},
{
bonus => {
shields => 25,
},
+ transform => $V lt v5.0.9 ? .71 : 1.07,
},
],
},
{
name => 'Lock On',
abbr => 'lo',
- 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',
+ desc => (
+ $V ge v5.0.11 ? 'deal 400 damage (600 after upgrade) over 14 seconds' :
+ $V ge v4.7.1 ? 'deal 400 damage (double to armored after upgrade) over 14 seconds' :
+ 'target air for 160 damage ignoring armor while visible and within 15 range'
+ ),
range => 7,
duration => 14.3,
cooldown => 4,
min => 100,
gas => 100,
build => $V lt v4.8.2 ? 79 : 100,
- desc => 'increases lock-on damage to ',
+ desc => 'increases lock-on damage by '.($V ge v5.0.11 ? '50%' : '100% vs armored'),
},
],
},
pop => 3,
min => 150,
- gas => 150,
+ gas => $V ge v5.0.11 ? 125 : 150,
build => 43,
size => 1.5,
armor => 0,
{
name => 'Hyperflight Rotors',
speed => 1.4,
- min => $V lt v4.7.1 ? 200 : 150,
- gas => $V lt v4.7.1 ? 200 : 150,
- build => 121,
+ min => $V ge v5.0.11 ? 125 : $V ge v4.7.1 ? 150 : 200,
+ gas => $V ge v5.0.11 ? 125 : $V ge v4.7.1 ? 150 : 200,
+ build => $V ge v5.0.11 ? 100 : 121.4,
},
],
},
{
%{ $unit{raven} },
+ gas => $V ge v5.0.11 ? 150 : 200,
+ build => $V ge v5.0.11 ? 34.3 : 42.9,
speed => $V lt v4.11.0 ? 3.85 : 4.13,
+ upgrade => $V ge v5.0.11 ? [] : $unit{raven}->{upgrade}, # corvid reactor
special => [
{
%{ $unit{raven}->{special}->[0] }, # auto-turret
range => 6,
},
],
+ hp => $V ge v5.0.11 ? 100 : 150,
+ armor => $V ge v5.0.11 ? 0 : 1,
range => $V lt v4.3.0 ? 1 : 2,
- duration => 10,
+ duration => $V ge v5.0.11 ? 7.9 : 10,
upgrade => [
$unit{raven}->{special}->[0]->{upgrade}->[0], # hi-sec auto tracking
$unit{raven}->{special}->[0]->{upgrade}->[1], # structure armor
{
name => 'Anti-Armor Missile',
abbr => 'aa',
- desc => $V lt v4.7.1 ? 'launches missile to do splash damage and reduce armor by 3'
- : 'launches missile to reduce armor by 3',
+ desc => sprintf('launches missile %s reduce armor by %d',
+ $V lt v4.7.1 ? 'to do splash damage and' : 'to',
+ $V ge v5.0.11 ? 2 : 3,
+ ),
range => 10,
size => 2.88,
attack => [
pop => 3,
min => 25,
gas => 75,
- build => 9,
+ build => $V ge v5.0.11 ? 12.14 : 8.57+.36, # added max random
size => 1.5,
cargo => 4,
armor => 1,
attack => [
{
anti => 1,
- name => '?',
+ name => 'Spines',
damage => 20,
upgrade => 2,
splash => 'line',
},
},
],
+ transform => 2.0,
upgrade => [
$V lt v4.11.0 ? () : {
name => 'Seismic Spines',
gas => 150,
build => 57,
},
+ {
+ name => 'Adaptive Talons',
+ desc => 'halves burrow time and increases movement speed',
+ speed => .413,
+ transform => $V lt v5.0.9 ? .71 : 1.07,
+ },
],
speed => 4.13,
creep => 1.3,
$unit{mutalisk},
$unit{corruptor},
-$unit{brood_lord},
+
+{
+ %{ $unit{brood_lord} },
+ speed => $V ge v5.0.11 ? 2.24 : 1.97,
+},
+
$unit{viper},
{
%{ $unit{ultralisk} },
armor => 2,
+ size => $V ge v5.0.11 ? 1.75 : 2,
upgrade => [
$unit{ultralisk}->{upgrade}->[0], # chitinous plating
{