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}"
my $specials = $row->{special} or return '';
return join ' ', map {
sprintf '<span%s title="%s">%s</span>',
- $_->{duration} < 0 && ' class="magic-perma"',
+ join('',
+ $_->{duration} < 0 && ' class="magic-perma"',
+ $_->{detect} && ' class="unit-detect"',
+ ),
join('',
$_->{name} // $_->{alt},
$_->{desc} ? ": $_->{desc}" : '',
$_->{transform},
) :
!defined $_->{build} ? '<td>' : sprintf('<td class="val time"%s>%s%.0f',
- defined $_->{warp} && qq(title="$_->{build} without warpgate"),
+ defined $_->{warp} && sprintf(' title="%.0f without warpgate"', $_->{build}),
!!$_->{base} && sprintf(
'<span class="unit-composed" title="%s">+</span>',
'from '.join('+', @{ $_->{base} }),