sc: rename energy property to capacity
[sheet.git] / sc-units-hots.inc.pl
index c183ef71b3224f22c561626a612aea60b63454d1..1befd315819402f32194eb80ae04b92d47789881 100644 (file)
@@ -11,7 +11,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Probe',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -27,8 +27,8 @@ use strict;
        attack => [
                {
                        anti => 1,
+                       name => 'Particle beam',
                        damage => 5,
-                       dps => 3.3,
                        cooldown => 1.5,
                        range => 0,
                },
@@ -55,8 +55,8 @@ use strict;
        attack => [
                {
                        anti => 3,
+                       name => 'Phase disruptor',
                        damage => 20,
-                       dps => 16,
                        cooldown => 1.25,
                        type => 'projectile',
                        range => 7,
@@ -71,7 +71,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Mothership Core',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 30,
@@ -89,8 +89,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [8 .. 11],
-                       dps => [9.4, 10.6, 11.8, 13.0],
+                       name => 'Repulsor Cannon',
+                       damage => 8,
+                       upgrade => 1,
                        type => 'projectile',
                        cooldown => 0.85,
                        range => 5,
@@ -98,7 +99,7 @@ use strict;
        ],
        speed => 1.875,
        sight => 9,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Photon Overcharge',
@@ -122,7 +123,7 @@ use strict;
                        cost => 100,
                        radius => 3.5,
                        range => 9,
-                       duration => 30,
+                       duration => 10,
                },
        ],
 },
@@ -131,7 +132,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Mothership',
-       unit => 8,
+       pop => 8,
        min => 300,
        gas => 300,
        build => 100,
@@ -149,8 +150,9 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [6 .. 9],
-                       dps => [16.3, 19.0, 21.7, 24.4],
+                       name => 'Purifier beams',
+                       damage => 6,
+                       upgrade => 1,
                        cooldown => 2.21,
                        count => 6,
                        range => 7,
@@ -158,7 +160,7 @@ use strict;
        ],
        speed => 1.4062,
        sight => 14,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Cloaking Field',
@@ -206,8 +208,8 @@ use strict;
        attack => [
                {
                        anti => 3,
+                       name => 'Photon overcharge',
                        damage => 20,
-                       dps => 16,
                        cooldown => 1.25,
                        type => 'projectile',
                        range => 13,
@@ -215,7 +217,7 @@ use strict;
        ],
        speed => 0,
        sight => 11,
-       energy => 100,
+       capacity => 100,
        special => [
                {
                        name => 'Chrono Boost',
@@ -231,7 +233,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Zealot',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 38,
@@ -248,8 +250,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [8 .. 11],
-                       dps => [13.3, 15.0, 16.7, 18.4],
+                       name => 'Psi blades',
+                       damage => 8,
+                       upgrade => 1,
                        cooldown => 1.2,
                        count => 2,
                        range => 0,
@@ -277,7 +280,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Sentry',
-       unit => 2,
+       pop => 2,
        min => 50,
        gas => 100,
        build => 37,
@@ -295,15 +298,16 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [6 .. 9],
-                       dps => [6 .. 9],
+                       name => 'Disruption beam',
+                       damage => 6,
+                       upgrade => 1,
                        cooldown => 1.0,
                        range => 5,
                },
        ],
        speed => 2.25,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Force Field',
@@ -337,7 +341,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Stalker',
-       unit => 2,
+       pop => 2,
        min => 125,
        gas => 50,
        build => 42,
@@ -354,8 +358,9 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [10 .. 13],
-                       dps => [6.9, 7.6, 8.3, 9.0],
+                       name => 'Particle disruptors',
+                       damage => 10,
+                       upgrade => 1,
                        bonus => {
                                armored => 4,
                        },
@@ -384,7 +389,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'High Templar',
-       unit => 2,
+       pop => 2,
        min => 50,
        gas => 150,
        build => 55,
@@ -401,7 +406,7 @@ use strict;
        },
        speed => 1.875,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Feedback',
@@ -430,7 +435,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Dark Templar',
-       unit => 2,
+       pop => 2,
        min => 125,
        gas => 125,
        build => 55,
