browser: drop unused agent version metadata
[sheet.git] / sc-units-hots.inc.pl
index 5d558d101e92bba77ffc8c738408a34b225d79bf..16dccef5c71d65ee2a3bdd2072cfcbbeb4a18284 100644 (file)
@@ -1,8 +1,10 @@
 use utf8;
 use strict;
 
+my $V = v5.0.2; # some patch data for invisible attributes
+
 [
-'patch 2.1.10',
+'patch 2.1.9+',
 # http://wiki.teamliquid.net/starcraft2/Unit_Statistics
 # http://wiki.teamliquid.net/starcraft2/User:Roemy/Unit_Statistics_(detailed)
 # http://starcraft.wikia.com/wiki/List_of_StarCraft_II_units
@@ -11,7 +13,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Probe',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -27,7 +29,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Particle beam',
+                       name => 'Particle Beam',
                        damage => 5,
                        cooldown => 1.5,
                        range => 0,
@@ -55,7 +57,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Phase disruptor',
+                       name => 'Phase Disruptor',
                        damage => 20,
                        cooldown => 1.25,
                        type => 'projectile',
@@ -71,7 +73,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Mothership Core',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 30,
@@ -99,7 +101,8 @@ use strict;
        ],
        speed => 1.875,
        sight => 9,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Photon Overcharge',
@@ -132,7 +135,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Mothership',
-       unit => 8,
+       pop => 8,
        min => 300,
        gas => 300,
        build => 100,
@@ -146,11 +149,12 @@ use strict;
                psionic => 1,
                massive => 1,
                flying => 1,
+               heroic => 1,
        },
        attack => [
                {
                        anti => 3,
-                       name => 'Purifier beams',
+                       name => 'Purifier Beams',
                        damage => 6,
                        upgrade => 1,
                        cooldown => 2.21,
@@ -160,7 +164,8 @@ use strict;
        ],
        speed => 1.4062,
        sight => 14,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Cloaking Field',
@@ -193,6 +198,7 @@ use strict;
        race => 'protoss',
        cat => 'base',
        name => 'Nexus',
+       pop => -10,
        min => 400,
        gas => 0,
        build => 100,
@@ -208,7 +214,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Photon overcharge',
+                       name => 'Photon Overcharge',
                        damage => 20,
                        cooldown => 1.25,
                        type => 'projectile',
@@ -217,7 +223,8 @@ use strict;
        ],
        speed => 0,
        sight => 11,
-       energy => 100,
+       energy => 0,
+       capacity => 100,
        special => [
                {
                        name => 'Chrono Boost',
@@ -233,7 +240,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Zealot',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 38,
@@ -250,7 +257,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Psi blades',
+                       name => 'Psi Blades',
                        damage => 8,
                        upgrade => 1,
                        cooldown => 1.2,
@@ -268,19 +275,24 @@ use strict;
                        min => 200,
                        gas => 200,
                        build => 140,
-                       speed => .5,
                        range => 4,
                        duration => 3.5,
                        cooldown => 10,
                },
        ],
+       upgrade => [
+               {
+                       name => 'Charge',
+                       speed => .5,
+               },
+       ],
 },
 
 {
        race => 'protoss',
        cat => 'gateway',
        name => 'Sentry',
-       unit => 2,
+       pop => 2,
        min => 50,
        gas => 100,
        build => 37,
@@ -298,7 +310,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Disruption beam',
+                       name => 'Disruption Beam',
                        damage => 6,
                        upgrade => 1,
                        cooldown => 1.0,
@@ -307,7 +319,8 @@ use strict;
        ],
        speed => 2.25,
        sight => 10,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Force Field',
@@ -341,7 +354,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Stalker',
-       unit => 2,
+       pop => 2,
        min => 125,
        gas => 50,
        build => 42,
@@ -358,7 +371,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Particle disruptors',
+                       name => 'Particle Disruptors',
                        damage => 10,
                        upgrade => 1,
                        bonus => {
@@ -389,7 +402,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'High Templar',
-       unit => 2,
+       pop => 2,
        min => 50,
        gas => 150,
        build => 55,
@@ -406,7 +419,8 @@ use strict;
        },
        speed => 1.875,
        sight => 10,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Feedback',
