X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a691b071501b1ef5239752a1e594a449e8c2d16d..72f611ca7113c0a6c6efb073f0b0555f45530760:/sc.plp diff --git a/sc.plp b/sc.plp index 5b7e4a7..8b0e5e8 100644 --- a/sc.plp +++ b/sc.plp @@ -241,11 +241,17 @@ sub showrange { !!$_->{base} && '+', $_->{build} || '0', ), - sprintf('%s', - $_->{cargo} < 0 ? ('supply', T => 'transport') : + 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', @@ -291,8 +297,6 @@ sub showrange { showrange($_->{speed}, $_->{upgraded}->{speed}), $_->{attr}->{jump} && qq'↕', - $_->{attr}->{flying} - && qq'↑', '' . showmagic($_), !$_->{attack}->[1] ? () : ( '', showattack($_, 1), ''