@@ -448,8 +453,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [45, 50, 55, 60],
-                       dps => [26.6, 29.6, 32.6, 35.6],
+                       name => 'Warp blade',
+                       damage => 45,
+                       upgrade => 5,
                        cooldown => 1.694,
                        range => 0,
                },
@@ -472,7 +478,7 @@ use strict;
        name => 'Archon',
        min => 100, # or 175 or 250
        gas => 300, # or 275 or 250
-       unit => 4,
+       pop => 4,
        build => 12,
        base => ['Templar', 'Templar'],
        size => 1.5,
@@ -487,10 +493,12 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [25, 28, 31, 34],
-                       dps => [14.3, 16.0, 17.7, 19.4],
+                       name => 'Psionic shockwave',
+                       damage => 25,
+                       upgrade => 3,
                        bonus => {
-                               organic => [10 .. 13],
+                               organic => 10,
+                               -organic => 1,
                        },
                        splash => 1,
                        cooldown => 1.754,
@@ -505,7 +513,7 @@ use strict;
        race => 'protoss',
        cat => 'robotic',
        name => 'Immortal',
-       unit => 4,
+       pop => 4,
        min => 250,
        gas => 100,
        build => 55,
@@ -521,11 +529,13 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [20, 22, 24, 26],
+                       name => 'Phase disruptors',
+                       damage => 20,
+                       upgrade => 2,
                        bonus => {
-                               armored => [30, 33, 36, 39],
+                               armored => 30,
+                               -armored => 3,
                        },
-                       dps => [13.8, 15.2, 16.6, 18.0],
                        cooldown => 1.45,
                        range => 6,
                },
@@ -546,7 +556,7 @@ use strict;
        race => 'protoss',
        cat => 'robotic',
        name => 'Colossus',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 75,
@@ -564,8 +574,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [15, 17, 19, 21],
-                       dps => [18.2, 20.6, 23.0, 25.4],
+                       name => 'Thermal Lances',
+                       damage => 15,
+                       upgrade => 2,
                        splash => 'line',
                        cooldown => 1.65,
                        count => 2,
@@ -593,7 +604,7 @@ use strict;
        race => 'protoss',
        cat => 'robotic',
        name => 'Observer',
-       unit => 1,
+       pop => 1,
        min => 25,
        gas => 75,
        build => 30,
@@ -633,7 +644,7 @@ use strict;
        race => 'protoss',
        cat => 'robotic',
        name => 'Warp Prism',
-       unit => 2,
+       pop => 2,
        min => 200,
        gas => 0,
        build => 50,
@@ -672,7 +683,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Phoenix',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 100,
        build => 35,
@@ -689,8 +700,9 @@ use strict;
        attack => [
                {
                        anti => 2,
-                       damage => [5 .. 8],
-                       dps => [9, 10.8, 12.6, 14.4],
+                       name => 'Ion Cannons',
+                       damage => 5,
+                       upgrade => 1,
                        bonus => {
                                light => 5,
                        },
@@ -702,7 +714,7 @@ use strict;
        ],
        speed => 4.25,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Graviton Beam',
@@ -732,7 +744,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Void Ray',
-       unit => 4,
+       pop => 4,
        min => 250,
        gas => 150,
        build => 60,
@@ -749,11 +761,13 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [6 .. 9],
+                       name => 'Prismatic beam',
+                       damage => 6,
+                       upgrade => 1,
                        bonus => {
-                               armored => [4 .. 7],
+                               armored => 4,
+                               -armored => 1,
                        },
-                       dps => [12, 14, 16, 18],
                        cooldown => 0.5,
                        range => 6, # keeps firing until range 8
                },
@@ -770,7 +784,7 @@ use strict;
                        attack => [
                                {
                                        bonus => {
-                                               armored => 6, # total +10 .. 13
+                                               armored => 6,
                                        },
                                },
                        ],
@@ -782,7 +796,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Oracle',
-       unit => 3,
+       pop => 3,
        min => 150,
        gas => 150,
        build => 50,
@@ -806,7 +820,6 @@ use strict;
                        bonus => {
                                light => 10,
                        },