@@ -435,7 +449,7 @@ use strict;
        race => 'protoss',
        cat => 'gateway',
        name => 'Dark Templar',
-       unit => 2,
+       pop => 2,
        min => 125,
        gas => 125,
        build => 55,
@@ -453,7 +467,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Warp blade',
+                       name => 'Warp Blade',
                        damage => 45,
                        upgrade => 5,
                        cooldown => 1.694,
@@ -478,7 +492,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,
@@ -493,7 +507,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Psionic shockwave',
+                       name => 'Psionic Shockwave',
                        damage => 25,
                        upgrade => 3,
                        bonus => {
@@ -509,11 +523,90 @@ use strict;
        sight => 9,
 },
 
+{
+       race => 'protoss',
+       cat => 'robotic',
+       name => 'Observer',
+       pop => 1,
+       min => 25,
+       gas => 75,
+       build => 30,
+       size => 1,
+       cargo => 0,
+       armor => 0,
+       hp => 40,
+       shield => 20,
+       attr => {
+               light => 1,
+               mech => 1,
+               flying => 1,
+       },
+       speed => 1.875,
+       sight => 11,
+       detect => 1,
+       special => [
+               {
+                       name => 'Permanent Cloak',
+                       abbr => 'cl',
+                       desc => 'cloaked at all times',
+                       duration => -1,
+               },
+       ],
+       upgrade => [
+               {
+                       name => 'Gravitic Boosters',
+                       min => 100,
+                       gas => 100,
+                       build => 80,
+                       speed => 0.9375,
+               },
+       ],
+},
+
+{
+       race => 'protoss',
+       cat => 'robotic',
+       name => 'Warp Prism',
+       pop => 2,
+       min => 200,
+       gas => 0,
+       build => 50,
+       size => 1.75,
+       cargo => -8,
+       armor => 0,
+       hp => 100,
+       shield => 100,
+       attr => {
+               armored => 1,
+               mech => 1,
+               psionic => 1,
+               flying => 1,
+       },
+       speed => 2.9531,
+       sight => 10,
+       special => [
+               {
+                       name => 'Phasing Mode',
+                       abbr => 'pm',
+                       desc => 'basically transforms into a hovering pylon',
+               },
+       ],
+       upgrade => [
+               {
+                       name => 'Gravitic Drive',
+                       min => 100,
+                       gas => 100,
+                       build => 80,
+                       speed => 0.422,
+               },
+       ],
+},
+
 {
        race => 'protoss',
        cat => 'robotic',
        name => 'Immortal',
-       unit => 4,
+       pop => 4,
        min => 250,
        gas => 100,
        build => 55,
@@ -529,7 +622,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Phase disruptors',
+                       name => 'Phase Disruptors',
                        damage => 20,
                        upgrade => 2,
                        bonus => {
@@ -556,7 +649,7 @@ use strict;
        race => 'protoss',
        cat => 'robotic',
        name => 'Colossus',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 75,
@@ -600,90 +693,11 @@ use strict;
        ],
 },
 
-{
-       race => 'protoss',
-       cat => 'robotic',
-       name => 'Observer',
-       unit => 1,
-       min => 25,
-       gas => 75,
-       build => 30,
-       size => 1,
-       cargo => 0,
-       armor => 0,
-       hp => 40,
-       shield => 20,
-       attr => {
-               light => 1,
-               mech => 1,
-               flying => 1,
-       },
-       speed => 1.875,
-       sight => 11,
-       detect => 1,
-       special => [
-               {
-                       name => 'Permanent Cloak',
-                       abbr => 'cl',
-                       desc => 'cloaked at all times',
-                       duration => -1,
-               },
-       ],
-       upgrade => [
-               {
-                       name => 'Gravitic Boosters',
-                       min => 100,
-                       gas => 100,
-                       build => 80,
-                       speed => 0.9375,
-               },
-       ],
-},
-
-{
-       race => 'protoss',
-       cat => 'robotic',
-       name => 'Warp Prism',
-       unit => 2,
-       min => 200,
-       gas => 0,
-       build => 50,
-       size => 1.75,
-       cargo => -8,
-       armor => 0,
-       hp => 100,
-       shield => 100,
-       attr => {
-               armored => 1,
-               mech => 1,
-               psionic => 1,
-               flying => 1,
-       },
-       speed => 2.9531,
-       sight => 10,
-       special => [
-               {
-                       name => 'Phasing Mode',
-                       abbr => 'pm',
-                       desc => 'basically transforms into a hovering pylon',
-               },
-       ],
-       upgrade => [
-               {
-                       name => 'Gravitic Drive',
-                       min => 100,
-                       gas => 100,
-                       build => 80,
-                       speed => 0.422,
-               },
-       ],
-},
-
 {
        race => 'protoss',
        cat => 'stargate',
        name => 'Phoenix',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 100,
        build => 35,
@@ -714,7 +728,8 @@ use strict;
        ],
        speed => 4.25,
        sight => 10,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Graviton Beam',
