sprintf('<td class="unit unit-%s" title="%4$s%3$s">%s',
$_-> {cargo} < 0 ? ('supply', T => 'transport') :
$_->{upgraded}->{cargo} < 0 ? ('supply magic-opt', T => 'optional transport') :
- $_->{attr}->{flying} ? ('air', F => 'flying') :
+ $_-> {attr}->{flying} ? ('air', F => 'flying') :
+ $_->{upgraded}->{attr}->{flying} ? ('air magic-opt', F => 'potentially flying') :
$_->{attr}->{structure} ? ('x', B => 'building') :
(
[qw( x s m l l h h h h )]->[ $_->{cargo} ],
&& '<span class="unit-massive" title="massive">⚓</span>',
),
$_->{hp} < 0 ? '<td class="val unit-hp" title="invulnerable">∞' :
- '<td class="val unit-hp">' . $_->{hp} // '',
+ '<td class="val unit-hp">' . showrangeint($_->{hp}, $_->{upgraded}->{hp}),
$_->{shield} ? sprintf('<td class="val unit-shield">%.0f%%<td',
100 * $_->{shield} / $_->{hp}
) : '<td colspan=2',