-                       dps => 17.4,
                        cooldown => 0.86,
                        cost => 25,
                        maint => 1.4,
@@ -815,7 +828,7 @@ use strict;
        ],
        speed => 4,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Revelation',
@@ -842,7 +855,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Tempest',
-       unit => 4,
+       pop => 4,
        min => 300,
        gas => 200,
        build => 60,
@@ -859,12 +872,23 @@ use strict;
        },
        attack => [
                {
-                       anti => 3,
-                       damage => [30, 33, 36, 39],
+                       anti => 2,
+                       name => 'Kinetic Overload',
+                       damage => 30,
+                       upgrade => 3,
                        bonus => {
-                               'massive air' => 14,
+                               massive => 14,
+                               -massive => 2,
                        },
-                       dps => [9.1, 10.0, 10.9, 11.8],
+                       type => 'projectile',
+                       cooldown => 3.3,
+                       range => 15,
+               },
+               {
+                       anti => 1,
+                       name => 'Resonance Coil',
+                       damage => 30,
+                       upgrade => 3,
                        type => 'projectile',
                        cooldown => 3.3,
                        range => 15,
@@ -878,7 +902,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Carrier',
-       unit => 6,
+       pop => 6,
        min => 350,
        gas => 250,
        build => 120,
@@ -895,7 +919,11 @@ use strict;
        },
        attack => [
                {
+                       anti => 3,
+                       count => 8,
                        range => 8, # leash range 14
+                       dps => [26.7, undef, undef, 42.6],
+                       cooldown => 0.5,
                },
        ],
        speed => 1.875,
@@ -903,7 +931,7 @@ use strict;
        special => [
                {
                        alt => 'Interceptor',
-                       unit => 0,
+                       pop => 0,
                        min => 25,
                        gas => 0,
                        build => 8,
@@ -920,10 +948,9 @@ use strict;
                        attack => [
                                {
                                        anti => 3,
-                                       damage => [5 .. 8],
-#                                      dps => 26.7 (+5.3),
-                                       dps => [3.3, 4.0, 4.7, 5.4],
-#                                      cooldown => 0.5 (0.125/ 0.25),
+                                       name => 'Interceptor Beams',
+                                       damage => 5,
+                                       upgrade => 1,
                                        cooldown => 3.0,
                                        count => 2,
                                        range => 2,
@@ -940,6 +967,11 @@ use strict;
                        gas => 150,
                        build => 80,
                        desc => 'increases Interceptor launch speed from 2/s to 4-8/s',
+                       attack => [
+                               {
+                                       cooldown => -0.375, # -0.25
+                               },
+                       ],
                },
        ],
 },
@@ -949,8 +981,8 @@ use strict;
 {
        race => 'terran',
        cat => 'base',
-       name => 'SCV',
-       unit => 1,
+       name => 'SCV', # T-280 Space Construction Vehicle
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -966,8 +998,8 @@ use strict;
        attack => [
                {
                        anti => 1,
+                       name => 'Fusion cutter',
                        damage => 5,
-                       dps => 3.3,
                        cooldown => 1.5,
                        range => 0,
                },
@@ -980,7 +1012,8 @@ use strict;
        race => 'terran',
        cat => 'base',
        name => 'Mule',
-       unit => 0,
+       pop => 0,
+       cargo => 0,
        min => 0,
        build => 0,
        size => 0.75,
@@ -1013,8 +1046,8 @@ use strict;
        attack => [
                {
                        anti => 2,
+                       name => 'Longbolt missiles',
                        damage => 12,
-                       dps => 27.9,
                        cooldown => 0.8608,
                        count => 2,
                        type => 'projectile',
@@ -1051,7 +1084,7 @@ use strict;
        cat => 'base',
        name => 'Planetary Fortress',
        base => ['Command Center'],
-       unit => -11,
+       pop => -11,
        min => 150,
        gas => 150,
        build => 50,
@@ -1067,8 +1100,8 @@ use strict;
        attack => [
                {
                        anti => 1,
+                       name => 'Ibiks cannon',
                        damage => 40,
-                       dps => 20,
                        splash => 1,
                        cooldown => 2,
                        range => 6,
@@ -1109,7 +1142,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Marine',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 25,
@@ -1125,8 +1158,8 @@ use strict;
                {
                        anti => 3,
                        name => 'C-14 rifle',
-                       damage => [6 .. 9],
-                       dps => [7, 8.2, 9.4, 10.6],
+                       damage => 6,
+                       upgrade => 1,
                        cooldown => 0.8608,
                        range => 5,
                },
@@ -1153,8 +1186,8 @@ use strict;
                        attack => [
                                {
                                        anti => 3,
-                                       damage => [6 .. 9],
-                                       dps => [10.5, 12.2, 13.9, 15.6],
+                                       damage => 6,
+                                       upgrade => 1,
                                        cooldown => 0.5739,
                                        range => 5,
                                },
@@ -1169,7 +1202,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Marauder',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 25,
        build => 30,
@@ -1184,11 +1217,13 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [10 .. 13],
+                       name => 'Punisher grenades',
+                       damage => 10,
+                       upgrade => 1,
                        bonus => {
-                               armored => [10 .. 13],
+                               armored => 10,
+                               -armored => 1,
                        },
-                       dps => [6.7, 7.4, 8.1, 8.8],
                        type => 'projectile',
                        cooldown => 1.5,
                        range => 6,
@@ -1206,11 +1241,12 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       damage => [10 .. 13],
+                                       damage => 10,
+                                       upgrade => 1,
                                        bonus => {
-                                               armored => [10 .. 13],
+                                               armored => 10,
+                                               -armored => 1,
                                        },
-                                       dps => [10 .. 13],
                                        type => 'projectile',
                                        cooldown => 1.0,
                                        range => 6,
@@ -1238,7 +1274,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Reaper',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 50,
        build => 40,
@@ -1254,8 +1290,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [4 .. 7],
-                       dps => [7.3, 9.1, 10.9, 12.7],
+                       name => 'P-45 Reaper pistol',
+                       damage => 4,
+                       upgrade => 1,
                        cooldown => 1.1,
                        count => 2,
                        range => 4.5,
@@ -1277,7 +1314,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Ghost',
-       unit => 2,
+       pop => 2,
        min => 200,
        gas => 100,
        build => 40,
@@ -1292,18 +1329,20 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [10 .. 13],
+                       name => 'C-10 rifle',
+                       damage => 10,
+                       upgrade => 1,
                        bonus => {
-                               light => [10 .. 13],
+                               light => 10,
+                               -light => 1,
                        },
-                       dps => [6.7, 7.4, 8.1, 8.8],
                        cooldown => 1.5,
                        range => 6,
                },
        ],
        speed => 2.25,
        sight => 11,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Sniper Round',
@@ -1344,7 +1383,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Hellion',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 30,
@@ -1359,11 +1398,13 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [8 .. 11],
+                       name => 'Infernal flamethrower',
+                       damage => 8,
+                       upgrade => 1,
                        bonus => {
-                               light => [6 .. 9],
+                               light => 6,
+                               -light => 1,
                        },
-                       dps => [3.2, 3.6, 4.0, 4.4],
                        splash => 'line',
                        cooldown => 2.5,
                        range => 5,
@@ -1387,9 +1428,11 @@ use strict;
                        build => 110,
                        attack => [
                                {
-                                       damage => [6 .. 9],
+                                       damage => 6,
+                                       upgrade => 1,
                                        bonus => {
-                                               light => [5, 5, 5, 5], # total [11 .. 14]
+                                               light => 5,
+                                               -light => 0,
                                        },
                                },
                        ],
@@ -1401,7 +1444,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Hellbat',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 30,
@@ -1417,11 +1460,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [18, 20, 22, 24],
-                       bonus => {
-                               light => [0 .. 3], # ?
-                       },
-                       dps => [9 .. 12],
+                       name => 'Napalm Spray',
+                       damage => 18,
+                       upgrade => 2,
                        splash => 1,
                        cooldown => 2,
                        range => 2,
@@ -1446,7 +1487,8 @@ use strict;
                        attack => [
                                {
                                        bonus => {
-                                               light => [12, 12, 12, 12],
+                                               light => 12,
+                                               -light => 1,
                                        },
                                },
                        ],
@@ -1458,7 +1500,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Widow Mine',
-       unit => 2,
+       pop => 2,
        min => 75,
        gas => 25,
        build => 40,
@@ -1473,9 +1515,10 @@ use strict;
        attack => [
                {
                        anti => 3,
+                       name => 'Sentinel Missiles',
                        damage => 125,
                        bonus => {
-                               shields => 35,
+                               shields => 40,
                        },
                        splash => 1,
                        cooldown => 40,
@@ -1500,7 +1543,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Siege Tank',
-       unit => 3,
+       pop => 3,
        min => 150,
        gas => 125,
        build => 45,
@@ -1515,11 +1558,13 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [15, 17, 19, 21],
+                       name => '90 mm twin cannon',
+                       damage => 15,
+                       upgrade => 2,
                        bonus => {
-                               armored => [10 .. 13],
+                               armored => 10,
+                               -armored => 1,
                        },
-                       dps => [14.4, 16.3, 18.2, 20.1],
                        cooldown => 1.04,
                        range => 7,
                },
@@ -1533,11 +1578,13 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       damage => [35, 38, 41, 44],
+                                       name => '120 mm shock cannon',
+                                       damage => 35,
+                                       upgrade => 3,
                                        bonus => {
-                                               armored => [15, 17, 19, 21],
+                                               armored => 15,
+                                               -armored => 2,
                                        },
-                                       dps => [11.7, 12.7, 13.7, 14.7],
                                        splash => 1,
                                        cooldown => 3,
                                        range => 13,
@@ -1555,7 +1602,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Thor',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 60,
@@ -1571,20 +1618,23 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [30, 33, 36, 39],
-                       dps => [46.9, 51.6, 56.3, 61.0],
+                       name => "Thor's Hammer",
+                       damage => 30,
+                       upgrade => 3,
                        cooldown => 1.28,
                        range => 7,
                        count => 2,
                },
                {
                        anti => 2,
-                       name => 'Explosive Payload',
-                       damage => [6 .. 9],
+                       name => 'Javelin Missiles',
+#                      name => 'Explosive Payload',
+                       damage => 6,
+                       upgrade => 1,
                        bonus => {
-                               'light air' => [6 .. 9],
+                               light => 6,
+                               -light => 1,
                        },
-                       dps => [8, 9.3, 10.6, 11.9],
                        splash => 1,
                        type => 'projectile',
                        cooldown => 3,
@@ -1593,9 +1643,10 @@ use strict;
                },
                {
                        anti => 2,
-                       name => 'High Impact Payload',
-                       damage => [24, 26, 28, 30],
-                       dps => [12 .. 15],
+                       name => 'Punisher Cannons',
+#                      name => 'High Impact Payload',
+                       damage => 24,
+                       upgrade => 2,
                        cooldown => 2,
                        range => 10,
                },
@@ -1608,7 +1659,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Viking',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 75,
        build => 42,
@@ -1624,11 +1675,12 @@ use strict;
        attack => [
                {
                        anti => 2,
-                       damage => [10 .. 13],
+                       name => 'Lanzer torpedoes',
+                       damage => 10,
+                       upgrade => 1,
                        bonus => {
                                armored => 4,
                        },
-                       dps => [10 .. 13],
                        type => 'projectile',
                        cooldown => 2,
                        count => 2,
@@ -1645,8 +1697,9 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       damage => [12 .. 15],
-                                       dps => [12 .. 15],
+                                       name => 'Twin gatling cannon',
+                                       damage => 12,
+                                       upgrade => 1,
                                        cooldown => 1,
                                        range => 6,
                                },
@@ -1661,7 +1714,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Medivac',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 42,
@@ -1675,7 +1728,7 @@ use strict;
                flying => 1,
        },
        speed => 2.5,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Heal',
@@ -1700,7 +1753,7 @@ use strict;
                        min => 100,
                        gas => 100,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -1708,8 +1761,8 @@ use strict;
 {
        race => 'terran',
        cat => 'starport',
-       name => 'Banshee',
-       unit => 3,
+       name => 'Banshee', # AH/G-24
+       pop => 3,
        min => 150,
        gas => 100,
        build => 60,
@@ -1725,8 +1778,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [12 .. 15],
-                       dps => [19.2, 20.8, 22.4, 24.0],
+                       name => 'Backlash rockets',
+                       damage => 12,
+                       upgrade => 1,
                        type => 'projectile',
                        cooldown => 1.25,
                        count => 2,
@@ -1735,7 +1789,7 @@ use strict;
        ],
        speed => 2.75,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Cloak',
@@ -1754,7 +1808,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Raven',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 200,
        build => 60,
@@ -1770,7 +1824,7 @@ use strict;
        speed => 2.25,
        sight => 11,
        detect => 1,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        alt => 'Auto-Turret',
@@ -1788,8 +1842,8 @@ use strict;
                        attack => [
                                {
                                        anti => 3,
+                                       name => '12 mm gauss cannon',
                                        damage => 8,
-                                       dps => 10,
                                        cooldown => 0.8,
                                        range => 6,
                                },
@@ -1834,6 +1888,7 @@ use strict;
                        cooldown => 0,
                        attack => [
                                {
+                                       name => 'Point defense laser',
                                        range => 8,
                                },
                        ],
@@ -1895,7 +1950,7 @@ use strict;
                        min => 150,
                        gas => 150,
                        build => 110,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -1904,7 +1959,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Battlecruiser',
-       unit => 6,
+       pop => 6,
        min => 400,
        gas => 300,
        build => 90,
@@ -1921,16 +1976,18 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [8 .. 11],
-                       dps => [35.6, 40.0, 44.4, 48.8],
+                       name => 'ATS laser batteries',
+                       damage => 8,
+                       upgrade => 1,
                        cooldown => 0.225,
                        type => 'projectile',
                        range => 6,
                },
                {
                        anti => 2,
-                       damage => [6 .. 9],
-                       dps => [26.7, 31.1, 35.5, 39.9],
+                       name => 'ATS laser batteries',
+                       damage => 6,
+                       upgrade => 1,
                        cooldown => 0.225,
                        type => 'projectile',
                        range => 6,
@@ -1938,7 +1995,7 @@ use strict;
        ],
        speed => 1.875,
        sight => 12,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Yamato Cannon',
@@ -1963,7 +2020,7 @@ use strict;
                        min => 150,
                        gas => 150,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -1974,7 +2031,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Drone',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -1989,8 +2046,8 @@ use strict;
        attack => [
                {
                        anti => 1,
+                       name => 'Claws',
                        damage => 5,
-                       dps => 3.3,
                        cooldown => 1.5,
                        range => 0,
                },
@@ -2004,7 +2061,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Queen',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 0,
        build => 50,
@@ -2019,8 +2076,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [4 .. 7],
-                       dps => [8, 10, 12, 14],
+                       name => 'Claws',
+                       damage => 4,
+                       upgrade => 1,
                        cooldown => 1.0,
                        type => 'projectile', # except if range < 3
                        range => 5,
@@ -2028,8 +2086,9 @@ use strict;
                },
                {
                        anti => 2,
-                       damage => [9 .. 12],
-                       dps => [9 .. 12],
+                       name => 'Acid Spines',
+                       damage => 9,
+                       upgrade => 1,
                        cooldown => 1.0,
                        type => 'projectile', # except if range < 3
                        range => 7,
@@ -2038,7 +2097,7 @@ use strict;
        speed => 0.9375,
        creep => 2.7,
        sight => 9,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Spawn Larva',
@@ -2072,7 +2131,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Overlord',
-       unit => -9,
+       pop => -9,
        min => 100,
        gas => 0,
        build => 25,
@@ -2122,7 +2181,7 @@ use strict;
        cat => 'base',
        name => 'Overseer',
        base => ['Overlord'],
-       unit => -9,
+       pop => -9,
        min => 100+50,
        gas => 50,
        build => 17,
@@ -2139,7 +2198,7 @@ use strict;
        creep => 0,
        sight => 11,
        detect => 1,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Spawn Changeling',
@@ -2174,7 +2233,7 @@ use strict;
                        min => 100,
                        gas => 100,
                        build => 60,
-                       speed => 0.875,
+                       speed => 3.375 - 1.875,
                },
        ],
 },
@@ -2183,7 +2242,7 @@ use strict;
        race => 'zerg',
        cat => 'creep',
        name => 'Larva',
-       unit => 0,
+       pop => 0,
        build => 15,
        size => 0.25,
        cargo => 0,
@@ -2230,11 +2289,11 @@ use strict;
        attack => [
                {
                        anti => 1,
+                       name => 'Impaler Tentacle',
                        damage => 25,
                        bonus => {
                                armored => 5,
                        },
-                       dps => 13.5,
                        cooldown => 1.85,
                        range => 7,
                },
@@ -2263,11 +2322,11 @@ use strict;
        attack => [
                {
                        anti => 2,
+                       name => 'Seeker Spores',
                        damage => 15,
                        bonus => {
                                organic => 30,
                        },
-                       dps => 17.4,
                        type => 'projectile',
                        cooldown => 0.8608,
                        range => 7,
@@ -2283,7 +2342,7 @@ use strict;
        race => 'zerg',
        cat => 'hatchery',
        name => 'Zergling',
-       unit => 0.5,
+       pop => 0.5,
        min => 25,
        gas => 0,
        build => 24,
@@ -2298,8 +2357,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [5 .. 8],
-                       dps => [7.2, 8.6, 10.0, 11.4],
+                       name => 'Claws',
+                       damage => 5,
+                       upgrade => 1,
                        cooldown => 0.696,
                },
        ],
@@ -2316,7 +2376,6 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       dps => [8.5, 10.2, 11.9, 13.6],
                                        cooldown => -0.109,
                                },
                        ],
@@ -2337,7 +2396,7 @@ use strict;
        cat => 'hatchery',
        name => 'Baneling',
        base => ['Zergling'],
-       unit => 0.5,
+       pop => 0.5,
        min => 25+25,
        gas => 25,
        build => 20,
@@ -2351,10 +2410,14 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [20, 22, 24, 26],
+                       name => 'Volatile Burst',
+                       damage => 20,
+                       upgrade => 2,
                        bonus => {
-                               light => [15, 17, 19, 21],
-                               structure => [60, 63, 66, 69],
+                               light => 15,
+                               -light => 2,
+                               structure => 60,
+                               -structure => 3,
                        },
                        splash => 1,
                        range => 0,
@@ -2379,7 +2442,7 @@ use strict;
        race => 'zerg',
        cat => 'hatchery',
        name => 'Roach',
-       unit => 2,
+       pop => 2,
        min => 75,
        gas => 25,
        build => 27,
@@ -2394,8 +2457,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [16, 18, 20, 22],
-                       dps => [8 .. 11],
+                       name => 'Acid Saliva', # Claws melee
+                       damage => 16,
+                       upgrade => 2,
                        cooldown => 2.0,
                },
        ],
@@ -2437,7 +2501,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Hydralisk',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 50,
        build => 33,
@@ -2452,9 +2516,10 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [12 .. 15],
-                       dps => [16, 17.3, 18.6, 19.9],
-                       type => 'projectile', # except meelee
+                       name => 'Needle spines', # Scythe melee
+                       damage => 12,
+                       upgrade => 1,
+                       type => 'projectile', # except melee
                        cooldown => 0.75,
                        range => 5,
                },
@@ -2489,7 +2554,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Infestor',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 150,
        build => 50,
@@ -2505,7 +2570,7 @@ use strict;
        speed => 2.25,
        creep => 1.3,
        sight => 10,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Neural Parasite',
@@ -2545,7 +2610,6 @@ use strict;
                                {
                                        anti => 3,
                                        damage => 8,
-                                       dps => 9.3,
                                        cooldown => 0.8608,
                                        range => 5,
                                },
@@ -2561,7 +2625,7 @@ use strict;
                        min => 150,
                        gas => 150,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -2590,7 +2654,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Swarm Host',
-       unit => 4,
+       pop => 4,
        min => 100,
        gas => 200,
        build => 40,
@@ -2605,9 +2669,12 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       dps => [27.9, 30.2, 32.5, 34.8],
+                       dps => [16.7, undef, undef, 20.8], # 20/.6 * 2 /60*25
                        type => 'projectile',
-                       cooldown => 0.86,
+                       count => 2,
+                       cooldown => 60,
+                       duration => 25,
+                       range => 3*25, # locust speed * duration = theoretical walk limit
                },
        ],
        speed => 2.95,
