X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/92599fd64e5807f0af90406e02385d3be7001379..765f1c0e70d229d888df567497e51ac971628078:/sc.plp diff --git a/sc.plp b/sc.plp index c86ef0b..1c61130 100644 --- a/sc.plp +++ b/sc.plp @@ -144,8 +144,12 @@ sub showrange { ), )} keys %{ $attack->{bonus} }), ) if $attack->{bonus}; + $out .= 'â¢' + if $attack->{type} eq 'projectile'; + $out .= sprintf '', $attack->{name} if $attack->{name}; $out .= showrange($damage, $maxdamage); + $out .= '' if $attack->{name}; $out .= sprintf('%s', $attack->{splash} eq 'line' ? ('linear', 'Ã') : ('splash', '+') ) if $attack->{splash}; @@ -186,15 +190,17 @@ sub showrange { join('', $_->{name}, $_->{desc} ? ": $_->{desc}" : '', - $_->{range} || $_->{cost} ? sprintf(' (%s)', join ', ', + (map { $_ && " ($_)" } join ', ', + #TODO: apply upgrades $_->{range} ? "range $_->{range}" : (), $_->{cost} ? sprintf('cost %.0f%%%s', 100 * $_->{cost} / $row->{energy}, defined $_->{maint} && sprintf('+%.1f%%/s', 100 * $_->{maint} / $row->{energy}, ), - ) : (), - ) : '', + ) : + $_->{cooldown} ? "cooldown $_->{cooldown}s" : (), + ), ), sprintf($_->{build} ? '(%s)' : '%s', $_->{abbr}), } grep { defined $_->{abbr} } @{$specials}; @@ -401,7 +407,9 @@ if ($scver{major} > 1) {