--__________         __    __  .__           ___________
--\______   \_____ _/  |__/  |_|  |   ____   \_   _____/__________
-- |    |  _/\__  \\   __\   __\  | _/ __ \   |    __)/  _ \_  __ \
-- |    |   \ / __ \|  |  |  | |  |_\  ___/   |     \(  <_> )  | \/
-- |______  /(____  /__|  |__| |____/\___  >  \___  / \____/|__|
--        \/      \/                     \/       \/
--   _____                     .___.__
--  /     \ _____    ____    __| _/|__| ____  ___________
-- /  \ /  \\__  \  /    \  / __ | |  |/ ___\/  _ \_  __ \
--/    Y    \/ __ \|   |  \/ /_/ | |  \  \__(  <_> )  | \/
--\____|__  (____  /___|  /\____ | |__|\___  >____/|__|
--        \/     \/     \/      \/         \/

--      constructions.lua - darkness constructions
--
--      (c) Copyright 2005 by Kimmo Merikivi
--
--      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

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

DefineConstruction("construction-darkness-camp", {
  Files = {
   {Tileset = "summer",
    File = "darkness/buildings/camp.png",
    Size = {256, 256}}},
  Constructions = {
   {Percent = 0,
    File = "main",
    Frame = 6},
   {Percent = 10,
    File = "main",
    Frame = 5},
   {Percent = 25,
    File = "main",
    Frame = 4},
   {Percent = 40,
    File = "main",
    Frame = 3},
   {Percent = 60,
    File = "main",
    Frame = 2},
   {Percent = 80,
    File = "main",
    Frame = 1},
   {Percent = 90,
    File = "main",
    Frame = 0}}
})

DefineConstruction("construction-darkness-farm", {
  Files = {
   {Tileset = "summer",
    File = "darkness/buildings/farm.png",
    Size = {96, 96}}},
  Constructions = {
   {Percent = 0,
    File = "main",
    Frame = 3},
   {Percent = 35,
    File = "main",
    Frame = 2},
   {Percent = 60,
    File = "main",
    Frame = 1},
   {Percent = 80,
    File = "main",
    Frame = 0}}
})

DefineConstruction("construction-darkness-garrison", {
  Files = {
   {Tileset = "summer",
    File = "darkness/buildings/garrison.png",
    Size = {160, 160}}},
  Constructions = {
   {Percent = 0,
    File = "main",
    Frame = 4},
   {Percent = 20,
    File = "main",
    Frame = 3},
   {Percent = 35,
    File = "main",
    Frame = 2},
   {Percent = 60,
    File = "main",
    Frame = 1},
   {Percent = 80,
    File = "main",
    Frame = 0}}
})

DefineConstruction("construction-darkness-blacksmith", {
  Files = {
   {Tileset = "summer",
    File = "darkness/buildings/blacksmith.png",
    Size = {160, 160}}},
  Constructions = {
   {Percent = 0,
    File = "main",
    Frame = 4},
   {Percent = 20,
    File = "main",
    Frame = 3},
   {Percent = 35,
    File = "main",
    Frame = 2},
   {Percent = 60,
    File = "main",
    Frame = 1},
   {Percent = 80,
    File = "main",
    Frame = 0}}
})

DefineConstruction("construction-darkness-lumber-storage", {
  Files = {
   {Tileset = "summer",
    File = "darkness/buildings/lumber-storage.png",
    Size = {160, 160}}},
  Constructions = {
   {Percent = 0,
    File = "main",
    Frame = 4},
   {Percent = 20,
    File = "main",
    Frame = 3},
   {Percent = 35,
    File = "main",
    Frame = 2},
   {Percent = 60,
    File = "main",
    Frame = 1},
   {Percent = 80,
    File = "main",
    Frame = 0}}
})
