From 1cb822295129412ecabcac689b469a35d619724a Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 13 Jun 2015 00:11:17 +0200 Subject: [PATCH] sc: indicate passive abilities, including cloak --- sc-units.inc.pl | 23 ++++++++++++++++++----- sc.plp | 8 ++++++-- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/sc-units.inc.pl b/sc-units.inc.pl index 76223d5..06ec25e 100644 --- a/sc-units.inc.pl +++ b/sc-units.inc.pl @@ -231,7 +231,14 @@ attack => { }, sight => 7, speed => 15, -cloak => 1, +special => [ + { + name => 'Cloaked', + abbr => 'cl', + desc => 'cloaked at all times', + duration => -1, + }, +], }, { @@ -317,7 +324,7 @@ special => [ desc => 'permanently gives you control over any unit', range => 8, cost => 150, - duration => -1, + duration => 0, }, { name => 'Maelstrom', @@ -671,7 +678,14 @@ upgrade => [ speed => 13 - 9, }, ], -cloak => 1, +special => [ + { + name => 'Cloaked', + abbr => 'cl', + desc => 'cloaked at all times', + duration => -1, + }, +], }, { @@ -1002,7 +1016,7 @@ special => [ desc => 'reduces the sight of target unit to 1', range => 9, cost => 75, - duration => -1, + duration => 0, }, ], }, @@ -1116,7 +1130,6 @@ special => [ range => 12, }, speed => 0, - duration => -1, }, ], }, diff --git a/sc.plp b/sc.plp index b14e04f..0426b6e 100644 --- a/sc.plp +++ b/sc.plp @@ -108,6 +108,9 @@ Unit properties as seen or measured in Brood War .unit-magic { padding-left: 0.5em; } + .magic-perma { + text-decoration: underline; + } .units .val { text-align: right; @@ -246,7 +249,8 @@ sub showrange { my ($row) = @_; my $specials = $row->{special} or return ''; return join ' ', map { - sprintf '%s', + sprintf '%s', + $_->{duration} < 0 && ' class="magic-perma"', join('', $_->{name}, $_->{desc} ? ": $_->{desc}" : '', @@ -391,7 +395,7 @@ sub showrange {
speed
relative speed of movement (when in full motion, startup speed ignored)
specials -
special abilities +
special abilities are usually casted manually, but some are always active
parentheses () indicate that it needs to be researched first
hover for description
range is maximum range required to activate -- 2.30.0