X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/1765f080901b6e821b148a4d6ad7b49aee5da03f..dda7e4bcad0e3c78e0a06693b90bc97da943fa23:/sc.plp diff --git a/sc.plp b/sc.plp index df78b8e..a7da312 100644 --- a/sc.plp +++ b/sc.plp @@ -188,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}; @@ -420,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