From e162106cb6f2118c223c110ed2d69f3819458831 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 29 May 2022 13:26:56 +0200 Subject: [PATCH] sc: update mode specials metadata --- sc-units-hots.inc.pl | 7 ++++--- sc-units-lotv.inc.pl | 16 +++++++++++++++- sc.css | 2 +- sc.plp | 2 +- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index 884e90d..79b0c84 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -1621,8 +1621,8 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( ], special => [ { - name => 'siege mode', - abbr => 'sg', + name => 'Siege Mode', + abbr => 'sm', alt => 'Sieged Tank', cargo => 0, attack => [ @@ -2265,6 +2265,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( special => [ { name => 'Spawn Changeling', + abbr => 'sc', alt => 'Changeling', cost => 50, duration => 150, @@ -2280,6 +2281,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( speed => 2.25, creep => 1.0, sight => 8, + range => 0, }, { name => 'Contaminate', @@ -2915,7 +2917,6 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( special => [ { name => 'Swarm Seeds', - abbr => 'ss', desc => 'Broodlings are spawned upon each attack', duration => -1, alt => 'Broodling', diff --git a/sc-units-lotv.inc.pl b/sc-units-lotv.inc.pl index bf5de99..ca4b9c6 100644 --- a/sc-units-lotv.inc.pl +++ b/sc-units-lotv.inc.pl @@ -238,6 +238,7 @@ $unit{archon}, name => 'Surveillance Mode', abbr => 'sm', desc => 'gain 25% vision while immobilized', + speed => 0, sight => 2.75, # +25% transform => .54, }, @@ -871,7 +872,20 @@ $unit{drone}, ], }, -$unit{overseer}, +{ + %{ $unit{overseer} }, + special => [ + { + name => 'Oversight Mode', + abbr => 'om', + desc => 'gain 25% vision while immobilized', + speed => 0, + sight => 11 * 1.25, + transform => .54, + }, + @{ $unit{overseer}->{special} }, # changeling, contaminate + ], +}, $unit{larva}, $unit{spine_crawler}, diff --git a/sc.css b/sc.css index b60bd8d..d670cf8 100644 --- a/sc.css +++ b/sc.css @@ -73,7 +73,7 @@ td.hurtrel { content: ')'; } .magic-perma { - text-decoration: underline; + font-variant: small-caps; } .units .val { diff --git a/sc.plp b/sc.plp index fde2597..01b4957 100644 --- a/sc.plp +++ b/sc.plp @@ -253,7 +253,7 @@ sub showrangeint { sprintf '%s', $_->{duration} < 0 && ' class="magic-perma"', join('', - $_->{name}, + $_->{name} // $_->{alt}, $_->{desc} ? ": $_->{desc}" : '', (map { $_ && " ($_)" } join ', ', #TODO: apply upgrades -- 2.30.0