--
-- Created by IntelliJ IDEA.
-- User: RJ
-- Date: 06/02/14
-- Time: 10:22
-- To change this template use File | Settings | File Templates.
--

-- Traps definition
Traps = {};
local crateTrap = {};
crateTrap.type = "Base.TrapCrate";
crateTrap.sprite = "constructedobjects_01_3";
crateTrap.closedSprite = "constructedobjects_01_2";
crateTrap.trapStrength = 15;
table.insert(Traps, crateTrap);
local trapBox = {};
trapBox.type = "Base.TrapBox";
trapBox.sprite = "constructedobjects_01_4";
trapBox.northSprite = "constructedobjects_01_7";
trapBox.closedSprite = "constructedobjects_01_5";
trapBox.northClosedSprite = "constructedobjects_01_6";
trapBox.trapStrength = 15;
table.insert(Traps, trapBox);
local cageTrap = {};
cageTrap.type = "Base.TrapCage";
cageTrap.sprite = "constructedobjects_01_8";
cageTrap.northSprite = "constructedobjects_01_11";
cageTrap.closedSprite = "constructedobjects_01_9";
cageTrap.northClosedSprite = "constructedobjects_01_10";
cageTrap.trapStrength = 20;
table.insert(Traps, cageTrap);
local snareTrap = {};
snareTrap.type = "Base.TrapSnare";
snareTrap.sprite = "constructedobjects_01_16";
snareTrap.closedSprite = "constructedobjects_01_17";
snareTrap.trapStrength = 10;
table.insert(Traps, snareTrap);
local stickTrap = {};
stickTrap.type = "Base.TrapStick";
stickTrap.sprite = "constructedobjects_01_13";
stickTrap.closedSprite = "constructedobjects_01_13";
stickTrap.trapStrength = 15;
table.insert(Traps, stickTrap);
local mouseTrap = {};
mouseTrap.type = "Base.TrapMouse";
mouseTrap.sprite = "constructedobjects_01_18";
mouseTrap.closedSprite = "constructedobjects_01_19";
mouseTrap.trapStrength = 50;
table.insert(Traps, mouseTrap);

-- Animals definition
Animals = {};
local rabbit = {};
rabbit.type = "rabbit";
-- after how many hour the animal will start to destroy the cage/escape
rabbit.strength = 24;
-- item given to the player
rabbit.item = "Base.DeadRabbit";
-- hour this animal will be out and when you can catch it
rabbit.minHour = 19;
rabbit.maxHour = 5;
-- min and max "size" (understand hunger reduction) of the animal
rabbit.minSize = 15;
rabbit.maxSize = 60;
-- chance to get the animals per zone
rabbit.zone = {};
rabbit.zone["TownZone"] = 2;
rabbit.zone["TrailerPark"] = 2;
rabbit.zone["Vegitation"] = 10;
rabbit.zone["Forest"] = 12;
rabbit.zone["DeepForest"] = 15;
-- chance to get animals for each trap
rabbit.traps = {};
rabbit.traps["Base.TrapCage"] = 30;
rabbit.traps["Base.TrapSnare"] = 20;
rabbit.traps["Base.TrapBox"] = 20;
rabbit.traps["Base.TrapCrate"] = 20;
-- chance to attract animal per bait
rabbit.baits = {};
rabbit.baits["Base.Carrots"] = 25;
rabbit.baits["Base.Apple"] = 15;
rabbit.baits["Base.Lettuce"] = 20;
rabbit.baits["Base.BellPepper"] = 20;
rabbit.baits["farming.Cabbage"] = 20;
rabbit.baits["Base.Corn"] = 15;
rabbit.baits["Base.Banana"] = 15;
rabbit.baits["farming.Potato"] = 15;
rabbit.baits["farming.Tomato"] = 15;
rabbit.baits["Base.Peach"] = 15;

