sc: various missing energy stats of starcraft 1 units
[sheet.git] / sc-units.inc.pl
index af100913b7c062b3c192eeebc6fcc901481db7c4..c1f00f68c33693d8ebcdd9fde21bd044f74fe67b 100644 (file)
@@ -1,15 +1,18 @@
-my $FM = 1.58; # 1s at fast speed
-# toss shield += .65 per $FM
-# zerg regen  += .37 per $FM
+# time in fastest game seconds
+my $FPS = 24;  # frames per second
+# toss shield += .65 per second
+# zerg regen  += .37 per second
 [
 
+# protoss
+
 {
 cat => 'base',
-req => ['nexus'], #TODO
+req => ['nexus'],
 name => 'Probe',
 min => 50,
 gas => 0,
-build => 12.7*$FM, # 20
+build => 20,
 suit => 1,
 unit => 1,
 race => 'protoss',
@@ -22,6 +25,7 @@ attack => {
                name => "Particle Beam",
                damage => 5,
                dps => 7,
+               cooldown => 22,
        },
        range => 1,
 },
@@ -34,7 +38,7 @@ counter => ['vulture', 'dark templar'],
 {
 cat => 'base',
 req => ['forge'],
-name => 'Cannon',
+name => 'Photon Cannon',
 trans => {
        nl => 'kanon',
 },
@@ -50,6 +54,7 @@ attack => {
        ground => {
                damage => 20,
                dps => 27,
+               cooldown => 22,
        },
        air => 'ground',
        range => 7,
@@ -70,7 +75,7 @@ trans => {
 },
 min => 100,
 gas => 0,
-build => 25*$FM, # 40
+build => 40,
 suit => 1,
 unit => 2,
 race => 'protoss',
@@ -83,6 +88,7 @@ attack => {
                name => "Psi Blades",
                damage => [16, 18, 20, 22],
                dps => [22, undef, undef, 30],
+               cooldown => 22,
        },
        range => 1,
 },
@@ -90,8 +96,11 @@ sight => 7,
 speed => 11,
 upgrade => [
        {
-#              name => 'leg',
+               name => 'Leg Enhancements',
                speed => 16 - 11,
+               min => 150,
+               gas => 150,
+               build => 133,
        },
 ],
 special => [],
@@ -107,7 +116,7 @@ trans => {
 },
 min => 125,
 gas => 50,
-build => 32*$FM, # 40
+build => 50,
 suit => 3,
 unit => 2,
 race => 'protoss',
@@ -121,6 +130,7 @@ attack => {
                damage => [20, 22, 24, 26],
                dps => [20, 22, 24, 26],
                type => 'explosive',
+               cooldown => 30,
        },
        air => 'ground',
        range => 4,
@@ -129,6 +139,10 @@ sight => 8,
 speed => 15,
 upgrade => [
        {
+               name => 'Singularity Charge',
+               min => 150,
+               gas => 150,
+               build => 166,
                attack => {
                        range => 6 - 4,
                },
@@ -147,7 +161,7 @@ trans => {
 },
 min => 50,
 gas => 150,
-build => 31.7*$FM, # 50
+build => 50,
 suit => 1,
 unit => 2,
 race => 'protoss',
@@ -155,8 +169,6 @@ organic => 1,
 hp => 40,
 shield => 40,
 armor => 0,
-attack => {
-},
 sight => 7,
 speed => 9,
 energy => 200,
@@ -175,25 +187,25 @@ upgrade => [
                name => "Khaydarin Amulet",
                min => 150,
                gas => 150,
-               energy => 250,
+               energy => 250-200,
        },
 ],
 special => [
        {
                name => 'Psionic Storm',
                abbr => 'ps',
-               desc => 'units in the area will receive upto 115 damage',
+               desc => 'units in the area will receive upto 112 damage', # 14*8
                range => 9,
-               cost => undef,
-               duration => 2, #XXX
+               cost => 75,
+               duration => 3,
        },
        {
                name => 'Hallucination',
                abbr => 'hl',
                desc => 'creates two illusionary duplicates of a unit for 3 minutes',
                range => 7,
-               cost => undef,
-               duration => 180,
+               cost => 80,
+               duration => 3*60,
        },
 ],
 counter => ['vulture', 'ultralisk'],
@@ -208,7 +220,7 @@ trans => {
 },
 min => 125,
 gas => 100,
-build => 34*$FM, # 50
+build => 50,
 suit => 1,
 unit => 2,
 race => 'protoss',
@@ -221,6 +233,7 @@ attack => {
                name => "Warp Blades",
                damage => [40, 43, 46, 49],
                dps => [40, 43, 46, 49],
+               cooldown => 30,
        },
        range => 1,
 },
@@ -239,7 +252,7 @@ trans => {
 },
 min => 100,
 gas => 300,
-build => 13*$FM, # 20
+build => 20,
 base => ['templar', 'templar'],
 suit => 3,
 unit => 4,
@@ -253,6 +266,7 @@ attack => {
                name => "Psionic Shockwave",
                damage => [30, 33, 36, 39],
                dps => [45, undef, undef, 59],
+               cooldown => 20,
                splash => 1,
        },
        air => 'ground',
@@ -272,7 +286,7 @@ trans => {
 },
 min => 250,
 gas => 200,
-build => 13*$FM, # 20
+build => 20,
 base => ['dark templar', 'dark templar'],
 suit => 3,
 unit => 4,
@@ -291,17 +305,20 @@ upgrade => [
                name => "Maelstrom",
                min => 100,
                gas => 100,
+               build => 100,
        },
        {
                name => "Mind Control",
                min => 200,
                gas => 200,
+               build => 120,
        },
        {
                name => "Argus Talisman",
                min => 150,
                gas => 150,
-               energy => 250,
+               build => 166,
+               energy => 250-200,
        },
 ],
 special => [
@@ -327,7 +344,7 @@ special => [
                desc => 'field stunning all organic units for a few seconds',
                range => 10,
                cost => 100,
-               duration => undef, #XXX
+               duration => 180 / $FPS, # 7.5s fastest
        },
 ],
 },
