my $FM = 1.58; # 1s at fast speed
# toss shield += .65 per $FM
# zerg regen  += .37 per $FM
[

{
cat => 'base',
req => ['nexus'], #TODO
name => 'Probe',
min => 50,
gas => 0,
build => 12.7*$FM, # 20
suit => 1,
unit => 1,
race => 'protoss',
organic => 0,
hp => 20,
shield => 20,
armor => 0,
attack => {
	ground => {
		name => "Particle Beam",
		damage => 5,
		dps => 7,
	},
	range => 1,
},
sight => 8,
speed => 14,
special => [],
counter => ['vulture', 'dark templar'],
},

{
cat => 'base',
req => ['forge'],
name => 'Cannon',
trans => {
	nl => 'kanon',
},
min => 150,
gas => 0,
build => 50,
suit => 3,
race => 'protoss',
hp => 100,
shield => 100,
armor => 0,
attack => {
	ground => {
		damage => 20,
		dps => 27,
	},
	air => 'ground',
	range => 7,
},
sight => 11,
detect => 1,
speed => 0,
special => [],
counter => ['zergling', 'tank'],
},

{
cat => 'ground',
req => ['gateway'],
name => 'Zealot',
trans => {
	nl => 'zeloot',
},
min => 100,
gas => 0,
build => 25*$FM, # 40
suit => 1,
unit => 2,
race => 'protoss',
organic => 1,
hp => 100,
shield => 60,
armor => 1,
attack => {
	ground => {
		name => "Psi Blades",
		damage => [16, 18, 20, 22],
		dps => [22, undef, undef, 30],
	},
	range => 1,
},
sight => 7,
speed => 11,
upgrade => [
	{
#		name => 'leg',
		speed => 16 - 11,
	},
],
special => [],
counter => ['vulture'],
},

{
cat => 'ground',
req => ['gateway', 'cybernetics core'],
name => 'Dragoon',
trans => {
	nl => 'dragonder',
},
min => 125,
gas => 50,
build => 32*$FM, # 40
suit => 3,
unit => 2,
race => 'protoss',
organic => 0,
hp => 100,
shield => 80,
armor => 1,
attack => {
	ground => {
		name => "Phase Disruptor",
		damage => [20, 22, 24, 26],
		dps => [20, 22, 24, 26],
		type => 'explosive',
	},
	air => 'ground',
	range => 4,
},
sight => 8,
speed => 15,
upgrade => [
	{
		attack => {
			range => 6 - 4,
		},
	},
],
special => [],
counter => ['zergling', 'zealot', 'tank'],
},

{
cat => 'ground',
name => 'High Templar',
trans => {
	nl => 'hoge tempelier',
	eo => 'alta templano',
},
min => 50,
gas => 150,
build => 31.7*$FM, # 50
suit => 1,
unit => 2,
race => 'protoss',
organic => 1,
hp => 40,
shield => 40,
armor => 0,
attack => {
},
sight => 7,
speed => 9,
energy => 200,
upgrade => [
	{
		name => "Psionic Storm",
		min => 200,
		gas => 200,
	},
	{
		name => "Hallucination",
		min => 150,
		gas => 150,
	},
	{
		name => "Khaydarin Amulet",
		min => 150,
		gas => 150,
		energy => 250,
	},
],
special => [
	{
		name => 'Psionic Storm',
		abbr => 'ps',
		desc => 'units in the area will receive upto 115 damage',
		range => 9,
		cost => undef,
		duration => 2, #XXX
	},
	{
		name => 'Hallucination',
		abbr => 'hl',
		desc => 'creates two illusionary duplicates of a unit for 3 minutes',
		range => 7,
		cost => undef,
		duration => 180,
	},
],
counter => ['vulture', 'ultralisk'],
},

{
cat => 'ground',
name => 'Dark Templar',
trans => {
	nl => 'donkere tempelier',
	eo => 'malluma templano',
},
min => 125,
gas => 100,
build => 34*$FM, # 50
suit => 1,
unit => 2,
race => 'protoss',
organic => 1,
hp => 80,
shield => 40,
armor => 1,
attack => {
	ground => {
		name => "Warp Blades",
		damage => [40, 43, 46, 49],
		dps => [40, 43, 46, 49],
	},
	range => 1,
},
sight => 7,
speed => 15,
cloak => 1,
special => [],
},

{
cat => 'psionic',
name => 'Archon',
trans => {
	nl => 'archont',
	eo => 'arĥono',
},
min => 100,
gas => 300,
build => 13*$FM, # 20
base => ['templar', 'templar'],
suit => 3,
unit => 4,
race => 'protoss',
organic => 0,
hp => 10,
shield => 350,
armor => 0,
attack => {
	ground => {
		name => "Psionic Shockwave",
		damage => [30, 33, 36, 39],
		dps => [45, undef, undef, 59],
		splash => 1,
	},
	air => 'ground',
	range => 2,
},
sight => 8,
speed => 14,
special => [],
},

{
cat => 'psionic',
name => 'Dark Archon',
trans => {
	nl => 'donkere archont',
	eo => 'malluma arĥono',
},
min => 250,
gas => 200,
build => 13*$FM, # 20
base => ['dark templar', 'dark templar'],
suit => 3,
unit => 4,
race => 'protoss',
organic => 0,
hp => 25,
shield => 200,
armor => 1,
attack => {
},
sight => 10,
speed => 14,
energy => 200,
upgrade => [
	{
		name => "Maelstrom",
		min => 100,
		gas => 100,
	},
	{
		name => "Mind Control",
		min => 200,
		gas => 200,
	},
	{
		name => "Argus Talisman",
		min => 150,
		gas => 150,
		energy => 250,
	},
],
special => [
	{
		name => 'Feedback',
		abbr => 'fb',
		desc => 'targeted unit will lose its mana and receive damage equal to that amount',
		range => 10,
		cost => 50,
		duration => 0,
	},
	{
		name => 'Mind Control',
		abbr => 'mc',
		desc => 'permanently gives you control over any unit',
		range => 8,
		cost => 150,
		duration => -1,
	},
	{
		name => 'Maelstrom',
		abbr => 'ms',
		desc => 'field stunning all organic units for a few seconds',
		range => 10,
		cost => 100,
		duration => undef, #XXX
	},
],
},

{
cat => 'aerial',
name => 'Scout',
trans => {
	nl => 'verkenner',
	eo => 'esploristo',
},
min => 275,
gas => 125,
build => 50.5*$FM, # 80
suit => 3,
unit => 3,
race => 'protoss',
organic => 0,
air => 1,
hp => 150,
shield => 100,
armor => 0,
attack => {
	ground => {
		damage => [8, 9, 10, 11],
		dps => [8, 9, 10, 11],
	},
	air => {
		damage => [28, 30, 32, 34],
		dps => [38, undef, undef, 46],
		type => 'explosive',
	},
	range => 4,
},
sight => 8,
speed => 13,
upgrade => [
	{
		sight => 10 - 8,
	},
	{
		speed => 18 - 13,
	},
],
special => [],
},

{
cat => 'aerial',
name => 'Corsair',
trans => {
	de => 'Korsar',
},
min => 150,
gas => 100,
build => 25.3*$FM, # 40
suit => 2,
unit => 2,
race => 'protoss',
organic => 0,
air => 1,
hp => 100,
shield => 80,
armor => 1,
attack => {
	air => {
		damage => [5, 6, 7, 8],
		dps => [19, undef, undef, 30],
		splash => 1,
		type => 'explosive',
	},
	range => 5,
},
sight => 9,
speed => 17,
special => [
	{
		name => 'Disruption web',
		abbr => 'dw',
		desc => 'creates a field in which no ground unit/structure can attack',
		range => 9,
		cost => 62-50,
		duration => undef, #XXX
	},
],
counter => ['devourer', 'valkyrie'],
},

{
cat => 'aerial',
name => 'Carrier',
trans => {
	nl => 'vliegdekschip',
},
min => 350,
gas => 250,
build => 88.5*$FM, # 140
suit => 3,
unit => 6,
race => 'protoss',
organic => 0,
hp => 300,
shield => 150,
armor => 4,
attack => {
	ground => {
		damage => [6, 7, 8, 9],
		dps => [17, undef, undef, 49],
		min => 25,
		build => 12.7*$FM,
		max => 4,
	},
	air => 'ground',
	range => 8,
},
sight => 11,
speed => 10,
special => [],
counter => ['wraith', 'corsair', 'scourge'],
},

{
cat => 'aerial',
name => 'Arbiter',
trans => {
	nl => 'arbiter',
},
min => 100,
gas => 350,
build => 131, # 160
suit => 3,
unit => 4,
race => 'protoss',
organic => 0,
air => 1,
hp => 200,
shield => 150,
armor => 1,
attack => {
	ground => {
		damage => [10, 11, 12, 13],
		dps => [7, undef, undef, 9],
		type => 'explosive',
	},
	air => 'ground',
	range => 5,
},
sight => 9,
speed => 12,
upgrade => [
	{
		name => 'energy',
		energy => 'more',
	},
],
special => [
	{
		name => 'cloaks',
		abbr => 'cs',
		desc => 'cloaks nearby friendly units except for other Arbiters',
		duration => -1,
	},
	{
		name => 'Recall',
		abbr => 'rc',
		desc => 'creates a 5x5m wormhole which transports units to the Arbiter',
		cost => 75-60,
		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,
	},
],
},

{
cat => 'robotic',
name => 'Reaver',
min => 200,
gas => 100,
build => 44.5*$FM, # 70
suit => 3,
unit => 4,
race => 'protoss',
organic => 0,
hp => 100,
shield => 80,
armor => 0,
attack => {
	ground => {
		damage => 100,
		dps => 50,
		splash => 1,
		cost => 15,
		build => 4.54*$FM,
		max => 5,
	},
	range => 8,
},
sight => 10,
speed => 5,
upgrade => [
	{
		attack => {
			ground => {
				damage => 125 - 100,
				dps => 63 - 50,
			},
		},
	},
	{
		attack => {
			ground => {
				splash => 2 - 1,
			},
		},
	},
	{
		attack => {
			ground => {
				max => 5,
			},
		},
	},
],
special => [],
},

{
cat => 'robotic',
name => 'Observer',
trans => {
	nl => 'observeerder',
},
min => 25,
gas => 75,
build => 25.35*$FM, # 40
suit => 1,
unit => 1,
race => 'protoss',
organic => 0,
air => 1,
hp => 40,
shield => 20,
armor => 0,
attack => {
},
sight => 9,
detect => 1,
speed => 9,
upgrade => [
	{
		name => "Sensor Array",
		min => 150,
		gas => 150,
		sight => 11 - 9,
	},
	{
		name => "Gravitic Booster",
		min => 150,
		gas => 150,
		speed => 13 - 9,
	},
],
cloak => 1,
special => [],
},

{
cat => 'robotic',
name => 'Shuttle',
trans => {
	fr => 'navette',
},
min => 200,
gas => 0,
build => 38*$FM, # 60
suit => 3,
unit => 2,
race => 'protoss',
organic => 0,
hp => 80,
shield => 60,
armor => 1,
attack => {
},
sight => 8,
speed => 13,
transport => 1,
upgrade => [
	{
		speed => 19 - 13,
	}
],
special => [],
},

{
race => 'terran',
cat => 'base',
name => 'SCV', # T-280 Space Construction Vehicle
min => 50,
gas => 0,
build => 20,
suit => 1,
unit => 1,
race => 'terran',
organic => 0,
hp =>  60,
armor => 0,
attack => {
	ground => {
		damage => 5,
		dps => 10,
	},
	range => 1,
},
sight => 7,
speed => 15,
special => [],
},

{
cat => 'base',
name => 'Turret',
trans => {
	nl => 'toren',
},
min => 75,
gas => 0,
build => 30,
suit => 3,
race => 'terran',
hp => 200,
armor => 0,
attack => {
	air => {
		damage => 20,
		dps => 40,
		type => 'explosive',
	},
	range => 7,
},
sight => 11,
detect => 1,
speed => 0,
special => [],
},

{
cat => 'barracks',
name => 'Marine',
trans => {
	nl => 'marinier',
},
min => 50,
gas => 0,
build => 24,
suit => 1,
unit => 1,
race => 'terran',
organic => 1,
hp =>  40,
armor => 0,
attack => {
	ground => {
		damage => [6, 7, 8, 9],
		dps => [12, undef, undef, 18],
	},
	air => 'ground',
	range => 4,
},
sight => 7,
speed => 11,
upgrade => [
	{
		attack => {
			range => 5 - 4,
		},
	},
],
special => [
	{
		name => 'stim pack',
		abbr => 'sp',
		desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
		speed => 17,
		attack => {
			ground => {
				dps => [24, undef, undef, 36],
			},
			air => 'ground',
		},
		duration => undef, #XXX
	},
],
},

{
cat => 'barracks',
name => 'Firebat',
min => 50,
gas => 25,
build => 24,
suit => 1,
unit => 1,
race => 'terran',
organic => 1,
hp =>  50,
armor => 1,
attack => {
	ground => {
		damage => [16, 18, 20, 22],
		dps => [22, undef, undef, 30],
		splash => 1,
		type => 'implosive',
	},
	range => 2,
},
sight => 7,
speed => 11,
special => [
	{
		name => 'stim pack',
		abbr => 'sp',
		desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
		speed => 17,
		attack => {
			dps => [44, undef, undef, 60],
		},
		duration => undef, #XXX
	},
],
},

{
cat => 'barracks',
name => 'Ghost',
trans => {
	nl => 'geest',
},
min => 25,
gas => 75,
build => 50,
suit => 1,
unit => 1,
race => 'terran',
organic => 1,
hp =>  45,
armor => 0,
attack => {
	ground => {
		damage => [10, 11, 12, 13],
		dps => [14, undef, undef, 18],
		type => 'implosive',
	},
	air => 'ground',
	range => 7,
},
sight => 9,
speed => 11,
upgrade => [
	{
		sight => 11 - 9,
	},
],
special => [
	{
		name => 'Cloak',
		abbr => 'cl',
		desc => 'has the ability to cloak',
		cost => 13-10,
		main => .5-.4,
	},
	{
		name => 'Lockdown',
		abbr => 'ld',
		desc => 'disables a mechanical unit completely for one minute',
		range => 8,
		cost => 50-40,
		duration => 60,
	},
	{
		name => 'Nuclear Strike',
		abbr => 'ns',
		desc => 'guides a nuclear missile which will do 500 damage',
		duration => 0,
	},
],
},

{
cat => 'barracks',
name => 'Medic',
min => 50,
gas => 25,
build => 30,
suit => 1,
unit => 1,
race => 'terran',
organic => 1,
hp =>  60,
armor => 1,
attack => {
},
sight => 9,
speed => 11,
special => [
	{
		name => 'Healing',
		abbr => 'hl',
		desc => 'heals friendly biological units',
		range => 2,
		cost => undef,
		duration => 0,
	},
	{
		name => 'Restoration',
		abbr => 'rs',
		desc => 'removes harmful effects (Lockdown, Flare, Irradiate, Plague, Ensnare, Parasite) from a unit',
		range => 6,
		cost => undef,
		duration => 0,
	},
	{
		name => 'Optic Flare',
		abbr => 'of',
		desc => 'reduces the sight of target unit to 1',
		range => 9,
		cost => undef,
		duration => 0,
	},
],
},

{
cat => 'factory',
name => 'Vulture',
trans => {
	nl => 'gier',
},
min => 75,
gas => 0,
build => 19*$FM, # 30
suit => 2,
unit => 2,
race => 'terran',
organic => 0,
hp =>  80,
armor => 0,
attack => {
	ground => {
		damage => [20, 22, 24, 26],
		dps => [20, 22, 24, 26],
		type => 'implosive',
	},
	range => 5,
},
sight => 8,
speed => 20,
upgrade => [
	{
		speed => 28 - 20,
	},
],
special => [
	{
		name => 'spider mine',
		abbr => 'sm',
		desc => 'burrows a mine (capable of doing 125+ damage to enemy units coming within range 3)',
		amount => 3,
		attack => {
			damage => 125,
			type => 'explosive',
		},
		duration => 0,
    },
],
},

{
cat => 'factory',
name => 'Tank',
trans => {
	nl => 'tank',
},
min => 150,
gas => 100,
build => 50,
suit => 3,
unit => 2,
race => 'terran',
organic => 0,
hp => 150,
armor => 1,
attack => {
	ground => {
		damage => [30, 33, 36, 39],
		dps => [24, undef, undef, 32],
		type => 'explosive',
	},
	range => 7,
},
sight => 10,
speed => 12,
special => [
	{
		name => 'siege mode',
		abbr => 'sg',
		alt => 'Sieged Tank',
		attack => {
			ground => {
				damage => [70, 75, 80, 85],
				dps => [28, 30, 32, 34],
				splash => 1,
				type => 'explosive',
			},
			range => 12,
		},
		speed => 0,
		duration => -1,
	},
],
},

{
cat => 'factory',
name => 'Goliath',
trans => {
	nl => 'goliat',
},
min => 100,
gas => 50,
build => 40,
suit => 3,
unit => 2,
race => 'terran',
organic => 0,
hp => 125,
armor => 1,
attack => {
	ground => {
		damage => [12, 13, 14, 15],
		dps => [16, undef, undef, 20],
	},
	air => {
		damage => [20, 24, 28, 32],
		dps => [27, undef, undef, 44],
		type => 'explosive',
	},
	range => 5,
},
sight => 8,
speed => 13,
upgrade => [
	{
		attack => {
			air => {
				range => 8 - 5,
			},
		},
	},
],
special => [],
},

{
cat => 'starport',
name => 'Wraith',
min => 150,
gas => 100,
build => 60,
suit => 3,
unit => 2,
race => 'terran',
organic => 0,
air => 1,
hp => 120,
armor => 0,
attack => {
	ground => {
		damage => [8, 9, 10, 11],
		dps => [8, 9, 10, 11],
	},
	air => {
		damage => [20, 22, 24, 26],
		dps => [27, undef, undef, 35],
		type => 'explosive',
	},
	range => 5,
},
sight => 7,
speed => 17,
special => [
	{
		name => 'Cloak',
		abbr => 'cl',
		desc => 'has the ability to cloak',
		cost => 13-10,
		maint => .5-.4, # /second
	},
],
},

{
cat => 'starport',
name => 'Battle Cruiser',
trans => {
	nl => 'slagkruiser',
},
min => 400,
gas => 300,
build => 160,
suit => 3,
unit => 6,
race => 'terran',
organic => 0,
air => 1,
hp => 500,
armor => 3,
attack => {
	ground => {
		damage => [25, 28, 31, 34],
		dps => [25, 28, 31, 34],
	},
	air => 'ground',
	range => 6,
},
sight => 11,
speed => 7,
special => [
	{
		name => 'Yamato Gun',
		abbr => 'yg',
		desc => 'blast doing 260 damage to a target',
		attack => {
			damage => 260,
		},
		range => 10,
		cost => 75-60,
	},
],
},

{
cat => 'starport',
name => 'Science Vessel',
trans => {
	nl => 'wetenschapsvaartuig',
},
min => 100,
gas => 225,
build => 80,
suit => 3,
unit => 2,
race => 'terran',
organic => 0,
air => 1,
hp => 200,
armor => 1,
attack => {
},
sight => 10,
detect => 1,
speed => 15,
special => [
	{
		name => 'defensive matrix',
		abbr => 'dm',
		desc => 'gives target unit a shield of 250HP for one minute',
		range => 10,
		cost => 50-40,
		duration => 60,
	},
	{
		name => 'EMP',
		abbr => 'ep',
		desc => 'units in 3-matrix radius will lose all energy and shields',
		range => 8,
		cost => 50-40,
	},
	{
    	name => 'irradiate',
		abbr => 'ir',
		desc => 'organic units will suffer upto 250 damage over 30s',
		range => 9,
		cost => 38-30,
		attack => {
			damage => 250,
			splash => 1,
		},
		duration => 30,
	},
],
},

{
cat => 'starport',
name => 'Valkyrie',
trans => {
	nl => 'walkure',
},
min => 250,
gas => 125,
build => 60,
suit => 3,
unit => 3,
race => 'terran',
organic => 0,
air => 1,
hp => 200,
armor => 2,
attack => {
	air => {
		damage => [6, 7, 8, 9],
		dps => [23, undef, undef, 25],
		splash => 1,
		type => 'explosive',
	},
	range => 6,
},
sight => 8,
speed => 19,
special => [],
},

{
cat => 'starport',
name => 'Dropship',
min => 100,
gas => 100,
build => 50,
suit => 3,
unit => 2,
race => 'terran',
organic => 0,
air => 1,
hp => 150,
armor => 1,
attack => {
},
sight => 8,
speed => 15,
transport => 1,
special => [],
},

{
race => 'zerg',
cat => 'base',
name => 'Drone',
min => 50,
gas => 0,
build => 13*$FM, # 20
suit => 1,
unit => (1),
race => 'zerg',
organic => 1,
hp => 40,
armor => 0,
attack => {
	ground => {
		damage => 5,
		dps => 7,
	},
	range => 1,
},
sight => 7,
speed => 14,
special => [],
},

{
cat => 'base',
name => 'Overlord',
min => 100,
gas => 0,
build => 26*$FM, # 40
suit => 3,
unit => -9,
race => 'zerg',
organic => 1,
air => 1,
hp => 200,
armor => 0,
attack => {
},
sight => 9,
detect => 1,
speed => 2,
transport => 1,
upgrade => [
	{
		sight => 11 - 9,
	},
	{
		speed => 10 - 2,
	},
],
special => [],
},

{
cat => 'creep',
name => 'Larva',
trans => {
	nl => 'larve',
},
build => 14.3*$FM, # = 21.5
suit => 1,
unit => 0,
race => 'zerg',
organic => 1,
hp => 25,
armor => 10,
attack => {
},
sight => 4,
speed => 0.1, #XXX
special => [],
},

{
cat => 'creep',
name => 'Egg',
trans => {
	nl => 'ei',
},
suit => 3,
race => 'zerg',
organic => 1,
hp => 200,
armor => 10,
attack => {
},
sight => 4,
speed => 0,
special => [],
},

{
cat => 'creep',
name => 'Sunken Colony',
min => 175,
gas => 0,
build => 20,
suit => 3,
race => 'zerg',
hp => 300,
armor => 2,
attack => {
	ground => {
		damage => 40,
		dps => 38,
		type => 'explosive',
	},
	range => 7,
},
sight => 10,
speed => 0,
special => [],
},

{
cat => 'creep',
name => 'Spore Colony',
min => 175,
gas => 0,
build => 20,
suit => 3,
race => 'zerg',
hp => 400,
armor => 0,
attack => {
	air => {
		damage => 15,
		dps => 30,
	},
	range => 7,
},
sight => 10,
detect => 1,
speed => 0,
special => [],
},

{
cat => 'hatchery',
name => 'Zergling',
min => 25,
gas => 0,
build => 19*$FM, # 14
suit => 1,
unit => 0.5,
race => 'zerg',
organic => 1,
hp => 35,
armor => 0,
attack => {
	ground => {
		damage => [5, 6, 7, 8],
		dps => [18, undef, undef, 29], # 29 is an estimate
	},
	range => 1,
},
sight => 5,
speed => 14,
upgrade => [
	{
		speed => 22 - 14,
	},
	{
		attack => {
			ground => {
				dps => [undef, undef, undef, 42 - 29],
			},
		},
	},
],
special => [],
counter => ['archon', 'templar', 'firebat'],
},

{
cat => 'hatchery',
name => 'Hydralisk',
min => 75,
gas => 25,
build => 18.5*$FM, # 28
suit => 2,
unit => 1,
race => 'zerg',
organic => 1,
hp => 80,
armor => 0,
attack => {
	ground => {
		damage => [10, 11, 12, 13],
		dps => [20, 22, 24, 26],
		type => 'explosive',
	},
	air => 'ground',
	range => 4,
},
sight => 6,
speed => 11,
upgrade => [
	{
		attack => {
			range => 5 - 4,
		},
	},
	{
		speed => 16 - 11,
	},
],
special => [],
},

{
cat => 'lair',
name => 'Lurker',
min => 125,
gas => 125,
base => 'hydralisk',
build => 25.5*$FM, # 40
suit => 2,
unit => 2,
race => 'zerg',
organic => 1,
hp => 125,
armor => 1,
attack => {
	ground => {
		damage => [20, 22, 24, 26],
		dps => [16, undef, undef, 21],
		splash => 1,
	},
	range => 6,
},
sight => 8,
speed => 17,
special => [],
},

{
cat => 'lair',
name => 'Queen',
min => 100,
gas => 100,
build => 42.5*$FM, # 50
suit => 2,
unit => 2,
race => 'zerg',
organic => 1,
air => 1,
hp => 120,
armor => 0,
attack => {
},
sight => 10,
speed => 18,
special => [
	{
		name => 'infest CC',
		abbr => 'ic',
		desc => 'assimilate a Terran Command Center to produce infested marines',
		duration => 0,
	},
	{
		name => 'parasite',
		abbr => 'ps',
		desc => "shares an infected unit's vision",
		range => 12,
		cost => 38-30,
	},
	{
		name => 'ensnare',
		abbr => 'es',
		desc => 'slows units downto 1/2 speed',
		range => 9,
		cost => 38-30,
		duration => undef,
	},
	{
		name => 'Broodling',
		abbr => 'sb',
		desc => 'spawn one inside an enemy unit killing it',
		range => 9,
		cost => 75-60,
	},
],
},

{
cat => 'lair',
name => 'Broodling',
min => 0,
gas => 0,
build => 0,
suit => 1,
unit => 0,
race => 'zerg',
organic => 1,
hp => 30,
armor => 0,
attack => {
	ground => {
		damage => [4, 5, 6, 7],
		dps => [8, 10, 12, 14],
	},
	range => 1,
},
sight => 5,
speed => 19,
special => [],
},

{
cat => 'lair',
name => 'Infested Terran',
min => 100,
gas => 50,
build => 40,
suit => 1,
unit => 1,
race => 'zerg',
organic => 1,
hp => 60,
armor => 0,
attack => {
	ground => {
		damage => 500,
		splash => 1,
		type => 'explosive',
	},
	range => 1,
},
sight => 5,
speed => 17,
special => [],
},

{
cat => 'lair',
name => 'Scourge',
min => 12,
gas => 38,
build => 20*$FM, # 15
suit => 1,
unit => 0.5,
race => 'zerg',
organic => 1,
air => 1,
hp => 25,
armor => 0,
attack => {
	air => {
		damage => 110,
	},
	range => 1,
},
sight => 5,
speed => 18,
counter => ['cannon', 'goliath', 'hydralisk'],
},

{
cat => 'lair',
name => 'Mutalisk',
min => 100,
gas => 100,
build => 26*$FM, # 40
suit => 1,
unit => 2,
race => 'zerg',
organic => 1,
air => 1,
hp => 120,
armor => 0,
attack => {
	ground => {
		damage => [9, 10, 11, 12],
		dps => [9, 10, 11, 12],
		splash => 1,
	},
	air => 'ground',
	range => 3,
},
sight => 7,
speed => 18,
special => [], #TODO: glaive
counter => ['templar', 'corsair', 'valkyrie'],
},

{
cat => 'hive',
name => 'Guardian',
min => 150,
gas => 200,
build => 25.6*$FM, # 40
base => 'mutalisk',
suit => 3,
unit => 2,
race => 'zerg',
organic => 1,
air => 1,
hp => 150,
armor => 2,
attack => {
	ground => {
		damage => [20, 22, 24, 26],
		dps => [20, 22, 24, 26],
	},
	range => 8,
},
sight => 11,
speed => 7,
special => [],
},

{
cat => 'hive',
name => 'Devourer',
min => 250,
gas => 150,
build => 25.6*$FM, # 40
base => 'mutalisk',
suit => 3,
unit => 2,
race => 'zerg',
organic => 1,
air => 1,
hp => 250,
armor => 2,
attack => {
	air => {
		damage => [25, 27, 29, 31],
		dps => [8, undef, undef, 9],
		type => 'explosive',
	},
	range => 6,
},
sight => 10,
speed => 15,
counter => ['goliath', 'dragoon', 'scourge'],
},

{
cat => 'hive',
name => 'Defiler',
min => 50,
gas => 150,
build => 32.5*$FM, # 50
suit => 2,
unit => 2,
race => 'zerg',
organic => 1,
hp => 80,
armor => 1,
attack => {
},
sight => 10,
speed => 12,
special => [
	{
		name => 'consume',
		abbr => 'cs',
		desc => 'gain energy by eating one of your own',
		cost => -undef,
		duration => 0,
	},
	{
		name => 'dark swarm',
		abbr => 'ds',
		desc => 'protect 6x6m from ranged attacks for 60s',
		range => 9,
		cost => 50-40,
		duration => 60,
	},
	{
		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,
		duration => 12,
	},
],
counter => ['archon', 'firebat'],
},

{
cat => 'hive',
name => 'Ultralisk',
min => 200,
gas => 200,
build => 38.8*$FM, # 60
suit => 3,
unit => 4,
race => 'zerg',
organic => 1,
hp => 400,
armor => 1,
attack => {
	ground => {
		damage => [20, 23, 26, 29],
		dps => [40, 46, 52, 58],
	},
	range => 1,
},
sight => 7,
speed => 16,
upgrade => [
	{
		armor => 2,
	},
	{
		speed => 21 - 16,
	},
],
special => [],
},

]
