$_->{desc} ? ": $_->{desc}" : '',
$_->{range} ? sprintf(' (%s)', join ', ',
"range $_->{range}",
-# "cost $_->{cost}",
+# sprintf('cost %.0f%%', 100 * $_->{cost} / $row->{energy}),
) : '',
),
$_->{abbr},
sub showunitcols {
my ($row) = @_;
local $_ = $row;
+ $_->{hp} += $_->{shield} if $_->{shield};
my $suitchar = '';
if ($_->{suit}) {
$suitchar = [qw/? s m l/]->[$_->{suit}];
printf '<tbody id="%s"><tr class="race"><th colspan="18"><h2>%s</h2>'."\n", $race, ucfirst $race
if $grouped and $race ne $_->{race};
$_->{cat} = $_->{race} if not $grouped;
- $_->{hp} += $_->{shield};
print(
'<tr>',
sprintf('<t%s class="cat">%s', $cat ne $_->{cat} ? ('h', $cat = $_->{cat}) : ('d', ' ')),