X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/71b75981ceb57981c622a3e240d492551b7ef109..98a8228ac6651509dfe58a871594b5cc22cee553:/sc.plp diff --git a/sc.plp b/sc.plp index fde2597..e784cbd 100644 --- a/sc.plp +++ b/sc.plp @@ -38,7 +38,7 @@ my $datafile = "sc-units-$Request"; Html({ title => "$scver{title} unit cheat sheet", - version => '1.3', + version => '1.4', description => [ "Reference of $scver{game} unit properties," . " comparing various statistics of all the units in $scver{name}" @@ -251,9 +251,12 @@ sub showrangeint { my $specials = $row->{special} or return ''; return join ' ', map { sprintf '%s', - $_->{duration} < 0 && ' class="magic-perma"', join('', - $_->{name}, + $_->{duration} < 0 && ' class="magic-perma"', + $_->{detect} && ' class="unit-detect"', + ), + join('', + $_->{name} // $_->{alt}, $_->{desc} ? ": $_->{desc}" : '', (map { $_ && " ($_)" } join ', ', #TODO: apply upgrades @@ -278,7 +281,7 @@ sub showrangeint { $_->{transform}, ) : !defined $_->{build} ? '