From: Mischa POSLAWSKY Date: Mon, 22 Jun 2015 08:15:32 +0000 (+0200) Subject: sc: collision diameter and transportability in size title X-Git-Tag: v1.8~100 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/72f611ca7113c0a6c6efb073f0b0555f45530760?ds=sidebyside sc: collision diameter and transportability in size title --- diff --git a/sc.plp b/sc.plp index 2a748dc..8b0e5e8 100644 --- a/sc.plp +++ b/sc.plp @@ -241,12 +241,17 @@ sub showrange { !!$_->{base} && '+', $_->{build} || '0', ), - sprintf('%s', + sprintf('%s', $_-> {cargo} < 0 ? ('supply', T => 'transport') : $_->{upgraded}->{cargo} < 0 ? ('supply magic-opt', T => 'optional transport') : $_->{attr}->{flying} ? ('air', F => 'flying') : $_->{attr}->{structure} ? ('x', B => 'building') : - ([qw( x s m l l h h h h )]->[ $_->{cargo} ], $_->{cargo} || '-', ''), + ( + [qw( x s m l l h h h h )]->[ $_->{cargo} ], + $_->{cargo} || '-', + $_->{cargo} ? 'transportable' : 'untransportable', + ), + defined $_->{size} && sprintf('⌀%.1f ', $_->{size}), ), sprintf('%s', defined $_->{pop} && $_->{pop} < 0 && ' unit-supply',