@@ -2628,8 +2695,9 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       damage => [12 .. 15],
-                                       dps => [14.0, 15.2, 16.4, 17.6],
+                                       name => 'Acid Spit',
+                                       damage => 12,
+                                       upgrade => 1,
                                        type => 'projectile',
                                        cooldown => 0.6,
                                        range => 3,
@@ -2660,7 +2728,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Mutalisk',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 33,
@@ -2676,8 +2744,9 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       damage => [9 .. 12],
-                       dps => [5.9, 6.6, 7.3, 8.0],
+                       name => 'Glaive Wurm',
+                       damage => 9,
+                       upgrade => 1,
                        splash => 'bounce',
                        psionic => 1,
                        cooldown => 1.5246,
@@ -2699,7 +2768,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Corruptor',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 100,
        build => 40,
@@ -2715,11 +2784,13 @@ use strict;
        attack => [
                {
                        anti => 2,
-                       damage => [14 .. 17],
+                       name => 'Parasite Spores',
+                       damage => 14,
+                       upgrade => 1,
                        bonus => {
-                               massive => [6 .. 9],
+                               massive => 6,
+                               -massive => 1,
                        },
-                       dps => [7.4, 7.9, 8.4, 8.9],
                        type => 'projectile',
                        cooldown => 1.9,
                        range => 6,
@@ -2743,7 +2814,7 @@ use strict;
        cat => 'hive',
        name => 'Brood Lord',
        base => ['Corruptor'],
-       unit => 4,
+       pop => 4,
        min => 150+150,
        gas => 100+150,
        build => 34,
@@ -2760,8 +2831,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [20, 22, 24, 26],
-                       dps => [8.0, 8.8, 9.6, 10.4],
+                       name => 'Broodling Strike',
+                       damage => 20,
+                       upgrade => 2,
                        cooldown => 2.5,
                        range => 9.5,
                },
@@ -2775,7 +2847,7 @@ use strict;
                        desc => 'Broodlings are spawned upon each attack',
                        duration => -1,
                        alt => 'Broodling',
-                       unit => 0,
+                       pop => 0,
 #                      build => 1,
                        size => 0.75,
                        cargo => 0,
@@ -2788,8 +2860,9 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       damage => [4 .. 7],
-                                       dps => [6.2, 7.7, 9.2, 10.7],
+                                       name => 'Claws',
+                                       damage => 4,
+                                       upgrade => 1,
                                        cooldown => 0.6455,
                                        range => 0,
                                },
@@ -2811,7 +2884,7 @@ use strict;
        race => 'zerg',
        cat => 'hive',
        name => 'Viper',
-       unit => 3,
+       pop => 3,
        min => 100,
        gas => 200,
        build => 40,
@@ -2827,7 +2900,7 @@ use strict;
        },
        speed => 2.9531,
        sight => 11,
-       energy => 200,
+       capacity => 200,
        special => [
                {
                        name => 'Blinding Cloud',
@@ -2850,6 +2923,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,
@@ -2861,7 +2935,7 @@ use strict;
        race => 'zerg',
        cat => 'hive',
        name => 'Ultralisk',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 55,
@@ -2877,8 +2951,9 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       damage => [35, 38, 41, 44],
-                       dps => [40.7, 44.2, 47.7, 51.2],
+                       name => 'Kaiser Blades',
+                       damage => 35,
+                       upgrade => 3,
                        splash => 1,
                        cooldown => 0.861,
                        range => 1,