From: Mischa POSLAWSKY Date: Fri, 19 Jun 2015 14:11:33 +0000 (+0200) Subject: sc: indicate cooldown of costless specials instead X-Git-Tag: v1.8~121 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/dda7e4bcad0e3c78e0a06693b90bc97da943fa23?ds=sidebyside sc: indicate cooldown of costless specials instead --- diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index 6404dce..5cf26b2 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -2850,6 +2850,7 @@ use strict; name => 'Consume', abbr => 'cs', desc => 'leaches 200 life of friendly building over 20s to gain 50 energy', + cost => -50, duration => 20, range => 7, cooldown => 1, 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