local squirrel = {};
squirrel.type = "squirrel";
squirrel.strength = 20;
squirrel.item = "Base.DeadSquirrel";
squirrel.minHour = 19;
squirrel.maxHour = 5;
squirrel.minSize = 10;
squirrel.maxSize = 30;
squirrel.zone = {};
squirrel.zone["TownZone"] = 2;
squirrel.zone["TrailerPark"] = 2;
squirrel.zone["Vegitation"] = 10;
squirrel.zone["Forest"] = 12;
squirrel.zone["DeepForest"] = 15;
squirrel.traps = {};
squirrel.traps["Base.TrapBox"] = 15;
squirrel.traps["Base.TrapCage"] = 30;
squirrel.traps["Base.TrapCrate"] = 20;
squirrel.traps["Base.TrapSnare"] = 20;
squirrel.baits = {};
squirrel.baits["Base.PeanutButter"] = 25;
squirrel.baits["Base.Cereal"] = 25;
squirrel.baits["Base.Orange"] = 20;
squirrel.baits["Base.Peanuts"] = 20;
squirrel.baits["Base.Apple"] = 20;
squirrel.baits["Base.Corn"] = 20;
squirrel.baits["Base.Popcorn"] = 20;
squirrel.baits["Base.Lettuce"] = 20;
squirrel.baits["Base.BellPepper"] = 10;
squirrel.baits["Base.Peach"] = 15;

local bird = {};
bird.type = "bird";
bird.item = "Base.DeadBird";
bird.minHour = 0;
bird.maxHour = 0;
bird.minSize = 7;
bird.maxSize = 18;
bird.zone = {};
bird.zone["FarmLand"] = 35;
bird.zone["TownZone"] = 30;
bird.zone["Vegitation"] = 30;
bird.zone["TrailerPark"] = 20;
bird.zone["Forest"] = 20;
bird.zone["DeepForest"] = 20;
bird.traps = {};
bird.traps["Base.TrapStick"] = 30;
bird.baits = {};
bird.baits["Base.Bread"] = 30;
bird.baits["Base.BreadSlices"] = 30;
bird.baits["Base.Worm"] = 30;
bird.baits["Base.Corn"] = 25;
bird.baits["Base.Cereal"] = 25;

local mouse = {};
mouse.type = "mouse";
mouse.item = "Base.DeadMouse";
mouse.minHour = 0;
mouse.maxHour = 0;
mouse.minSize = 3;
mouse.maxSize = 13;
mouse.zone = {};
mouse.zone["FarmLand"] = 60;
mouse.zone["TownZone"] = 50;
mouse.zone["TrailerPark"] = 60;
mouse.zone["Vegitation"] = 20;
mouse.zone["Forest"] = 10;
mouse.zone["DeepForest"] = 10;
mouse.traps = {};
mouse.traps["Base.TrapMouse"] = 20;
mouse.baits = {};
mouse.baits["Base.Cheese"] = 40;
mouse.baits["Base.Processedcheese"] = 35;
mouse.baits["Base.PeanutButter"] = 20;
mouse.baits["farming.BaconBits"] = 20;
mouse.baits["Base.Chocolate"] = 10;
mouse.baits["Base.Orange"] = 15;
mouse.baits["farming.Apple"] = 15;
mouse.baits["farming.Tomato"] = 15;

local rat = {};
rat.type = "rat";
rat.item = "Base.DeadRat";
rat.minHour = 0;
rat.maxHour = 0;
rat.minSize = 6;
rat.maxSize = 17;
rat.zone = {};
rat.zone["FarmLand"] = 50;
rat.zone["TrailerPark"] = 40;
rat.zone["TownZone"] = 30;
rat.zone["Vegitation"] = 20;
rat.zone["Forest"] = 10;
rat.zone["DeepForest"] = 10;
rat.traps = {};
rat.traps["Base.TrapMouse"] = 15;
rat.baits = {};
rat.baits["Base.Cheese"] = 40;
rat.baits["Base.PeanutButter"] = 20;
rat.baits["farming.BaconBits"] = 20;
rat.baits["Base.Chocolate"] = 10;
rat.baits["Base.Orange"] = 15;
rat.baits["farming.Apple"] = 15;
rat.baits["farming.Tomato"] = 15;
rat.baits["Base.Processedcheese"] = 35;

table.insert(Animals, bird);
table.insert(Animals, rat);
table.insert(Animals, mouse);
table.insert(Animals, rabbit);
table.insert(Animals, squirrel);