From 0ca6c51273fb8cadc0a5ded13f5595743ac16640 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 23 May 2023 02:57:47 +0200 Subject: [PATCH] sc: ghost upgrades --- sc-units-hots.inc.pl | 14 ++++++++++++-- sc-units-lotv.inc.pl | 14 ++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index b3fd1cd..55da725 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -1387,7 +1387,16 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( ], speed => 2.25, sight => 11, - energy => 75, + energy => $V ge v4.1.4 || $V lt v4.0.0 ? 75 : 50, + upgrade => [ + $V ge v4.1.4 || $V lt v4.0.0 ? () : { + name => 'Moebius Reactor', + min => 100, + gas => 100, + build => 80, + energy => 25, + }, + ], capacity => 200, special => [ { @@ -1403,7 +1412,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( desc => 'reveals cloaked units and removes up to 100 shields and energy', cost => 75, range => 10, - radius => 1.5, + radius => 1.5, # 2 after upgrade }, { name => 'Personal Cloaking', @@ -2613,6 +2622,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( build => 100, speed => 0.5625, creep => -0.302, + speed => $V ge v5.0.11 ? .98 : .79, #TODO }, ], }, diff --git a/sc-units-lotv.inc.pl b/sc-units-lotv.inc.pl index 9ce2661..95e7406 100644 --- a/sc-units-lotv.inc.pl +++ b/sc-units-lotv.inc.pl @@ -509,6 +509,20 @@ $unit{marine}, $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 + {}, + {}, + ], + }, + ], }, { -- 2.30.0