- '<td class="val min">' . ($_->{min} // ''),
- '<td class="val gas">' . ($_->{gas} || ''),
- !defined $_->{build} ? '<td>' : sprintf('<td class="val time">%s%.0f',
- !!$_->{base} && '<span class="unit-composed">+</span>',
- $_->{build} || '0',
+ '<td class="val unit-min">' . ($_->{min} // ''),
+ '<td class="val unit-gas">' . ($_->{gas} || ''),
+ defined $_->{transform} ? sprintf('<td class="val time">%.0f',
+ $_->{transform},
+ ) :
+ !defined $_->{build} ? '<td>' : sprintf('<td class="val time"%s>%s%.0f',
+ defined $_->{warp} && sprintf(' title="%.0f without warpgate"', $_->{build}),
+ !!$_->{base} && sprintf(
+ '<span class="unit-composed" title="%s">+</span>',
+ 'from '.join('+', @{ $_->{base} }),
+ ),
+ $_->{warp} // $_->{build} || '0',