X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/92599fd64e5807f0af90406e02385d3be7001379..dda7e4bcad0e3c78e0a06693b90bc97da943fa23:/sc.plp diff --git a/sc.plp b/sc.plp index c86ef0b..a7da312 100644 --- a/sc.plp +++ b/sc.plp @@ -145,7 +145,9 @@ sub showrange { )} keys %{ $attack->{bonus} }), ) if $attack->{bonus}; + $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 +188,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}; @@ -418,8 +422,8 @@ if ($scver{major} > 1) {
speed
relative speed of movement (when in full motion, startup speed ignored)
specials -
special abilities are usually casted manually, but some are always active
parentheses () indicate that it needs to be researched first +
passive abilities are always enabled
hover for description
range is maximum range required to activate
cost is percentage of total energy lost