--       _________ __                 __
--      /   _____//  |_____________ _/  |______     ____  __ __  ______
--      \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
--      /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \ 
--     /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
--             \/                  \/          \//_____/            \/ 
--  ______________________                           ______________________
--            T H E   W A R   B E G I N S
--     Stratagus - A free fantasy real time strategy game engine
--
--  units.ccl   -   Define the used human unit-types.
--
--  (c) Copyright 2000,2004 by Jimmy Salmon and Mohydine
--
--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation; either version 2 of the License, or
--      (at your option) any later version.
--  
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--  
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
--
--  $Id: units.lua,v 1.37 2004/05/10 12:30:56 mohydine Exp $

--=============================================================================
--  Define unit-types.
--
--  NOTE: Save can generate this table.
--
-- Shadow = {"file", "...", "size", {80, 88}, "offset", {0, 0}},


DefineUnitType("unit-warrior", { Name = "Warrior",
  Files = {"tileset-summer", "red-ants/units/footman.png"},
  Size = {72, 72},
  Animations = "animations-warrior", Icon = "icon-warrior",
  --Costs = {"time", 60, "sugar", 600, "eggs", 1},
  Costs = {"time", 60, "sugar", 600},
  Speed = 10,
  HitPoints = 60,
  DrawLevel = 40,
  TileSize = {1, 1}, BoxSize = {31, 31},
  SightRange = 4, ComputerReactionRange = 6, PersonReactionRange = 4,
  Armor = 2, BasicDamage = 6, PiercingDamage = 3, Missile = "missile-none",
 -- Armor-Type = "weak-carapace",
  MaxAttackRange = 1,
  Priority = 60,
  Points = 50,
  Demand = 1,
  --Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "footman-selected",
    "acknowledge", "footman-acknowledge",
    "ready", "footman-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "footman-attack"} } )

DefineUnitType("unit-worker", { Name = "Worker",
  Files = {"tileset-summer", "red-ants/units/peasant.png"},
  Size = {72, 72},
  DrawLevel = 19,
  Animations = "animations-red-ant-worker", Icon = "icon-red-ant-worker",
  --Costs = {"time", 45, "sugar", 400, "eggs", 1},
  Costs = {"time", 45, "sugar", 400},
  --Costs = {"time", 45, "sugar", 400},
  Speed = 10,
  HitPoints = 30,
  TileSize = {1, 1}, BoxSize = {31, 31},
  DrawLevel = 40, SightRange = 4, ComputerReactionRange = 6, PersonReactionRange = 4,
  BasicDamage = 3, PiercingDamage = 2, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 50,
  Points = 30,
  Demand = 1,
  RepairRange = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "harvest",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  Coward = true,
  CanGatherResources = {
   {"file-when-loaded", "red-ants/units/peasant_with_gold.png",
    "resource-id", "sugar",
    "harvest-from-outside",
    "resource-capacity", 100,
    "wait-at-resource", 150,
    "wait-at-depot", 150},
   {"file-when-loaded", "red-ants/units/peasant_with_wood.png",
    "resource-id", "wood",
  "harvest-from-outside",
    "resource-capacity", 100,
    "resource-step", 10,
    "wait-at-resource", 24,
    "wait-at-depot", 150
--,
    --"lose-resources"
---,"terrain-harvester"
},
   {"file-when-loaded", "red-ants/units/peasant_with_gold.png",
    "resource-id", "eggs",
    "harvest-from-outside",
    "resource-capacity", 1,
    "wait-at-resource", 10,
    "wait-at-depot", 10}
    },
    
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "red-ant-worker-selected",
    "acknowledge", "red-ant-worker-acknowledge",
    "ready", "red-ant-worker-ready",
    "harvest", "wood", "tree chopping",
    "harvest", "sugar", "tree chopping",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "red-ant-worker-attack"} } )

-- Advanced Worker Level 1
------------------------------------------------------------------------------
DefineUnitType("unit-worker1", { Name = "Advanced Worker",
Files = {"tileset-summer", "red-ants/units/peasant.png"},
  Size = {72, 72},
  DrawLevel = 19,
  Animations = "animations-red-ant-worker", Icon = "icon-red-ant-worker",
  Costs = {"time", 45, "sugar", 400},
  Speed = 10,
  HitPoints = 35,
  TileSize = {1, 1}, BoxSize = {31, 31},
  DrawLevel = 40, SightRange = 4, ComputerReactionRange = 6, PersonReactionRange = 4,
  BasicDamage = 3, PiercingDamage = 2, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 50,
  Points = 30,
  Demand = 1,
  RepairRange = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "harvest",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  Coward = true,
  CanGatherResources = {
   {"file-when-loaded", "red-ants/units/peasant_with_gold.png",
    "resource-id", "sugar",
    "harvest-from-outside",
    "resource-capacity", 200,
    "wait-at-resource", 150,
    "wait-at-depot", 150},
   {"file-when-loaded", "red-ants/units/peasant_with_wood.png",
    "resource-id", "wood",
"harvest-from-outside",
    "resource-capacity", 200,
    "resource-step", 25,
    "wait-at-resource", 24,
    "wait-at-depot", 150
--, --"lose-resources"
--,  "terrain-harvester"
}},
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "red-ant-worker-selected",
    "acknowledge", "red-ant-worker-acknowledge",
    "ready", "red-ant-worker-ready",
    "harvest", "wood", "tree chopping",
    "help", "basic human voices help 1",
    "dead", "basic human voices dead",
    "attack", "peasant-attack"} } )



