
---icons.lua
DefineIcon({
  Name = "icon-hole",
  Tileset = "tileset-summer",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/tunnel_exit_icon.png"})
DefineIcon({
  Name = "icon-hole",
  Tileset = "tileset-winter",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/tunnel_exit_icon.png"})
DefineIcon({
  Name = "icon-hole",
  Tileset = "tileset-wasteland",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/tunnel_exit_icon.png"})
DefineIcon({
  Name = "icon-hole",
  Tileset = "tileset-swamp",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/tunnel_exit_icon.png"})

-------------------------------------




--====================================================================================

DefineUnitType("unit-hole", { Name = "Tunnel Hole",
  Files = {"tileset-summer", "neutral/buildings/circle_of_power.png"},
  Size = {64, 64},
  Animations = "animations-building", Icon = "icon-hole",
  Speed = 0,
  HitPoints = 0,
  TileSize = {2, 2}, BoxSize = {63, 63},
  SightRange = 0,
  BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 0,
  Corpse = {"unit-destroyed-2x2-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  Building = true, VisibleUnderFog = true,
  Sounds = {
    "selected", "circle-of-power-selected",
    "acknowledge", "circle-of-power-acknowledge",
    "ready", "circle-of-power-ready",
    "help", "basic human voices help 2",
    "dead", "building destroyed",
    "attack", "circle-of-power-attack"} } )

DefineUnitType("unit-tunnel", { Name = "Tunnel Entry",
  Files = {"tileset-summer", "tilesets/summer/neutral/buildings/dark_portal.png"},
  Size = {128, 128},
  Animations = "animations-building", Icon = "icon-tunnel",
  Costs = {"time", 100, "sugar", 3000, "wood", 500},
  RepairHp = 4,
  RepairCosts = {"sugar", 1, "wood", 1, "plancton", 1},
  Construction = "construction-land2",
  Speed = 0,
  HitPoints = 500,
 -- MaxMana = 255,
  TileSize = {4, 4}, BoxSize = {127, 127},
  SightRange = 15,
  BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 0,
  Corpse = {"unit-destroyed-4x4-place", 0},
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  CanCastSpell = {"spell-spawn-tunnel-exit"},
  Building = true, VisibleUnderFog = true,
  Teleporter = true,
  Sounds = {
    "selected", "tunnel-selected",
    "acknowledge", "dark-portal-acknowledge",
    "ready", "dark-portal-ready",
    "help", "basic orc voices help 2",
    "dead", "building destroyed",
    "attack", "dark-portal-attack"} } )

--====================================================================================
---upgrade.lua

DefineAllow("unit-tunnel",              "FFFFFFFFFFFFFFFF")
DefineDependency("unit-tunnel",                 {"unit-queen-fortress"})

--====================================================================================
---fonts.lua
-- Nothing to add

--====================================================================================
---buttons.lua

DefineButton( { Pos = 4, Level = 3, Icon = "icon-tunnel",
  Action = "build", Value = "unit-tunnel",
  Key = "t", Hint = "BUILD ~!TUNNEL ENTRY",
  ForUnit = {"unit-worker", "unit-worker1"} } )

DefineButton( { Pos = 1, Level = 0, Icon = "icon-hole",
  Action = "cast-spell", Value = "spell-spawn-tunnel-exit",
  Allowed = "check-true", 
  Key = "x", Hint = "TUNNEL E~!XIT",
  ForUnit = {"unit-tunnel"} } )





---ui.lua
-- Nothing to add

---ai.lua
-- Complex to add

---campaigns.lua
-- Complex to add

---credits.lua
-- Nothing to add

---tips.lua
-- Nothing to add

---ranks.lua
-- Nothing to add

---menus.lua
-- Nothing to add

---cheats.lua
-- Nothing to add