@@ -744,7 +759,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Void Ray',
-       unit => 4,
+       pop => 4,
        min => 250,
        gas => 150,
        build => 60,
@@ -761,7 +776,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Prismatic beam',
+                       name => 'Prismatic Beam',
                        damage => 6,
                        upgrade => 1,
                        bonus => {
@@ -796,7 +811,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Oracle',
-       unit => 3,
+       pop => 3,
        min => 150,
        gas => 150,
        build => 50,
@@ -828,7 +843,8 @@ use strict;
        ],
        speed => 4,
        sight => 10,
-       energy => 200,
+       energy => 50, #XXX
+       capacity => 200,
        special => [
                {
                        name => 'Revelation',
@@ -855,7 +871,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Tempest',
-       unit => 4,
+       pop => 4,
        min => 300,
        gas => 200,
        build => 60,
@@ -902,7 +918,7 @@ use strict;
        race => 'protoss',
        cat => 'stargate',
        name => 'Carrier',
-       unit => 6,
+       pop => 6,
        min => 350,
        gas => 250,
        build => 120,
@@ -931,7 +947,7 @@ use strict;
        special => [
                {
                        alt => 'Interceptor',
-                       unit => 0,
+                       pop => 0,
                        min => 25,
                        gas => 0,
                        build => 8,
@@ -982,7 +998,7 @@ use strict;
        race => 'terran',
        cat => 'base',
        name => 'SCV', # T-280 Space Construction Vehicle
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -998,7 +1014,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Fusion cutter',
+                       name => 'Fusion Cutter',
                        damage => 5,
                        cooldown => 1.5,
                        range => 0,
@@ -1012,7 +1028,8 @@ use strict;
        race => 'terran',
        cat => 'base',
        name => 'Mule',
-       unit => 0,
+       pop => 0,
+       cargo => 0,
        min => 0,
        build => 0,
        size => 0.75,
@@ -1045,7 +1062,7 @@ use strict;
        attack => [
                {
                        anti => 2,
-                       name => 'Longbolt missiles',
+                       name => 'Longbolt Missiles',
                        damage => 12,
                        cooldown => 0.8608,
                        count => 2,
@@ -1083,7 +1100,7 @@ use strict;
        cat => 'base',
        name => 'Planetary Fortress',
        base => ['Command Center'],
-       unit => -11,
+       pop => -11,
        min => 150,
        gas => 150,
        build => 50,
@@ -1099,7 +1116,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Ibiks cannon',
+                       name => 'Ibiks Cannon',
                        damage => 40,
                        splash => 1,
                        cooldown => 2,
@@ -1141,7 +1158,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Marine',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 25,
@@ -1156,7 +1173,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'C-14 rifle',
+                       name => 'C-14 Rifle',
                        damage => 6,
                        upgrade => 1,
                        cooldown => 0.8608,
@@ -1201,7 +1218,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Marauder',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 25,
        build => 30,
@@ -1216,7 +1233,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Punisher grenades',
+                       name => 'Punisher Grenades',
                        damage => 10,
                        upgrade => 1,
                        bonus => {
@@ -1253,8 +1270,6 @@ use strict;
                        ],
                        duration => 15,
                },
-       ],
-       upgrade => [
                {
                        name => 'Concussive Shells',
                        abbr => 'cs',
@@ -1273,7 +1288,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Reaper',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 50,
        build => 40,
@@ -1289,7 +1304,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'P-45 Reaper pistol',
+                       name => 'P-45 Reaper Pistol',
                        damage => 4,
                        upgrade => 1,
                        cooldown => 1.1,
@@ -1313,7 +1328,7 @@ use strict;
        race => 'terran',
        cat => 'barracks',
        name => 'Ghost',
-       unit => 2,
+       pop => 2,
        min => 200,
        gas => 100,
        build => 40,
@@ -1328,7 +1343,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'C-10 rifle',
+                       name => 'C-10 Rifle',
                        damage => 10,
                        upgrade => 1,
                        bonus => {
@@ -1341,7 +1356,8 @@ use strict;
        ],
        speed => 2.25,
        sight => 11,
-       energy => 200,
+       energy => 75,
+       capacity => 200,
        special => [
                {
                        name => 'Sniper Round',
@@ -1371,8 +1387,9 @@ use strict;
                {
                        name => 'Nuclear Strike',
                        abbr => 'ns',
-                       desc => 'guides a nuclear missile which will do 300 damage plus 200 to buildings',
+                       desc => 'guides a missile which will do 300 damage plus 200 to buildings',
                        duration => 20,
+                       cooldown => 20,
                        range => 12,
                },
        ],
@@ -1382,7 +1399,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Hellion',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 30,
@@ -1397,7 +1414,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Infernal flamethrower',
+                       name => 'Infernal Flamethrower',
                        damage => 8,
                        upgrade => 1,
                        bonus => {
@@ -1422,8 +1439,8 @@ use strict;
        upgrade => [
                {
                        name => 'Infernal Pre-Igniter',
-                       min => 150,
-                       gas => 150,
+                       min => $V lt v4.11.0 ? 150 : 100,
+                       gas => $V lt v4.11.0 ? 150 : 100,
                        build => 110,
                        attack => [
                                {
@@ -1443,7 +1460,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Hellbat',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 0,
        build => 30,
@@ -1462,6 +1479,9 @@ use strict;
                        name => 'Napalm Spray',
                        damage => 18,
                        upgrade => 2,
+                       bonus => {
+                               light => 0, # visibility for upgrade
+                       },
                        splash => 1,
                        cooldown => 2,
                        range => 2,
@@ -1474,14 +1494,14 @@ use strict;
                        name => 'Hellion Mode',
                        abbr => 'hm',
                        desc => 'transform to Hellion',
-                       duration => 4,
+                       transform => 4,
                },
        ],
        upgrade => [
                {
                        name => 'Infernal Pre-Igniter',
-                       min => 150,
-                       gas => 150,
+                       min => $V lt v4.11.0 ? 150 : 100,
+                       gas => $V lt v4.11.0 ? 150 : 100,
                        build => 110,
                        attack => [
                                {
@@ -1499,7 +1519,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Widow Mine',
-       unit => 2,
+       pop => 2,
        min => 75,
        gas => 25,
        build => 40,
@@ -1542,7 +1562,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Siege Tank',
-       unit => 3,
+       pop => 3,
        min => 150,
        gas => 125,
        build => 45,
@@ -1557,7 +1577,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => '90 mm twin cannon',
+                       name => '90 mm Twin Cannon',
                        damage => 15,
                        upgrade => 2,
                        bonus => {
@@ -1577,7 +1597,7 @@ use strict;
                        attack => [
                                {
                                        anti => 1,
-                                       name => '120 mm shock cannon',
+                                       name => '120 mm Shock Cannon',
                                        damage => 35,
                                        upgrade => 3,
                                        bonus => {
@@ -1590,7 +1610,7 @@ use strict;
                                },
                        ],
                        speed => 0,
-                       duration => 4,
+                       transform => 4,
                },
        ],
        speed => 2.25,
@@ -1601,7 +1621,7 @@ use strict;
        race => 'terran',
        cat => 'factory',
        name => 'Thor',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 60,
@@ -1646,6 +1666,7 @@ use strict;
 #                      name => 'High Impact Payload',
                        damage => 24,
                        upgrade => 2,
+                       type => 'projectile',
                        cooldown => 2,
                        range => 10,
                },
@@ -1658,7 +1679,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Viking',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 75,
        build => 42,
@@ -1674,7 +1695,7 @@ use strict;
        attack => [
                {
                        anti => 2,
-                       name => 'Lanzer torpedoes',
+                       name => 'Lanzer Torpedoes',
                        damage => 10,
                        upgrade => 1,
                        bonus => {
@@ -1690,13 +1711,13 @@ use strict;
                {
                        name => 'Assault Mode',
                        abbr => 'am',
-                       build => 3, # transformation time
+                       transform => 3,
                        alt => 'Landed Viking',
                        cargo => 2,
                        attack => [
                                {
                                        anti => 1,
-                                       name => 'Twin gatling cannon',
+                                       name => 'Twin Gatling Cannon',
                                        damage => 12,
                                        upgrade => 1,
                                        cooldown => 1,
@@ -1713,7 +1734,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Medivac',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 42,
@@ -1727,7 +1748,8 @@ use strict;
                flying => 1,
        },
        speed => 2.5,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Heal',
@@ -1752,7 +1774,7 @@ use strict;
                        min => 100,
                        gas => 100,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -1761,7 +1783,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Banshee', # AH/G-24
-       unit => 3,
+       pop => 3,
        min => 150,
        gas => 100,
        build => 60,
@@ -1777,7 +1799,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'Backlash rockets',
+                       name => 'Backlash Rockets',
                        damage => 12,
                        upgrade => 1,
                        type => 'projectile',
@@ -1788,7 +1810,8 @@ use strict;
        ],
        speed => 2.75,
        sight => 10,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Cloak',
@@ -1807,7 +1830,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Raven',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 200,
        build => 60,
@@ -1823,11 +1846,12 @@ use strict;
        speed => 2.25,
        sight => 11,
        detect => 1,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        alt => 'Auto-Turret',
-#                      abbr => 'at',
+                       abbr => 'at',
                        cost => 50,
                        size => 2,
                        cargo => 0,
@@ -1841,7 +1865,7 @@ use strict;
                        attack => [
                                {
                                        anti => 3,
-                                       name => '12 mm gauss cannon',
+                                       name => '12 mm Gauss Cannon',
                                        damage => 8,
                                        cooldown => 0.8,
                                        range => 6,
@@ -1868,7 +1892,15 @@ use strict;
                                        build => 140,
                                        armor => 2,
                                },
+                               {
+                                       name => 'Durable Materials',
+                                       min => 150,
+                                       gas => 150,
+                                       build => 110,
+                                       duration => 60,
+                               },
                        ],
+                       duration => 180,
                },
                {
                        alt => 'Point Defense Drone',
@@ -1887,7 +1919,7 @@ use strict;
                        cooldown => 0,
                        attack => [
                                {
-                                       name => 'Point defense laser',
+                                       name => 'Point Defense Laser',
                                        range => 8,
                                },
                        ],
@@ -1911,6 +1943,13 @@ use strict;
                                        build => 140,
                                        armor => 2,
                                },
+                               {
+                                       name => 'Durable Materials',
+                                       min => 150,
+                                       gas => 150,
+                                       build => 110,
+                                       duration => 10,
+                               },
                        ],
                        duration => 20,
                },
@@ -1930,26 +1969,12 @@ use strict;
                },
        ],
        upgrade => [
-               {
-                       name => 'Durable Materials',
-                       min => 150,
-                       gas => 150,
-                       build => 110,
-#                      special => {
-#                              at => {
-#                                      duration => 240,
-#                              },
-#                              pd => {
-#                                      duration => 30,
-#                              },
-#                      },
-               },
                {
                        name => 'Corvid Reactor',
                        min => 150,
                        gas => 150,
                        build => 110,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -1958,7 +1983,7 @@ use strict;
        race => 'terran',
        cat => 'starport',
        name => 'Battlecruiser',
-       unit => 6,
+       pop => 6,
        min => 400,
        gas => 300,
        build => 90,
@@ -1975,7 +2000,7 @@ use strict;
        attack => [
                {
                        anti => 1,
-                       name => 'ATS laser batteries',
+                       name => 'ATS Laser Batteries',
                        damage => 8,
                        upgrade => 1,
                        cooldown => 0.225,
@@ -1984,7 +2009,7 @@ use strict;
                },
                {
                        anti => 2,
-                       name => 'ATS laser batteries',
+                       name => 'ATA Laser Batteries',
                        damage => 6,
                        upgrade => 1,
                        cooldown => 0.225,
@@ -1994,7 +2019,8 @@ use strict;
        ],
        speed => 1.875,
        sight => 12,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Yamato Cannon',
@@ -2019,7 +2045,7 @@ use strict;
                        min => 150,
                        gas => 150,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -2030,7 +2056,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Drone',
-       unit => 1,
+       pop => 1,
        min => 50,
        gas => 0,
        build => 17,
@@ -2060,7 +2086,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Queen',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 0,
        build => 50,
@@ -2096,7 +2122,8 @@ use strict;
        speed => 0.9375,
        creep => 2.7,
        sight => 9,
-       energy => 200,
+       energy => 25,
+       capacity => 200,
        special => [
                {
                        name => 'Spawn Larva',
@@ -2130,7 +2157,7 @@ use strict;
        race => 'zerg',
        cat => 'base',
        name => 'Overlord',
-       unit => -9,
+       pop => -9,
        min => 100,
        gas => 0,
        build => 25,
@@ -2144,7 +2171,6 @@ use strict;
                flying => 1,
        },
        speed => 0.586,
-       creep => 0,
        sight => 11,
        special => [
                {
@@ -2159,8 +2185,8 @@ use strict;
        upgrade => [
                {
                        name => 'Pneumatized Carapace',
-                       min => 100,
-                       gas => 100,
+                       min => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75,
+                       gas => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75,
                        build => 60,
                        speed => 1.294,
                },
@@ -2180,7 +2206,7 @@ use strict;
        cat => 'base',
        name => 'Overseer',
        base => ['Overlord'],
-       unit => -9,
+       pop => -9,
        min => 100+50,
        gas => 50,
        build => 17,
@@ -2194,10 +2220,10 @@ use strict;
                flying => 1,
        },
        speed => 1.875,
-       creep => 0,
        sight => 11,
        detect => 1,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Spawn Changeling',
@@ -2229,8 +2255,8 @@ use strict;
        upgrade => [
                {
                        name => 'Pneumatized Carapace',
-                       min => 100,
-                       gas => 100,
+                       min => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75,
+                       gas => $V lt v4.10.1 || $V ge v4.11.0 ? 100 : 75,
                        build => 60,
                        speed => 3.375 - 1.875,
                },
@@ -2241,7 +2267,7 @@ use strict;
        race => 'zerg',
        cat => 'creep',
        name => 'Larva',
-       unit => 0,
+       pop => 0,
        build => 15,
        size => 0.25,
        cargo => 0,
@@ -2341,7 +2367,7 @@ use strict;
        race => 'zerg',
        cat => 'hatchery',
        name => 'Zergling',
-       unit => 0.5,
+       pop => 0.5,
        min => 25,
        gas => 0,
        build => 24,
@@ -2395,7 +2421,7 @@ use strict;
        cat => 'hatchery',
        name => 'Baneling',
        base => ['Zergling'],
-       unit => 0.5,
+       pop => 0.5,
        min => 25+25,
        gas => 25,
        build => 20,
@@ -2441,7 +2467,7 @@ use strict;
        race => 'zerg',
        cat => 'hatchery',
        name => 'Roach',
-       unit => 2,
+       pop => 2,
        min => 75,
        gas => 25,
        build => 27,
@@ -2460,6 +2486,7 @@ use strict;
                        damage => 16,
                        upgrade => 2,
                        cooldown => 2.0,
+                       range => 4,
                },
        ],
        speed => 2.25,
@@ -2500,7 +2527,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Hydralisk',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 50,
        build => 33,
@@ -2515,7 +2542,7 @@ use strict;
        attack => [
                {
                        anti => 3,
-                       name => 'Needle spines', # Scythe melee
+                       name => 'Needle Spines', # Scythe melee
                        damage => 12,
                        upgrade => 1,
                        type => 'projectile', # except melee
@@ -2553,7 +2580,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Infestor',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 150,
        build => 50,
@@ -2569,7 +2596,8 @@ use strict;
        speed => 2.25,
        creep => 1.3,
        sight => 10,
-       energy => 200,
+       energy => 50,
+       capacity => 200,
        special => [
                {
                        name => 'Neural Parasite',
@@ -2596,7 +2624,7 @@ use strict;
                        cost => 25,
                        range => 9,
                        duration => 30,
-                       build => 5,
+                       build => 4.8, # 5 normal but 3 faster
                        size => 0.75,
                        cargo => 0,
                        armor => 0,
@@ -2607,6 +2635,7 @@ use strict;
                        },
                        attack => [
                                {
+                                       name => 'Infested Rockets',
                                        anti => 3,
                                        damage => 8,
                                        cooldown => 0.8608,
@@ -2624,7 +2653,7 @@ use strict;
                        min => 150,
                        gas => 150,
                        build => 80,
-                       starting_energy => 25,
+                       energy => 25,
                },
        ],
 },
@@ -2633,7 +2662,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Nydus Worm',
-       min => 100,
+       min => 100, # Nydus Network costs 150/200
        gas => 100,
        build => 20,
        size => 3,
@@ -2653,7 +2682,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Swarm Host',
-       unit => 4,
+       pop => 4,
        min => 100,
        gas => 200,
        build => 40,
@@ -2682,7 +2711,7 @@ use strict;
        special => [
                {
                        alt => 'Locust',
-                       build => 5,
+                       build => 4.8, # 5 normal but 3 faster
                        size => 0.75,
                        cargo => 0,
                        armor => 0,
@@ -2708,6 +2737,14 @@ use strict;
                        duration => 25,
                        cooldown => 60,
                        count => 2,
+                       upgrade => [
+                               {
+                                       # Flying Locusts
+                                       attr => {
+                                               flying => 1,
+                                       },
+                               },
+                       ],
                },
        ],
        upgrade => [
@@ -2716,9 +2753,6 @@ use strict;
                        min => 200,
                        gas => 200,
                        build => 160,
-                       attr => {
-                               flying => 1,
-                       },
                },
        ],
 },
@@ -2727,7 +2761,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Mutalisk',
-       unit => 2,
+       pop => 2,
        min => 100,
        gas => 100,
        build => 33,
@@ -2747,6 +2781,7 @@ use strict;
                        damage => 9,
                        upgrade => 1,
                        splash => 'bounce',
+                       type => 'projectile',
                        psionic => 1,
                        cooldown => 1.5246,
                        range => 3,
@@ -2767,7 +2802,7 @@ use strict;
        race => 'zerg',
        cat => 'lair',
        name => 'Corruptor',
-       unit => 2,
+       pop => 2,
        min => 150,
        gas => 100,
        build => 40,
@@ -2813,7 +2848,7 @@ use strict;
        cat => 'hive',
        name => 'Brood Lord',
        base => ['Corruptor'],
-       unit => 4,
+       pop => 4,
        min => 150+150,
        gas => 100+150,
        build => 34,
@@ -2846,7 +2881,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,
@@ -2883,7 +2918,7 @@ use strict;
        race => 'zerg',
        cat => 'hive',
        name => 'Viper',
-       unit => 3,
+       pop => 3,
        min => 100,
        gas => 200,
        build => 40,
@@ -2899,7 +2934,8 @@ use strict;
        },
        speed => 2.9531,
        sight => 11,
-       energy => 200,
+       energy => 50, #XXX
+       capacity => 200,
        special => [
                {
                        name => 'Blinding Cloud',
@@ -2934,7 +2970,7 @@ use strict;
        race => 'zerg',
        cat => 'hive',
        name => 'Ultralisk',
-       unit => 6,
+       pop => 6,
        min => 300,
        gas => 200,
        build => 55,