From 77814bcd7d178a8d353ca1625680f36c824a7fa0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 18 Jun 2023 13:49:30 +0200 Subject: [PATCH] sc: mark detection abilities similar to sight column --- sc-units-hots.inc.pl | 2 ++ sc-units-lotv.inc.pl | 1 + sc.plp | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index 55da725..9b49af2 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -1413,6 +1413,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( cost => 75, range => 10, radius => 1.5, # 2 after upgrade + detect => 1, }, { name => 'Personal Cloaking', @@ -2669,6 +2670,7 @@ my $GATHER = "gather 5 minerals (7 gold) after 4s (upto 60/minute)\n or 4 gas ( range => 10, duration => 4, radius => 2.0, + detect => 1, }, { alt => 'Infested Terran', diff --git a/sc-units-lotv.inc.pl b/sc-units-lotv.inc.pl index 95e7406..9a2433d 100644 --- a/sc-units-lotv.inc.pl +++ b/sc-units-lotv.inc.pl @@ -363,6 +363,7 @@ $unit{phoenix}, 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', diff --git a/sc.plp b/sc.plp index e0465ba..4ad48a3 100644 --- a/sc.plp +++ b/sc.plp @@ -251,7 +251,10 @@ sub showrangeint { my $specials = $row->{special} or return ''; return join ' ', map { sprintf '%s', - $_->{duration} < 0 && ' class="magic-perma"', + join('', + $_->{duration} < 0 && ' class="magic-perma"', + $_->{detect} && ' class="unit-detect"', + ), join('', $_->{name} // $_->{alt}, $_->{desc} ? ": $_->{desc}" : '', -- 2.30.0