DefineUnitType("unit-tank", { Name = "Tank",
  Files = {"tileset-summer", "red-ants/units/ballista.png"},
  Size = {80, 80},
  Animations = "animations-tank", Icon = "icon-tank",
  Costs = {"time", 250, "sugar", 900, "wood", 300},
  Speed = 5,
  HitPoints = 110,
  TileSize = {1, 1}, BoxSize = {64, 64},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 11, PersonReactionRange = 9,
  BasicDamage = 80, PiercingDamage = 0, Missile = "missile-ballista-bolt",
  MinAttackRange = 1, MaxAttackRange = 8,
  Priority = 70,
  Points = 100,
  Demand = 1,
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  RightMouseAction = "attack",
  CanGroundAttack = true,
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "ballista-selected",
    "acknowledge", "ballista-acknowledge",
    "ready", "ballista-ready",
    "help", "basic alliance voices help 1",
    "dead", "explosion",
    "attack", "ballista-attack"} } )

DefineUnitType("unit-knight", { Name = "Knight",
  Files = {"tileset-summer", "red-ants/units/knight.png"},
  Size = {72, 72},
  Animations = "animations-knight", Icon = "icon-knight",
  Costs = {"time", 90, "sugar", 800, "wood", 100},
  Speed = 13,
  HitPoints = 90,
  TileSize = {1, 1}, BoxSize = {42, 42},
  DrawLevel = 40, SightRange = 4, ComputerReactionRange = 6, PersonReactionRange = 4,
  Armor = 4, BasicDamage = 8, PiercingDamage = 4, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 63,
  Points = 100,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "knight-selected",
    "acknowledge", "knight-acknowledge",
    "ready", "knight-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "knight-attack"} } )

DefineUnitType("unit-archer", { Name = "Archer",
  Files = {"tileset-summer", "red-ants/units/archer.png"},
  Size = {72, 72},
  Animations = "animations-archer", Icon = "icon-archer",
  Costs = {"time", 70, "sugar", 500, "wood", 50},
  Speed = 10,
  HitPoints = 40,
  TileSize = {1, 1}, BoxSize = {33, 33},
  DrawLevel = 40, SightRange = 5, ComputerReactionRange = 7, PersonReactionRange = 5,
  BasicDamage = 3, PiercingDamage = 6, Missile = "missile-arrow",
  MaxAttackRange = 4,
  Priority = 55,
  Points = 60,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "archer-selected",
    "acknowledge", "archer-acknowledge",
    "ready", "archer-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "archer-attack"} } )

DefineUnitType("unit-witch", { Name = "Witch",
  Files = {"tileset-summer", "red-ants/units/mage.png"},
  Size = {72, 72},
  Animations = "animations-witch", Icon = "icon-witch",
  Costs = {"time", 120, "sugar", 1100},
  Speed = 8,
  HitPoints = 60,
  MaxMana = 255,
  --"magic", 1
  TileSize = {1, 1}, BoxSize = {33, 33},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 11, PersonReactionRange = 9,
  BasicDamage = 0, PiercingDamage = 9, Missile = "missile-lightning",
  MaxAttackRange = 2,
  Priority = 70,
  Points = 100,
  Demand = 1,
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  CanCastSpell = {"spell-rain",
      "spell-polymorph"},
  LandUnit = true,
  Coward = true,
  organic = true,
  SelectableByRectangle = true,
  AutoCastActive = {"spell-polymorph"},
  Sounds = {
    "selected", "mage-selected",
    "acknowledge", "mage-acknowledge",
    "ready", "mage-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "mage-attack"} } )

DefineUnitType("unit-advanced-knight", { Name = "Advanced Knight",
  Use = "unit-knight",
  Size = {72, 72},
  Animations = "animations-knight", Icon = "icon-advanced-knight",
  Costs = {"time", 90, "sugar", 800, "wood", 100},
  Speed = 13,
  HitPoints = 90,
  MaxMana = 255,
  TileSize = {1, 1}, BoxSize = {42, 42},
  DrawLevel = 40, SightRange = 5, ComputerReactionRange = 7, PersonReactionRange = 5,
  Armor = 4, BasicDamage = 8, PiercingDamage = 4, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 65,
  Points = 110,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "paladin-selected",
    "acknowledge", "paladin-acknowledge",
    "ready", "paladin-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "paladin-attack"} } )


DefineUnitType("unit-dynamite-ant", { Name = "Dynamite Ant",
  Files = {"tileset-summer", "red-ants/units/demolition_squad.png"},
  Size = {56, 56},
  Animations = "animations-dynamite-ant", Icon = "icon-dynamite-ant",
  Costs = {"time", 200, "sugar", 700, "wood", 250},
  Speed = 11,
  HitPoints = 40,
  TileSize = {1, 1}, BoxSize = {32, 32},
  DrawLevel = 40, SightRange = 4, ComputerReactionRange = 4, PersonReactionRange = 2,
  BasicDamage = 4, PiercingDamage = 2, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 55,
  Points = 100,
  Demand = 1,
  Type = "land",
ExplodeWhenKilled = "missile-explosion",
  RightMouseAction = "spell-cast",
  CanCastSpell = {"spell-suicide-bomber"},
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  volatile = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "dwarves-selected",
    "acknowledge", "dwarves-acknowledge",
    "ready", "dwarves-ready",
    "help", "basic alliance voices help 1",
    "dead", "explosion",
    "attack", "dwarves-attack"} } )

DefineUnitType("unit-advanced-archer", { Name = "Ranger",
  Use = "unit-archer",
  Size = {72, 72},
  Animations = "animations-archer", Icon = "icon-advanced-archer",
  Costs = {"time", 70, "sugar", 500, "wood", 50},
  Speed = 10,
  HitPoints = 50,
  TileSize = {1, 1}, BoxSize = {33, 33},
  DrawLevel = 40, SightRange = 6, ComputerReactionRange = 9, PersonReactionRange = 6,
  BasicDamage = 3, PiercingDamage = 6, Missile = "missile-arrow",
  MaxAttackRange = 4,
  Priority = 57,
  Points = 70,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "ranger-selected",
    "acknowledge", "ranger-acknowledge",
    "ready", "ranger-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "ranger-attack"} } )

DefineUnitType("unit-flying-angle", { Name = "Flying Ant",
  Files = {"tileset-summer", "red-ants/units/gryphon_rider.png"},
  Size = {80, 80},
  Animations = "animations-flying-angle", Icon = "icon-blank93",
  Costs = {"time", 250, "sugar", 2500},
  Speed = 14,
  HitPoints = 250,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 8, PersonReactionRange = 6,
  Armor = 6, BasicDamage = 0, PiercingDamage = 25, Missile = "missile-griffon-hammer",
  MaxAttackRange = 5,
  Priority = 65,
  Points = 150,
  Demand = 1,
  Type = "fly",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  AirUnit = true,
  DetectCloak = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "flying-angle-selected",
    "acknowledge", "flying-angle-acknowledge",
    "ready", "flying-angle-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "flying-angle-attack"} } )

DefineUnitType("unit-plancton-collector", { Name = "Plancton Collector",
  Files = {"tileset-summer", "red-ants/units/oil_tanker_empty.png"},
  Size = {72, 72},
  Animations = "animations-plancton-collector", Icon = "icon-plancton-collector",
  Costs = {"time", 50, "sugar", 400, "wood", 200},
  Speed = 10,
  HitPoints = 90,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 4,
  Armor = 10, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 50, AnnoyComputerFactor = 10,
  Points = 40,
  Demand = 1,
  Corpse = {"unit-dead-body", 12},
  Type = "naval",
  RightMouseAction = "harvest",
  SeaUnit = true,
  Coward = true,
  CanGatherResources = {
   {"file-when-empty", "red-ants/units/oil_tanker_empty.png",
    "file-when-loaded", "red-ants/units/oil_tanker_full.png",
    "resource-id", "plancton",
    "resource-capacity", 100,
    "wait-at-resource", 100,
    "wait-at-depot", 100}},
  SelectableByRectangle = true,
  Sounds = {
    "selected", "alliance-oil-tanker-selected",
    "acknowledge", "alliance-oil-tanker-acknowledge",
    "ready", "alliance-oil-tanker-ready",
    "help", "basic alliance voices help 1",
    "dead", "ship sinking",
    "attack", "alliance-oil-tanker-attack"} } )

DefineUnitType("unit-shuttle", { Name = "Shuttle",
  Files = {"tileset-summer", "red-ants/units/transport.png"},
  Size = {72, 72},
  Animations = "animations-shuttle", Icon = "icon-shuttle",
  Costs = {"time", 70, "sugar", 600, "wood", 200, "plancton", 500},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  Speed = 10,
  HitPoints = 150,
  MaxOnBoard = 6,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 4,
  BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 70, AnnoyComputerFactor = 15,
  Points = 50,
  Demand = 1,
  Corpse = {"unit-dead-body", 12},
  Type = "naval",
  RightMouseAction = "sail",
  SeaUnit = true,
  Transporter = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "alliance-transport-selected",
    "acknowledge", "alliance-transport-acknowledge",
    "ready", "alliance-transport-ready",
    "help", "basic alliance voices help 1",
    "dead", "ship sinking",
    "attack", "alliance-transport-attack"} } )

DefineUnitType("unit-gunboat", { Name = "Gunboat",
  Files = {"tileset-summer", "red-ants/units/alliance_destroyer.png"},
  Size = {80, 88},
  Shadow = {"file", "red-ants/units/shadow_alliance_destroyer.png", "size", {80, 88}, "offset", {0, 0}},
  Animations = "animations-gunboat", Icon = "icon-gunboat",
  Costs = {"time", 90, "sugar", 700, "wood", 350, "plancton", 700},
  Speed = 10,
  HitPoints = 100,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 8, ComputerReactionRange = 10, PersonReactionRange = 8,
  Armor = 10, BasicDamage = 35, PiercingDamage = 0, Missile = "missile-big-cannon",
  MaxAttackRange = 4,
  Priority = 65, AnnoyComputerFactor = 20,
  Points = 150,
  Demand = 1,
  Corpse = {"unit-dead-body", 12},
  Type = "naval",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  SeaUnit = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "alliance-destroyer-selected",
    "acknowledge", "alliance-destroyer-acknowledge",
    "ready", "alliance-destroyer-ready",
    "help", "basic alliance voices help 1",
    "dead", "ship sinking",
    "attack", "alliance-destroyer-attack"} } )

DefineUnitType("unit-gallion", { Name = "Gallion",
  Files = {"tileset-summer", "red-ants/units/battleship.png"},
  Size = {88, 88},
  Shadow = {"file", "red-ants/units/shadow_battleship.png", "size", {88, 88}, offset, {0, 0}},
  Animations = "animations-gallion", Icon = "icon-gallion",
  Costs = {"time", 140, "sugar", 1000, "wood", 500, "plancton", 1000},
  Speed = 6,
  HitPoints = 150,
  TileSize = {1, 1}, BoxSize = {70, 70},
  DrawLevel = 40, SightRange = 11, ComputerReactionRange = 10, PersonReactionRange = 9,
  Armor = 15, BasicDamage = 130, PiercingDamage = 6, Missile = "missile-big-cannon",
  MaxAttackRange = 10,
  Priority = 63, AnnoyComputerFactor = 25,
  Points = 300,
  Demand = 1,
  Corpse = {"unit-dead-body", 12},
  Type = "naval",
  RightMouseAction = "attack",
  CanGroundAttack = true,
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true,
  SeaUnit = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "battleship-selected",
    "acknowledge", "battleship-acknowledge",
    "ready", "battleship-ready",
    "help", "basic alliance voices help 1",
    "dead", "ship sinking",
    "attack", "battleship-attack"} } )

DefineUnitType("unit-submarine", { Name = "Submarine",
  Files = {"tileset-summer", "red-ants/units/submarine.png"},
  Size = {72, 72},
  Animations = "animations-submarine", Icon = "icon-submarine",
  Costs = {"time", 100, "sugar", 800, "wood", 150, "plancton", 900},
  Speed = 7,
  HitPoints = 60,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 30, SightRange = 5, ComputerReactionRange = 7, PersonReactionRange = 5,
  BasicDamage = 50, PiercingDamage = 0, Missile = "missile-submarine-missile",
  MaxAttackRange = 4,
  Priority = 60, AnnoyComputerFactor = 20,
  Points = 120,
  Demand = 1,
  --Corpse = {"unit-dead-body", 12},
  Type = "naval",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetSea = true,
  SeaUnit = true,
  PermanentCloak = true,
  DetectCloak = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "alliance-submarine-selected",
    "acknowledge", "alliance-submarine-acknowledge",
    "ready", "alliance-submarine-ready",
    "help", "basic alliance voices help 1",
    "dead", "ship sinking",
    "attack", "alliance-submarine-attack"} } )

DefineUnitType("unit-flying-ant", { Name = "Flying Ant",
  Files = {"tileset-summer", "red-ants/units/balloon.png"},
  Size = {80, 80},
  Shadow = {"file", "red-ants/units/balloon.png", "size", {80, 80}, "offset", {0, 42}},
  Animations = "animations-flying-ant", Icon = "icon-flying-ant",
  Costs = {"time", 65, "sugar", 500, "wood", 100},
  Speed = 17,
  HitPoints = 150,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 60, SightRange = 9, ComputerReactionRange = 19, PersonReactionRange = 15,
  Armor = 2, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 40,
  Points = 40,
  Demand = 1,
  Type = "fly",
  RightMouseAction = "move",
  AirUnit = true, Coward = true,
  PermanentCloak = true,
  DetectCloak = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "balloon-selected",
    "acknowledge", "balloon-acknowledge",
    "ready", "balloon-ready",
    "help", "basic alliance voices help 1",
    "dead", "explosion",
    "attack", "balloon-attack"} } )

DefineUnitType("unit-dragonfly", { Name = "Dragon Fly",
  Use = "unit-flying-angle",
  Size = {80, 80},
  Animations = "animations-flying-angle", Icon = "icon-blank14fly",
  Costs = {"time", 250, "sugar", 2500},
  Speed = 14,
  HitPoints = 100,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 6, ComputerReactionRange = 8, PersonReactionRange = 6,
  Armor = 5, BasicDamage = 0, PiercingDamage = 16, Missile = "missile-griffon-hammer",
  MaxAttackRange = 4,
  Priority = 65,
  Points = 150,
  Demand = 1,
  Type = "fly",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  AirUnit = true,
  DetectCloak = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "gryphon-rider-selected",
    "acknowledge", "gryphon-rider-acknowledge",
    "ready", "gryphon-rider-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "gryphon-rider-attack"} } )

DefineUnitType("unit-knight-rider", { Name = "Knight Rider",
  Use = "unit-knight",
  Size = {72, 72},
  Animations = "animations-knight", Icon = "icon-blank97",
  Costs = {"time", 90, "sugar", 800, "wood", 100},
  Speed = 13,
  HitPoints = 100,
  MaxMana = 255,
  TileSize = {1, 1}, BoxSize = {42, 42},
  DrawLevel = 40, SightRange = 6, ComputerReactionRange = 7, PersonReactionRange = 5,
  Armor = 10, BasicDamage = 14, PiercingDamage = 5, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 65,
  Points = 110,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "land",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true,
  LandUnit = true,
  organic = true,
  SelectableByRectangle = true,
  Sounds = {
    "selected", "knight-rider-selected",
    "acknowledge", "knight-rider-acknowledge",
    "ready", "knight-rider-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "knight-rider-attack"} } )

DefineUnitType("unit-egg-collector", { Name = "Egg Collector",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/farm.png"},
  Size = {64, 64},
  Animations = "animations-building", Icon = "icon-egg-collector",
  Costs = {"time", 50, "sugar", 500, "wood", 250},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 400,
  TileSize = {2, 2}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 20, AnnoyComputerFactor = 45,
  Points = 100,
  Supply = 5,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  BurnPercent = 25, BurnDamageRate = 1,
  Building = true, VisibleUnderFog = true, 
  BuilderOutside = true,
  --GivesResource = "eggs", CanHarvest = true,
  StartingResources = 15,
  Sounds = {
    "selected", "alliance-farm-selected",
    "acknowledge", "alliance-farm-acknowledge",
    "ready", "alliance-farm-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-farm-attack"} } )


DefineUnitType("unit-barracks", { Name = "Barracks",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/barracks.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-barracks",
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_barracks.png", "size", {96, 96}, "offset", {0, 0}},
  Costs = {"time", 200, "sugar", 700, "wood", 450},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 800,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 30, AnnoyComputerFactor = 35,
  Points = 160,
  Supply = 6,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  Sounds = {
    "selected", "barracks-selected",
    "acknowledge", "alliance-barracks-acknowledge",
    "ready", "alliance-barracks-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-barracks-attack"} } )

DefineUnitType("unit-temple", { Name = "Temple",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/church.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-temple",
  Costs = {"time", 175, "sugar", 1500, "wood", 1000},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 700,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 35,
  Points = 240,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  Sounds = {
    "selected", "church-selected",
    "acknowledge", "church-acknowledge",
    "ready", "church-ready",
    "help", "basic human voices help 2",
    "dead", "building destroyed",
    "attack", "church-attack"} } )

DefineUnitType("unit-watch-tower", { Name = "Watch Tower",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/scout_tower.png"},
  Size = {64, 64},
  Animations = "animations-building", Icon = "icon-watch-tower",
  Costs = {"time", 30, "sugar", 550, "wood", 200},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 100,
  TileSize = {2, 2}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 9,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 55, AnnoyComputerFactor = 50,
  Points = 95,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  DetectCloak = true,
  Sounds = {
    "selected", "watch-tower-selected",
    "acknowledge", "alliance-watch-tower-acknowledge",
    "ready", "alliance-watch-tower-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-watch-tower-attack"} } )

DefineUnitType("unit-insect-house", { Name = "Insect House",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/stables.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-insect-house",
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_stables.png", "size", {96, 96}, "offset", {0, 0}},
  Costs = {"time", 75, "sugar", 1000, "wood", 300},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 500,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 15,
  Points = 210,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Sounds = {
    "selected", "insect-house-selected",
    "acknowledge", "stables-acknowledge",
    "ready", "stables-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "stables-attack"} } )

DefineUnitType("unit-alchemist", { Name = "Alchemist",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/inventor.png"},
  Size = {96, 96},
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_inventor.png", "size", {96, 96}, "offset", {0, 0}},
  Animations = "animations-building", Icon = "icon-alchemist",
  Costs = {"time", 75, "sugar", 1000, "wood", 700},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 500,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 20,
  Points = 230,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Sounds = {
    "selected", "alchemist-selected",
    "acknowledge", "inventor-acknowledge",
    "ready", "inventor-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "inventor-attack"} } )

DefineUnitType("unit-flying-house", { Name = "Flying House",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/gryphon_aviary.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-flying-house",
  Costs = {"time", 75, "sugar", 1000, "wood", 400},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 500,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 20,
  Points = 280,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Sounds = {
    "selected", "flying-house-selected",
    "acknowledge", "gryphon-aviary-acknowledge",
    "ready", "gryphon-aviary-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "gryphon-aviary-attack"} } )

DefineUnitType("unit-dock", { Name = "Dock",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/shipyard.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-dock",
  Costs = {"time", 100, "sugar", 800, "wood", 450},
  Construction = "construction-alliance-shipyard",
  Speed = 0,
  HitPoints = 1100,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 30, AnnoyComputerFactor = 20,
  Points = 170,
  Corpse = {"unit-destroyed-3x3-place", 3},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  ShoreBuilding = true,
  CanStore = {"plancton"},
  Sounds = {
    "selected", "dock-selected",
    "acknowledge", "alliance-shipyard-acknowledge",
    "ready", "alliance-shipyard-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-shipyard-attack"} } )

DefineUnitType("unit-wood-house", { Name = "StoreHouse",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/alliance_lumber_mill.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-wood-house",
  Costs = {"time", 75, "sugar", 600, "wood", 450},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 600,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 25, AnnoyComputerFactor = 15,
  Points = 150,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  CanStore = {"wood", "sugar"},
  Sounds = {
    "selected", "store-house-selected",
    "acknowledge", "elven-lumber-mill-acknowledge",
    "ready", "elven-lumber-mill-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "elven-lumber-mill-attack"} } )

DefineUnitType("unit-foundry", { Name = "Foundry",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/foundry.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-foundry",
  Costs = {"time", 90, "sugar", 700, "wood", 400, "plancton", 400},
  Construction = "construction-alliance-foundry",
  Speed = 0,
  HitPoints = 750,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 20,
  Points = 200,
  Corpse = {"unit-destroyed-3x3-place", 3},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  ShoreBuilding = true,
  Sounds = {
    "selected", "foundry-selected",
    "acknowledge", "alliance-foundry-acknowledge",
    "ready", "alliance-foundry-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-foundry-attack"} } )

DefineUnitType("unit-queen", { Name = "Queen",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/town_hall.png"},
  Size = {128, 128},
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_townhall.png", "size", {128, 128}, "offset", {0, 0}},
  Animations = "animations-building", Icon = "icon-queen",
  Costs = {"time", 100, "sugar", 1500, "wood", 1000},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 1200,
  TileSize = {4, 4}, BoxSize = {126, 126},
  DrawLevel = 40, SightRange = 4,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 35, AnnoyComputerFactor = 45,
  Points = 200,
  Supply = 15,
  Corpse = {"unit-destroyed-4x4-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 2},
  --CanStore = {"wood", "sugar", "eggs"},
  CanStore = {"wood", "sugar"},
  --Transporter = true,
  --AttackFromTransporter = true, 
  --MaxOnBoard = 4,
  Sounds = {
    "selected", "queen-selected",
    "acknowledge", "town-hall-acknowledge",
    "ready", "town-hall-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "town-hall-attack"} } )

DefineUnitType("unit-witch-tower", { Name = "Spell House",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/mage_tower.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-witch-tower",
  Costs = {"time", 60, "sugar", 1000, "wood", 200},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 500,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 35, AnnoyComputerFactor = 20,
  Points = 240,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Sounds = {
    "selected", "spell-house-selected",
    "acknowledge", "mage-tower-acknowledge",
    "ready", "mage-tower-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "mage-tower-attack"} } )

DefineUnitType("unit-blacksmith", { Name = "Blacksmith",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/blacksmith.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-blacksmith",
  Costs = {"time", 100, "sugar", 450, "wood", 450, "plancton", 100},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 775,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 15, AnnoyComputerFactor = 20,
  Points = 170,
  Corpse = {"unit-destroyed-3x3-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  Sounds = {
    "selected", "blacksmith-selected",
    "acknowledge", "alliance-blacksmith-acknowledge",
    "ready", "alliance-blacksmith-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-blacksmith-attack"} } )

DefineUnitType("unit-plancton-house", { Name = "Plancton House",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/refinery.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-plancton-house",
  Costs = {"time", 225, "sugar", 800, "wood", 350, "plancton", 200},
  Construction = "construction-alliance-refinery",
  Speed = 0,
  HitPoints = 600,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 25, AnnoyComputerFactor = 20,
  Points = 200,
  Corpse = {"unit-destroyed-3x3-place", 3},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  ShoreBuilding = true,
  CanStore = {"plancton"},
  Sounds = {
    "selected", "plancton-house-selected",
    "acknowledge", "alliance-refinery-acknowledge",
    "ready", "alliance-refinery-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-refinery-attack"} } )

DefineUnitType("unit-plancton-platform", { Name = "Plancton Platform",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/oil_platform.png"},
  Size = {96, 96},
  Animations = "animations-building", Icon = "icon-plancton-platform",
  Costs = {"time", 100, "sugar", 700, "wood", 450},
  Construction = "construction-alliance-oil-well",
  Speed = 0,
  HitPoints = 650,
  TileSize = {3, 3}, BoxSize = {95, 95},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 20, AnnoyComputerFactor = 20,
  Points = 160,
  Corpse = {"unit-destroyed-3x3-place", 3},
  ExplodeWhenKilled = "missile-explosion",
  Type = "naval",
  Building = true, VisibleUnderFog = true, 
  MustBuildOnTop = "unit-plancton-patch",
  GivesResource = "plancton", CanHarvest = true,
  Sounds = {
    "selected", "plancton-platform-selected",
    "acknowledge", "alliance-oil-platform-acknowledge",
    "ready", "alliance-oil-platform-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-oil-platform-attack"} } )

DefineUnitType("unit-queen-castle", { Name = "Queen Castle",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/keep.png"},
  Size = {128, 128},
  Animations = "animations-building", Icon = "icon-queen-castle",
  Costs = {"time", 100, "sugar", 2000, "wood", 1000, "plancton", 200},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 1400,
  TileSize = {4, 4}, BoxSize = {127, 127},
  DrawLevel = 40, SightRange = 3,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 37, AnnoyComputerFactor = 40,
  Points = 600,
  Supply = 15,
  Corpse = {"unit-destroyed-4x4-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  CanStore = {"sugar", "wood"},
  Sounds = {
    "selected", "queen-castle-selected",
    "acknowledge", "keep-acknowledge",
    "ready", "keep-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "keep-attack"} } )

DefineUnitType("unit-queen-fortress", { Name = "Queen Fortress",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/castle.png"},
  Size = {128, 128},
  Animations = "animations-building", Icon = "icon-queen-fortress",
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_castle.png", "size", {128, 128}, "offset", {0, 0}},
  Costs = {"time", 100, "sugar", 2500, "wood", 1200, "plancton", 500},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 1600,
  TileSize = {4, 4}, BoxSize = {127, 127},
  DrawLevel = 40, SightRange = 6,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 40, AnnoyComputerFactor = 50,
  Points = 1500,
  Supply = 15,
  Corpse = {"unit-destroyed-4x4-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  BuilderOutside = true,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  CanStore = {"sugar", "wood"},
  Sounds = {
    "selected", "queen-fortress-selected",
    "acknowledge", "castle-acknowledge",
    "ready", "castle-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "castle-attack"} } )

DefineUnitType("unit-red-ants-start-location", { Name = "Start Location",
  Files = {"tileset-summer", "red-ants/x_startpoint.png"},
  Size = {32, 32},
  NumDirections = 1,
  Animations = "animations-building", Icon = "icon-cancel",
  Speed = 0,
  HitPoints = 0,
  TileSize = {1, 1}, BoxSize = {31, 31},
  DrawLevel = 40, SightRange = 0,
  BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 0,
  Demand = 1,
  Type = "land",
  Sounds = {
    "selected", "alliance-start-location-selected",
    "acknowledge", "alliance-start-location-acknowledge",
    "ready", "alliance-start-location-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-start-location-attack"} } )

DefineUnitType("unit-arrow-tower", { Name = "Arrow Tower",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/guard_tower.png"},
  Size = {64, 64},
  Animations = "animations-arrow-tower", Icon = "icon-arrow-tower",
  Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_guard_tower.png", "size", {64, 64}, "offset", {0, 0}},
  Costs = {"time", 70, "sugar", 500, "wood", 150},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 200,
  TileSize = {2, 2}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 6, PersonReactionRange = 6,
  Armor = 20, BasicDamage = 7, PiercingDamage = 12, Missile = "missile-arrow",
  MaxAttackRange = 6,
  Priority = 40, AnnoyComputerFactor = 50,
  Points = 200,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  DetectCloak = true,
  Sounds = {
    "selected", "arrow-tower-selected",
    "acknowledge", "alliance-guard-tower-acknowledge",
    "ready", "alliance-guard-tower-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-guard-tower-attack"} } )

DefineUnitType("unit-acid-tower", { Name = "Acid Tower",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/acid-tower.png"},
  Size = {64, 64},
  Animations = "animations-arrow-tower", Icon = "icon-arrow-tower",
  --Shadow = {"file", "tilesets/summer/red-ants/buildings/shadow_guard_tower.png", "size", {64, 64}, "offset", {0, 0}},
  Costs = {"time", 70, "sugar", 1200, "wood", 350},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 300,
  TileSize = {2, 2}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 6, PersonReactionRange = 6,
  Armor = 20, BasicDamage = 8, PiercingDamage = 12, Missile = "missile-acid",
  MaxAttackRange = 7,
  Priority = 50, AnnoyComputerFactor = 50,
  Points = 250,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  DetectCloak = true,
  Sounds = {
    "selected", "arrow-tower-selected",
    "acknowledge", "alliance-guard-tower-acknowledge",
    "ready", "alliance-guard-tower-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-guard-tower-attack"} } )



DefineUnitType("unit-cannon-tower", { Name = "Cannon Tower",
  Files = {"tileset-summer", "tilesets/summer/red-ants/buildings/cannon_tower.png"},
  Size = {64, 64},
  Animations = "animations-cannon-tower", Icon = "icon-cannon-tower",
  Costs = {"time", 100, "sugar", 1000, "wood", 300},
  Construction = "construction-land",
  Speed = 0,
  HitPoints = 230,
  TileSize = {2, 2}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 9, ComputerReactionRange = 7, PersonReactionRange = 7,
  Armor = 20, BasicDamage = 30, PiercingDamage = 12, Missile = "missile-big-cannon",
  MinAttackRange = 2, MaxAttackRange = 7,
  Priority = 40, AnnoyComputerFactor = 50,
  Points = 250,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true,
  Building = true, VisibleUnderFog = true, 
  BurnPercent = 25, BurnDamageRate = 1,
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  DetectCloak = true,
  Sounds = {
    "selected", "cannon-tower-selected",
    "acknowledge", "alliance-cannon-tower-acknowledge",
    "ready", "alliance-cannon-tower-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-cannon-tower-attack"} } )

DefineUnitType("unit-human-wall", { Name = "Wall",
  Files = {"tileset-summer", "tilesets/summer/neutral/buildings/wall.png"},
  Size = {32, 32},
  Animations = "animations-building", Icon = "icon-wall",
  Costs = {"time", 30, "sugar", 20, "wood", 10},
  Construction = "construction-wall",
  Speed = 0,
  HitPoints = 40,
  TileSize = {1, 1}, BoxSize = {31, 31},
  DrawLevel = 40, SightRange = 1,
  Armor = 20, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 0, AnnoyComputerFactor = 45,
  Points = 1,
  Corpse = {"unit-destroyed-1x1-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true, 
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1},
  Sounds = {
    "selected", "alliance-wall-selected",
    "acknowledge", "alliance-wall-acknowledge",
    "ready", "alliance-wall-ready",
    "help", "basic alliance voices help 2",
    "dead", "building destroyed",
    "attack", "alliance-wall-attack"} } )
