git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fcc0d8
)
sc: indicate passive abilities, including cloak
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 12 Jun 2015 22:11:17 +0000
(
00:11
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 12 Jun 2015 22:11:17 +0000
(
00:11
+0200)
sc-units.inc.pl
patch
|
blob
|
history
sc.plp
patch
|
blob
|
history
diff --git
a/sc-units.inc.pl
b/sc-units.inc.pl
index 76223d505bdf18454780bc30046a6d85a8caefed..06ec25e0db4422ce4b6ed0e6856183abfd1332fa 100644
(file)
--- a/
sc-units.inc.pl
+++ b/
sc-units.inc.pl
@@
-231,7
+231,14
@@
attack => {
},
sight => 7,
speed => 15,
},
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,
desc => 'permanently gives you control over any unit',
range => 8,
cost => 150,
- duration =>
-1
,
+ duration =>
0
,
},
{
name => 'Maelstrom',
},
{
name => 'Maelstrom',
@@
-671,7
+678,14
@@
upgrade => [
speed => 13 - 9,
},
],
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,
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,
range => 12,
},
speed => 0,
- duration => -1,
},
],
},
},
],
},
diff --git
a/sc.plp
b/sc.plp
index b14e04f49a303dfb518bb7b8bf5f6492681e37f4..0426b6eacb1eb97baabac2179d63773a55896838 100644
(file)
--- 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;
}
.unit-magic {
padding-left: 0.5em;
}
+ .magic-perma {
+ text-decoration: underline;
+ }
.units .val {
text-align: right;
.units .val {
text-align: right;
@@
-246,7
+249,8
@@
sub showrange {
my ($row) = @_;
my $specials = $row->{special} or return '';
return join ' ', map {
my ($row) = @_;
my $specials = $row->{special} or return '';
return join ' ', map {
- sprintf '<span title="%s">%s</span>',
+ sprintf '<span%s title="%s">%s</span>',
+ $_->{duration} < 0 && ' class="magic-perma"',
join('',
$_->{name},
$_->{desc} ? ": $_->{desc}" : '',
join('',
$_->{name},
$_->{desc} ? ": $_->{desc}" : '',
@@
-391,7
+395,7
@@
sub showrange {
<dt>speed
<dd>relative speed of movement (when in full motion, startup speed ignored)
<dt>specials
<dt>speed
<dd>relative speed of movement (when in full motion, startup speed ignored)
<dt>specials
- <dd>special abilities
+ <dd>special abilities
are usually casted manually, but some are <span class="magic-perma">always active</span>
<dd>parentheses () indicate that it needs to be researched first
<dd>hover for description
<dd>range is maximum range required to activate
<dd>parentheses () indicate that it needs to be researched first
<dd>hover for description
<dd>range is maximum range required to activate