From f8b9a7861ff42de0f09e6ed1b80b7f1783dddf45 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 30 Jun 2015 16:22:17 +0200 Subject: [PATCH] sc: rename energy property to capacity Free 'energy' for starting energy. --- sc-units-bw.inc.pl | 18 +++++++++--------- sc-units-hots.inc.pl | 40 ++++++++++++++++++++-------------------- sc.plp | 6 +++--- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/sc-units-bw.inc.pl b/sc-units-bw.inc.pl index a8ec4de..19c9237 100644 --- a/sc-units-bw.inc.pl +++ b/sc-units-bw.inc.pl @@ -195,7 +195,7 @@ upgrade => [ name => "Khaydarin Amulet", min => 150, gas => 150, - energy => 250-200, + capacity => 250-200, }, ], special => [ @@ -333,7 +333,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], special => [ @@ -468,7 +468,7 @@ upgrade => [ min => 100, gas => 100, build => 166, - energy => 250-200, + capacity => 250-200, }, ], special => [ @@ -599,7 +599,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], special => [ @@ -1000,7 +1000,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], energy => 200, @@ -1063,7 +1063,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], special => [ @@ -1331,7 +1331,7 @@ upgrade => [ min => 200, gas => 200, build => 166, - energy => 250-200, + capacity => 250-200, }, ], }, @@ -1391,7 +1391,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], }, @@ -1460,7 +1460,7 @@ upgrade => [ min => 150, gas => 150, build => 166, - energy => 250-200, + capacity => 250-200, }, ], }, diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index 2efb4b4..1befd31 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -99,7 +99,7 @@ use strict; ], speed => 1.875, sight => 9, - energy => 200, + capacity => 200, special => [ { name => 'Photon Overcharge', @@ -160,7 +160,7 @@ use strict; ], speed => 1.4062, sight => 14, - energy => 200, + capacity => 200, special => [ { name => 'Cloaking Field', @@ -217,7 +217,7 @@ use strict; ], speed => 0, sight => 11, - energy => 100, + capacity => 100, special => [ { name => 'Chrono Boost', @@ -307,7 +307,7 @@ use strict; ], speed => 2.25, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Force Field', @@ -406,7 +406,7 @@ use strict; }, speed => 1.875, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Feedback', @@ -714,7 +714,7 @@ use strict; ], speed => 4.25, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Graviton Beam', @@ -828,7 +828,7 @@ use strict; ], speed => 4, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Revelation', @@ -1342,7 +1342,7 @@ use strict; ], speed => 2.25, sight => 11, - energy => 200, + capacity => 200, special => [ { name => 'Sniper Round', @@ -1728,7 +1728,7 @@ use strict; flying => 1, }, speed => 2.5, - energy => 200, + capacity => 200, special => [ { name => 'Heal', @@ -1753,7 +1753,7 @@ use strict; min => 100, gas => 100, build => 80, - starting_energy => 25, + energy => 25, }, ], }, @@ -1789,7 +1789,7 @@ use strict; ], speed => 2.75, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Cloak', @@ -1824,7 +1824,7 @@ use strict; speed => 2.25, sight => 11, detect => 1, - energy => 200, + capacity => 200, special => [ { alt => 'Auto-Turret', @@ -1950,7 +1950,7 @@ use strict; min => 150, gas => 150, build => 110, - starting_energy => 25, + energy => 25, }, ], }, @@ -1995,7 +1995,7 @@ use strict; ], speed => 1.875, sight => 12, - energy => 200, + capacity => 200, special => [ { name => 'Yamato Cannon', @@ -2020,7 +2020,7 @@ use strict; min => 150, gas => 150, build => 80, - starting_energy => 25, + energy => 25, }, ], }, @@ -2097,7 +2097,7 @@ use strict; speed => 0.9375, creep => 2.7, sight => 9, - energy => 200, + capacity => 200, special => [ { name => 'Spawn Larva', @@ -2198,7 +2198,7 @@ use strict; creep => 0, sight => 11, detect => 1, - energy => 200, + capacity => 200, special => [ { name => 'Spawn Changeling', @@ -2570,7 +2570,7 @@ use strict; speed => 2.25, creep => 1.3, sight => 10, - energy => 200, + capacity => 200, special => [ { name => 'Neural Parasite', @@ -2625,7 +2625,7 @@ use strict; min => 150, gas => 150, build => 80, - starting_energy => 25, + energy => 25, }, ], }, @@ -2900,7 +2900,7 @@ use strict; }, speed => 2.9531, sight => 11, - energy => 200, + capacity => 200, special => [ { name => 'Blinding Cloud', diff --git a/sc.plp b/sc.plp index 28d22d7..c367da0 100644 --- a/sc.plp +++ b/sc.plp @@ -121,9 +121,9 @@ sub showrange { sub showcost { my ($row, $unit) = @_; - my $minmult = 100 / $unit->{energy}; # cost multiplier - my $maxmult = $unit->{upgraded}->{energy} && - 100 / $unit->{upgraded}->{energy}; + my $minmult = 100 / $unit->{capacity}; # cost multiplier + my $maxmult = $unit->{upgraded}->{capacity} && + 100 / $unit->{upgraded}->{capacity}; return join(' ', sprintf('cost %s%%', -- 2.30.0