@@ -341,7 +358,7 @@ trans => {
 },
 min => 275,
 gas => 125,
-build => 50.5*$FM, # 80
+build => 80,
 suit => 3,
 unit => 3,
 race => 'protoss',
@@ -354,11 +371,13 @@ attack => {
        ground => {
                damage => [8, 9, 10, 11],
                dps => [8, 9, 10, 11],
+               cooldown => 30,
        },
        air => {
                damage => [28, 30, 32, 34],
                dps => [38, undef, undef, 46],
                type => 'explosive',
+               cooldown => 22,
        },
        range => 4,
 },
@@ -366,9 +385,17 @@ sight => 8,
 speed => 13,
 upgrade => [
        {
+               name => 'Apial Sensors',
+               min => 100,
+               gas => 100,
+               build => 166,
                sight => 10 - 8,
        },
        {
+               name => 'Gravitic Thrusters',
+               min => 200,
+               gas => 200,
+               build => 166,
                speed => 18 - 13,
        },
 ],
@@ -383,7 +410,7 @@ trans => {
 },
 min => 150,
 gas => 100,
-build => 25.3*$FM, # 40
+build => 40,
 suit => 2,
 unit => 2,
 race => 'protoss',
@@ -396,6 +423,7 @@ attack => {
        air => {
                damage => [5, 6, 7, 8],
                dps => [19, undef, undef, 30],
+               cooldown => 8,
                splash => 1,
                type => 'explosive',
        },
@@ -403,6 +431,22 @@ attack => {
 },
 sight => 9,
 speed => 17,
+energy => 200,
+upgrade => [
+       {
+               name => 'Disruption Web',
+               min => 200,
+               gas => 200,
+               build => 80,
+       },
+       {
+               name => 'Argus Jewel',
+               min => 100,
+               gas => 100,
+               build => 166,
+               energy => 250-200,
+       },
+],
 special => [
        {
                name => 'Disruption web',
@@ -424,7 +468,7 @@ trans => {
 },
 min => 350,
 gas => 250,
-build => 88.5*$FM, # 140
+build => 140,
 suit => 3,
 unit => 6,
 race => 'protoss',
@@ -435,8 +479,7 @@ armor => 4,
 attack => {
        ground => {
                dps => [17, undef, undef, 49],
-               build => 12.7*$FM,
-               max => 4,
+               count => 4,
        },
        air => 'ground',
        range => 8,
@@ -445,6 +488,7 @@ sight => 11,
 speed => 10,
 special => [
        {
+               name => 'Build Interceptor',
                alt => 'Interceptor',
                min => 25,
                build => 20,
@@ -459,8 +503,8 @@ special => [
                        ground => {
                                damage => [6, 7, 8, 9],
                                dps => [4, 5, 5, 6],
-                               cooldown => 37, # approximate, varies
-                               build => 12.7*$FM,
+                               cooldown => 43, # approximately 37 according to liquipedia
+                               build => 20,
                        },
                        air => 'ground',
                        range => 0,
@@ -473,7 +517,7 @@ upgrade => [
        {
                name => 'Carrier Capacity',
                damage => {
-                       max => 4,
+                       count => 8-4,
                },
        },
 ],
@@ -488,7 +532,7 @@ trans => {
 },
 min => 100,
 gas => 350,
-build => 131, # 160
+build => 160,
 suit => 3,
 unit => 4,
 race => 'protoss',
@@ -501,6 +545,7 @@ attack => {
        ground => {
                damage => [10, 11, 12, 13],
                dps => [7, undef, undef, 9],
+               cooldown => 45,
                type => 'explosive',
        },
        air => 'ground',
@@ -508,10 +553,26 @@ attack => {
 },
 sight => 9,
 speed => 12,
+energy => 200,
 upgrade => [
        {
-               name => 'energy',
-               energy => 'more',
+               name => 'Stasis Field',
+               min => 150,
+               gas => 150,
+               build => 100,
+       },
+       {
+               name => 'Recall',
+               min => 150,
+               gas => 150,
+               build => 100,
+       },
+       {
+               name => 'Khaydarin Core',
+               min => 150,
+               gas => 150,
+               build => 166,
+               energy => 250-200,
        },
 ],
 special => [
@@ -521,21 +582,21 @@ special => [
                desc => 'cloaks nearby friendly units except for other Arbiters',
                duration => -1,
        },
+       {
+               name => 'Stasis Field',
+               abbr => 'sf',
+               desc => 'traps all non-burrowed units (3x3m) for 40 seconds, making them frozen and undamagable',
+               cost => 100,
+               range => 9,
+               duration => 1000 / $FPS,
+       },
        {
                name => 'Recall',
                abbr => 'rc',
                desc => 'creates a 5x5m wormhole which transports units to the Arbiter',
-               cost => 75-60,
+               cost => 150,
                duration => 0,
        },
-       {
-               name => 'Stasis field',
-               abbr => 'sf',
-               desc => 'traps all non-burrowed units (3x3m) for 40 seconds, making them frozen and undamagable',
-               cost => 50-40,
-               range => 9,
-               duration => 40,
-       },
 ],
 },
 
@@ -544,7 +605,7 @@ cat => 'robotic',
 name => 'Reaver',
 min => 200,
 gas => 100,
-build => 44.5*$FM, # 70
+build => 70,
 suit => 3,
 unit => 4,
 race => 'protoss',
@@ -556,9 +617,10 @@ attack => {
        ground => {
                damage => 100,
                dps => 50,
+               cooldown => 60,
                splash => 1,
                cost => 15,
-               build => 4.54*$FM,
+               build => 7,
                max => 5,
        },
        range => 8,
@@ -567,6 +629,10 @@ sight => 10,
 speed => 5,
 upgrade => [
        {
+               name => 'Scarab Damage',
+               min => 200,
+               gas => 200,
+               build => 166,
                attack => {
                        ground => {
                                damage => 125 - 100,
@@ -582,9 +648,13 @@ upgrade => [
                },
        },
        {
+               name => 'Increased Reaver Capacity',
+               min => 200,
+               gas => 200,
+               build => 166,
                attack => {
                        ground => {
-                               max => 5,
+                               max => 10-5,
                        },
                },
        },
@@ -600,7 +670,7 @@ trans => {
 },
 min => 25,
 gas => 75,
-build => 25.35*$FM, # 40
+build => 40,
 suit => 1,
 unit => 1,
 race => 'protoss',
@@ -609,8 +679,6 @@ air => 1,
 hp => 40,
 shield => 20,
 armor => 0,
-attack => {
-},
 sight => 9,
 detect => 1,
 speed => 9,
@@ -619,12 +687,14 @@ upgrade => [
                name => "Sensor Array",
                min => 150,
                gas => 150,
+               build => 133,
                sight => 11 - 9,
        },
        {
                name => "Gravitic Booster",
                min => 150,
                gas => 150,
+               build => 166,
                speed => 13 - 9,
        },
 ],
@@ -640,7 +710,7 @@ trans => {
 },
 min => 200,
 gas => 0,
-build => 38*$FM, # 60
+build => 60,
 suit => 3,
 unit => 2,
 race => 'protoss',
@@ -655,12 +725,18 @@ speed => 13,
 transport => 1,
 upgrade => [
        {
+               name => 'Gravitic Drive',
+               min => 200,
+               gas => 200,
+               build => 166,
                speed => 19 - 13,
        }
 ],
 special => [],
 },
 
+# terran
+
 {
 race => 'terran',
 cat => 'base',
@@ -678,6 +754,7 @@ attack => {
        ground => {
                damage => 5,
                dps => 10,
+               cooldown => 15,
        },
        range => 1,
 },
@@ -688,7 +765,7 @@ special => [],
 
 {
 cat => 'base',
-name => 'Turret',
+name => 'Missile Turret',
 trans => {
        nl => 'toren',
 },
@@ -703,6 +780,7 @@ attack => {
        air => {
                damage => 20,
                dps => 40,
+               cooldown => 15,
                type => 'explosive',
        },
        range => 7,
@@ -732,6 +810,7 @@ attack => {
        ground => {
                damage => [6, 7, 8, 9],
                dps => [12, undef, undef, 18],
+               cooldown => 15,
        },
        air => 'ground',
        range => 4,
@@ -740,6 +819,16 @@ sight => 7,
 speed => 11,
 upgrade => [
        {
+               name => 'Stim Pack',
+               min => 100,
+               gas => 100,
+               build => 80,
+       },
+       {
+               name => 'U-238 Shells',
+               min => 150,
+               gas => 150,
+               build => 100,
                attack => {
                        range => 5 - 4,
                },
@@ -753,11 +842,12 @@ special => [
                speed => 17,
                attack => {
                        ground => {
+                               cooldown => 7.5,
                                dps => [24, undef, undef, 36],
                        },
                        air => 'ground',
                },
-               duration => undef, #XXX
+               duration => 220 / $FPS,
        },
 ],
 },
@@ -778,6 +868,7 @@ attack => {
        ground => {
                damage => [16, 18, 20, 22],
                dps => [22, undef, undef, 30],
+               cooldown => 22,
                splash => 1,
                type => 'implosive',
        },
@@ -785,6 +876,14 @@ attack => {
 },
 sight => 7,
 speed => 11,
+upgrade => [
+       {
+               name => 'Stim Pack',
+               min => 100,
+               gas => 100,
+               build => 80,
+       },
+],
 special => [
        {
                name => 'stim pack',
@@ -792,9 +891,10 @@ special => [
                desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
                speed => 17,
                attack => {
+                       cooldown => 11,
                        dps => [44, undef, undef, 60],
                },
-               duration => undef, #XXX
+               duration => 220 / $FPS,
        },
 ],
 },
@@ -818,6 +918,7 @@ attack => {
        ground => {
                damage => [10, 11, 12, 13],
                dps => [14, undef, undef, 18],
+               cooldown => 22,
                type => 'implosive',
        },
        air => 'ground',
@@ -827,30 +928,49 @@ sight => 9,
 speed => 11,
 upgrade => [
        {
+               name => 'Ocular Implants',
+               min => 150,
+               gas => 150,
+               build => 166,
                sight => 11 - 9,
+               special => {
+                       ns => {
+                               # nuke
+                               range => 10-8,
+                       },
+               },
+       },
+       {
+               name => 'Moebius Reactor',
+               min => 150,
+               gas => 150,
+               build => 166,
+               energy => 250-200,
        },
 ],
+energy => 200,
 special => [
        {
-               name => 'Cloak',
+               name => 'Personal Cloaking',
                abbr => 'cl',
                desc => 'has the ability to cloak',
-               cost => 13-10,
-               main => .5-.4,
+               cost => 25,
+               maint => 1, # per second
        },
        {
                name => 'Lockdown',
                abbr => 'ld',
                desc => 'disables a mechanical unit completely for one minute',
                range => 8,
-               cost => 50-40,
+               cost => 100,
                duration => 60,
        },
        {
                name => 'Nuclear Strike',
                abbr => 'ns',
                desc => 'guides a nuclear missile which will do 500 damage',
-               duration => 0,
+               duration => 14+3,
+               range => 8,
        },
 ],
 },
@@ -871,21 +991,43 @@ attack => {
 },
 sight => 9,
 speed => 11,
+energy => 200,
+update => [
+       {
+               name => 'Restoration',
+               min => 100,
+               gas => 100,
+               build => 80,
+       },
+       {
+               name => 'Optical Flare',
+               min => 100,
+               gas => 100,
+               build => 80,
+       },
+       {
+               name => 'Caduceus Reactor',
+               min => 150,
+               gas => 150,
+               build => 166,
+               energy => 250-200,
+       },
+],
 special => [
        {
                name => 'Healing',
                abbr => 'hl',
-               desc => 'heals friendly biological units',
+               desc => 'heals 2 HP of friendly biological units',
                range => 2,
-               cost => undef,
-               duration => 0,
+               cost => 1,
+               duration => 1,
        },
        {
                name => 'Restoration',
                abbr => 'rs',
                desc => 'removes harmful effects (Lockdown, Flare, Irradiate, Plague, Ensnare, Parasite) from a unit',
                range => 6,
-               cost => undef,
+               cost => 50,
                duration => 0,
        },
        {
@@ -893,8 +1035,8 @@ special => [
                abbr => 'of',
                desc => 'reduces the sight of target unit to 1',
                range => 9,
-               cost => undef,
-               duration => 0,
+               cost => 75,
+               duration => -1,
        },
 ],
 },
@@ -907,7 +1049,7 @@ trans => {
 },
 min => 75,
 gas => 0,
-build => 19*$FM, # 30
+build => 30,
 suit => 2,
 unit => 2,
 race => 'terran',
@@ -918,6 +1060,7 @@ attack => {
        ground => {
                damage => [20, 22, 24, 26],
                dps => [20, 22, 24, 26],
+               cooldown => 30,
                type => 'implosive',
        },
        range => 5,
@@ -926,20 +1069,41 @@ sight => 8,
 speed => 20,
 upgrade => [
        {
+               name => 'Spider Mines',
+               min => 100,
+               gas => 100,
+               build => 80,
+       },
+       {
+               name => 'Ion Thrusters',
+               min => 100,
+               gas => 100,
+               build => 100,
                speed => 28 - 20,
        },
 ],
 special => [
        {
-               name => 'spider mine',
+               name => 'Spider Mine',
                abbr => 'sm',
+               alt => 'Spider Mine',
                desc => 'burrows a mine (capable of doing 125+ damage to enemy units coming within range 3)',
                amount => 3,
+               organic => 0,
+               hp => 20,
+               suit => 1,
+               armor => 0,
                attack => {
-                       damage => 125,
-                       type => 'explosive',
+                       ground => {
+                               damage => 125,
+                               cooldown => 0,
+                               splash => 1,
+                               type => 'explosive',
+                       },
+                       range => 3,
                },
-               duration => 0,
+               sight => 3,
+               speed => 25,
     },
 ],
 },
@@ -963,21 +1127,31 @@ attack => {
        ground => {
                damage => [30, 33, 36, 39],
                dps => [24, undef, undef, 32],
+               cooldown => 37,
                type => 'explosive',
        },
        range => 7,
 },
 sight => 10,
 speed => 12,
+upgrade => [
+       {
+               name => 'Siege Tech',
+               min => 150,
+               gas => 150,
+               build => 80,
+       },
+],
 special => [
        {
-               name => 'siege mode',
+               name => 'Siege Mode',
                abbr => 'sg',
                alt => 'Sieged Tank',
                attack => {
                        ground => {
                                damage => [70, 75, 80, 85],
                                dps => [28, 30, 32, 34],
+                               cooldown => 75,
                                splash => 1,
                                type => 'explosive',
                        },
@@ -1008,11 +1182,13 @@ attack => {
        ground => {
                damage => [12, 13, 14, 15],
                dps => [16, undef, undef, 20],
+               cooldown => 22,
        },
        air => {
                damage => [20, 24, 28, 32],
                dps => [27, undef, undef, 44],
                type => 'explosive',
+               cooldown => 22,
        },
        range => 5,
 },
@@ -1020,10 +1196,14 @@ sight => 8,
 speed => 13,
 upgrade => [
        {
+               name => 'Charon Boosters',
+               min => 100,
+               gas => 100,
+               build => 133,
                attack => {
-                       air => {
+#                      air => {
                                range => 8 - 5,
-                       },
+#                      },
                },
        },
 ],
@@ -1047,23 +1227,41 @@ attack => {
        ground => {
                damage => [8, 9, 10, 11],
                dps => [8, 9, 10, 11],
+               cooldown => 30,
        },
        air => {
                damage => [20, 22, 24, 26],
                dps => [27, undef, undef, 35],
+               cooldown => 22,
                type => 'explosive',
        },
        range => 5,
 },
 sight => 7,
 speed => 17,
+energy => 200,
 special => [
        {
                name => 'Cloak',
                abbr => 'cl',
                desc => 'has the ability to cloak',
-               cost => 13-10,
-               maint => .5-.4, # /second
+               cost => 25,
+               maint => 1, # /second
+       },
+],
+upgrade => [
+       {
+               name => 'Cloaking Field',
+               min => 150,
+               gas => 150,
+               build => 100,
+       },
+       {
+               name => 'Apollo Reactor',
+               min => 200,
+               gas => 200,
+               build => 166,
+               energy => 250-200,
        },
 ],
 },
@@ -1076,7 +1274,7 @@ trans => {
 },
 min => 400,
 gas => 300,
-build => 160,
+build => 133,
 suit => 3,
 unit => 6,
 race => 'terran',
@@ -1088,22 +1286,42 @@ attack => {
        ground => {
                damage => [25, 28, 31, 34],
                dps => [25, 28, 31, 34],
+               cooldown => 30,
        },
        air => 'ground',
        range => 6,
 },
 sight => 11,
 speed => 7,
+energy => 200,
 special => [
        {
                name => 'Yamato Gun',
                abbr => 'yg',
                desc => 'blast doing 260 damage to a target',
                attack => {
-                       damage => 260,
+                       ground => {
+                               damage => 260,
+                       },
+                       air => 'ground',
+                       range => 10,
                },
-               range => 10,
-               cost => 75-60,
+               cost => 150,
+       },
+],
+upgrade => [
+       {
+               name => 'Yamato Gun',
+               min => 100,
+               gas => 100,
+               build => 120,
+       },
+       {
+               name => 'Colossus Reactor',
+               min => 150,
+               gas => 150,
+               build => 166,
+               energy => 250-200,
        },
 ],
 },
@@ -1124,38 +1342,58 @@ organic => 0,
 air => 1,
 hp => 200,
 armor => 1,
-attack => {
-},
 sight => 10,
 detect => 1,
 speed => 15,
+energy => 200,
 special => [
        {
-               name => 'defensive matrix',
+               name => 'Defensive Matrix',
                abbr => 'dm',
                desc => 'gives target unit a shield of 250HP for one minute',
                range => 10,
-               cost => 50-40,
-               duration => 60,
+               cost => 100,
+               duration => 55,
        },
        {
-               name => 'EMP',
+               name => 'EMP Shockwave',
                abbr => 'ep',
                desc => 'units in 3-matrix radius will lose all energy and shields',
                range => 8,
-               cost => 50-40,
+               cost => 100,
        },
        {
-       name => 'irradiate',
+       name => 'Irradiate',
                abbr => 'ir',
                desc => 'organic units will suffer upto 250 damage over 30s',
                range => 9,
-               cost => 38-30,
+               cost => 75,
                attack => {
                        damage => 250,
                        splash => 1,
                },
-               duration => 30,
+               duration => 25,
+       },
+],
+upgrade => [
+       {
+               name => 'EMP Shockwave',
+               min => 200,
+               gas => 200,
+               build => 120,
+       },
+       {
+               name => 'Irradiate',
+               min => 200,
+               gas => 200,
+               build => 80,
+       },
+       {
+               name => 'Titan Reactor',
+               min => 150,
+               gas => 150,
+               build => 166,
+               energy => 250-200,
        },
 ],
 },
@@ -1168,7 +1406,7 @@ trans => {
 },
 min => 250,
 gas => 125,
-build => 60,
+build => 50,
 suit => 3,
 unit => 3,
 race => 'terran',
@@ -1180,8 +1418,10 @@ attack => {
        air => {
                damage => [6, 7, 8, 9],
                dps => [23, undef, undef, 25],
+               cooldown => 64,
                splash => 1,
                type => 'explosive',
+               count => 8,
        },
        range => 6,
 },
@@ -1203,23 +1443,22 @@ organic => 0,
 air => 1,
 hp => 150,
 armor => 1,
-attack => {
-},
 sight => 8,
 speed => 15,
 transport => 1,
-special => [],
 },
 
+# zerg
+
 {
 race => 'zerg',
 cat => 'base',
 name => 'Drone',
 min => 50,
 gas => 0,
-build => 13*$FM, # 20
+build => 20,
 suit => 1,
-unit => (1),
+unit => 1,
 race => 'zerg',
 organic => 1,
 hp => 40,
@@ -1228,6 +1467,7 @@ attack => {
        ground => {
                damage => 5,
                dps => 7,
+               cooldown => 22,
        },
        range => 1,
 },
@@ -1241,7 +1481,7 @@ cat => 'base',
 name => 'Overlord',
 min => 100,
 gas => 0,
-build => 26*$FM, # 40
+build => 40,
 suit => 3,
 unit => -9,
 race => 'zerg',
@@ -1249,17 +1489,31 @@ organic => 1,
 air => 1,
 hp => 200,
 armor => 0,
-attack => {
-},
+cargo => 0,
 sight => 9,
 detect => 1,
 speed => 2,
 transport => 1,
 upgrade => [
        {
+               name => 'Ventral Sacs',
+               min => 200,
+               gas => 200,
+               build => 160,
+               cargo => -8,
+       },
+       {
+               name => 'Antennae',
+               min => 150,
+               gas => 150,
+               build => 133,
                sight => 11 - 9,
        },
        {
+               name => 'Pneumatized Carapace',
+               min => 150,
+               gas => 150,
+               build => 133,
                speed => 10 - 2,
        },
 ],
@@ -1272,7 +1526,7 @@ name => 'Larva',
 trans => {
        nl => 'larve',
 },
-build => 14.3*$FM, # = 21.5
+build => 20,
 suit => 1,
 unit => 0,
 race => 'zerg',
@@ -1282,7 +1536,7 @@ armor => 10,
 attack => {
 },
 sight => 4,
-speed => 0.1, #XXX
+speed => 0.1, # more or less
 special => [
        {
                name => 'transform',
@@ -1318,6 +1572,7 @@ attack => {
        ground => {
                damage => 40,
                dps => 38,
+               cooldown => 32,
                type => 'explosive',
        },
        range => 7,
@@ -1341,6 +1596,7 @@ attack => {
        air => {
                damage => 15,
                dps => 30,
+               cooldown => 15,
        },
        range => 7,
 },
@@ -1355,7 +1611,7 @@ cat => 'hatchery',
 name => 'Zergling',
 min => 25,
 gas => 0,
-build => 19*$FM, # 14
+build => 28, # for 2
 suit => 1,
 unit => 0.5,
 race => 'zerg',
@@ -1366,6 +1622,7 @@ attack => {
        ground => {
                damage => [5, 6, 7, 8],
                dps => [18, undef, undef, 29], # 29 is an estimate
+               cooldown => 8,
        },
        range => 1,
 },
@@ -1373,11 +1630,20 @@ sight => 5,
 speed => 14,
 upgrade => [
        {
+               name => 'Metabolic Boost',
+               min => 100,
+               gas => 100,
+               build => 80,
                speed => 22 - 14,
        },
        {
+               name => 'Adrenal Glands',
+               min => 200,
+               gas => 200,
+               build => 80,
                attack => {
                        ground => {
+                               cooldown => 6,
                                dps => [undef, undef, undef, 42 - 29],
                        },
                },
@@ -1392,7 +1658,7 @@ cat => 'hatchery',
 name => 'Hydralisk',
 min => 75,
 gas => 25,
-build => 18.5*$FM, # 28
+build => 28,
 suit => 2,
 unit => 1,
 race => 'zerg',
@@ -1403,6 +1669,7 @@ attack => {
        ground => {
                damage => [10, 11, 12, 13],
                dps => [20, 22, 24, 26],
+               cooldown => 15,
                type => 'explosive',
        },
        air => 'ground',
@@ -1412,13 +1679,27 @@ sight => 6,
 speed => 11,
 upgrade => [
        {
+               name => 'Grooved Spines',
+               min => 150,
+               gas => 150,
+               build => 100,
                attack => {
                        range => 5 - 4,
                },
        },
        {
+               name => 'Muscular Augments',
+               min => 150,
+               gas => 150,
+               build => 100,
                speed => 16 - 11,
        },
+       {
+               name => 'Lurker Aspect',
+               min => 200,
+               gas => 200,
+               build => 120,
+       },
 ],
 special => [],
 },
@@ -1429,7 +1710,7 @@ name => 'Lurker',
 min => 125,
 gas => 125,
 base => 'hydralisk',
-build => 25.5*$FM, # 40
+build => 40,
 suit => 2,
 unit => 2,
 race => 'zerg',
@@ -1440,7 +1721,8 @@ attack => {
        ground => {
                damage => [20, 22, 24, 26],
                dps => [16, undef, undef, 21],
-               splash => 1,
+               cooldown => 37,
+               splash => 'line',
        },
        range => 6,
 },
@@ -1454,7 +1736,7 @@ cat => 'lair',
 name => 'Queen',
 min => 100,
 gas => 100,
-build => 42.5*$FM, # 50
+build => 50,
 suit => 2,
 unit => 2,
 race => 'zerg',
@@ -1462,49 +1744,50 @@ organic => 1,
 air => 1,
 hp => 120,
 armor => 0,
-attack => {
-},
 sight => 10,
 speed => 18,
+energy => 200,
 special => [
        {
-               name => 'infest CC',
+               name => 'Infest CC',
                abbr => 'ic',
-               desc => 'assimilate a Terran Command Center to produce infested marines',
+               desc => 'assimilate a damaged Terran Command Center to produce infested marines',
                duration => 0,
        },
        {
-               name => 'parasite',
+               name => 'Parasite',
                abbr => 'ps',
                desc => "shares an infected unit's vision",
                range => 12,
-               cost => 38-30,
+               cost => 75,
        },
        {
                name => 'ensnare',
                abbr => 'es',
-               desc => 'slows units downto 1/2 speed',
+               desc => 'slows units downto half speed',
                range => 9,
-               cost => 38-30,
-               duration => undef,
+               cost => 75,
+               duration => 25,
        },
        {
                name => 'Spawn Broodling',
                abbr => 'sb',
                desc => 'spawn one inside an enemy unit killing it',
                range => 9,
-               cost => 75-60,
+               cost => 150,
 
+               count => 2,
                alt => 'Broodling',
                suit => 1,
-               unit => undef,
-               organic => undef,
+               unit => 0,
+               organic => 1,
                hp => 30,
                armor => 0,
                attack => {
                        ground => {
                                damage => [4, 5, 6, 7],
                                dps => [8, 10, 12, 14],
+                               cooldown => 15,
                        },
                        range => 1,
                },
@@ -1544,7 +1827,7 @@ cat => 'lair',
 name => 'Scourge',
 min => 12,
 gas => 38,
-build => 20*$FM, # 15
+build => 30, # for 2
 suit => 1,
 unit => 0.5,
 race => 'zerg',
@@ -1568,7 +1851,7 @@ cat => 'lair',
 name => 'Mutalisk',
 min => 100,
 gas => 100,
-build => 26*$FM, # 40
+build => 40,
 suit => 1,
 unit => 2,
 race => 'zerg',
@@ -1578,16 +1861,28 @@ hp => 120,
 armor => 0,
 attack => {
        ground => {
-               damage => [9, 10, 11, 12],
+               damage => [9 .. 12],
                dps => [9, 10, 11, 12],
-               splash => 1,
+               cooldown => 30,
+               splash => 'bounce',
        },
        air => 'ground',
        range => 3,
 },
 sight => 7,
 speed => 18,
-special => [], #TODO: glaive
+special => [
+       {
+               alt => 'Cocoon',
+               suit => 3,
+               organic => 1,
+               hp => 200,
+               armor => 0,
+               sight => 4,
+               speed => 0,
+       },
+       #TODO: glaive
+],
 counter => ['templar', 'corsair', 'valkyrie'],
 },
 
@@ -1596,7 +1891,7 @@ cat => 'hive',
 name => 'Guardian',
 min => 150,
 gas => 200,
-build => 25.6*$FM, # 40
+build => 40,
 base => 'mutalisk',
 suit => 3,
 unit => 2,
@@ -1609,6 +1904,7 @@ attack => {
        ground => {
                damage => [20, 22, 24, 26],
                dps => [20, 22, 24, 26],
+               cooldown => 30,
        },
        range => 8,
 },
@@ -1622,7 +1918,7 @@ cat => 'hive',
 name => 'Devourer',
 min => 250,
 gas => 150,
-build => 25.6*$FM, # 40
+build => 40,
 base => 'mutalisk',
 suit => 3,
 unit => 2,
@@ -1635,6 +1931,7 @@ attack => {
        air => {
                damage => [25, 27, 29, 31],
                dps => [8, undef, undef, 9],
+               cooldown => 100,
                type => 'explosive',
        },
        range => 6,
@@ -1649,42 +1946,55 @@ cat => 'hive',
 name => 'Defiler',
 min => 50,
 gas => 150,
-build => 32.5*$FM, # 50
+build => 50,
 suit => 2,
 unit => 2,
 race => 'zerg',
 organic => 1,
 hp => 80,
 armor => 1,
-attack => {
-},
 sight => 10,
 speed => 12,
+energy => 200,
 special => [
        {
-               name => 'consume',
+               name => 'Consume',
                abbr => 'cs',
                desc => 'gain energy by eating one of your own',
-               cost => -undef,
+               cost => -50,
                duration => 0,
        },
        {
-               name => 'dark swarm',
+               name => 'Dark Swarm',
                abbr => 'ds',
                desc => 'protect 6x6m from ranged attacks for 60s',
                range => 9,
-               cost => 50-40,
+               cost => 100,
                duration => 60,
        },
        {
-               name => 'plague',
+               name => 'Plague',
                abbr => 'pl',
                desc => 'anything in its radius will loose 25 HP per second for 12s or until 1 HP left',
                range => 9,
-               cost => 75-60,
+               cost => 150,
                duration => 12,
        },
 ],
+upgrade => [
+       {
+               name => 'Consume',
+               min => 100,
+               gas => 100,
+               build => 100,
+       },
+       {
+               name => 'Plague',
+               min => 200,
+               gas => 200,
+               build => 100,
+       },
+],
 counter => ['archon', 'firebat'],
 },
 
@@ -1693,7 +2003,7 @@ cat => 'hive',
 name => 'Ultralisk',
 min => 200,
 gas => 200,
-build => 38.8*$FM, # 60
+build => 60,
 suit => 3,
 unit => 4,
 race => 'zerg',
@@ -1704,6 +2014,7 @@ attack => {
        ground => {
                damage => [20, 23, 26, 29],
                dps => [40, 46, 52, 58],
+               cooldown => 15,
        },
        range => 1,
 },
@@ -1711,9 +2022,17 @@ sight => 7,
 speed => 16,
 upgrade => [
        {
+               name => 'Chitinous Plating',
+               min => 150,
+               gas => 150,
+               build => 133,
                armor => 2,
        },
        {
+               name => 'Anabolic Synthesis',
+               min => 200,
+               gas => 200,
+               build => 133,
                speed => 21 - 16,
        },
 ],