sc: update mode specials metadata
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 29 May 2022 11:26:56 +0000 (13:26 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 2 Jun 2022 21:57:11 +0000 (23:57 +0200)
sc-units-hots.inc.pl
sc-units-lotv.inc.pl
sc.css
sc.plp

index 884e90db948539c55262cf54c8d8b483f8ce95f2..79b0c84e46352aa4d9aaf0777209fd7ce62daeb2 100644 (file)
@@ -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',
index bf5de99b8d2336c3539749ed0e1bbb1f9edf23f1..ca4b9c6e9b74a9454a2bac4cf1ab1686a3fe582b 100644 (file)
@@ -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 b60bd8dfb33b8af78f2b257bfab5f03cbe2b20f3..d670cf8b57cf0b82f48fe68d81cba3c098e2d452 100644 (file)
--- 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 fde2597226ea34dff51164720151e76554d4a7d4..01b4957c5e07b69489b34ec0a082f5dcd1e6642f 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -253,7 +253,7 @@ sub showrangeint {
                        sprintf '<span%s title="%s">%s</span>',
                                $_->{duration} < 0 && ' class="magic-perma"',
                                join('',
-                                       $_->{name},
+                                       $_->{name} // $_->{alt},
                                        $_->{desc} ? ": $_->{desc}" : '',
                                        (map { $_ && " ($_)" } join ', ',
                                                #TODO: apply upgrades