------------------------------------------------Variables------------------------------------------------

require( "package/leveldesign/ld_variables_define.lua" );
DebugOut( "create elements for main quests (file : package/leveldesign/ld_swamp.lua)" );

-----------------------------------------------------------------------------------------------
-----------------------------------------------Watering can------------------------------------------------
InteractiveZone
{
	name = "LD_watering_can",
	positionX = -473,
	positionY = 1510,

	use_drop_position = true,
	drop_position     = { {-413, 1509}, {-451, 1530} },
	action_position     = { {-511, 1564}, {-481, 1546},  {-401, 1483}, {-402, 1458}, {-458, 1461} },

	unlimited = false,
	stock_max_value = G_watering_can_stock,

	Image
	{
		file = "backgrounds/empty",
	    minimum_percent = 1,
	},
	Image
	{
		file = "backgrounds/empty",
	    minimum_percent = 0,
	},
}

StaticObject
{
	name = "LD_watering_can_done",
	positionX = -473,
	positionY = 1510,
	layer = Air,
	visible = false,
	image = "backgrounds/empty",
}

AnimatedObject
{
  name = "LD_watering_can_anim",    -- nom de la source
  positionX = -445,
  positionY = 1524,
  
  animations = { { animation = "anim/objects/wateringcan.xml", script = "anim/objects/wateringcan.lua" } },
  defaultanimation = 0,
  
  visible = false,
}

StaticObject
{
	name = "LD_watering_can_cork",
	positionX = -460,
	positionY = 1485,
	layer = Air,
	image = "backgrounds/objects/watering_can_cork",
}

StaticObject
{
	name = "LD_dry_swamp_A",
	positionX = 1107,
	positionY = 1420,
	layer = Floor,
	image = "backgrounds/objects/dry_swamp_a",
	HUD_name = "LD_swamp",
}

StaticObject
{
	name = "LD_dry_swamp_B",
	positionX = 1652,
	positionY = 1375,
	layer = Floor,
	image = "backgrounds/objects/dry_swamp_b",
	HUD_name = "LD_swamp",
}

AnimatedObject
{
	name = "LD_waterreflect_watering_can_01",    -- nom de la source
	positionX = -385,
	positionY = 1498,

	animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
	defaultanimation = 0,
	visible = false,
}

AnimatedObject
{
	name = "LD_waterreflect_watering_can_02",    -- nom de la source
	positionX = -333,
	positionY = 1435,

	animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
	defaultanimation = 0,
	visible = false,
}

AnimatedObject
{
	name = "LD_waterreflect_watering_can_03",    -- nom de la source
	positionX = -276,
	positionY = 1416,

	animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
	defaultanimation = 0,
	visible = false,
}

AnimatedObject
{
	name = "LD_waterreflect_watering_can_04",    -- nom de la source
	positionX = -205,
	positionY = 1460,

	animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
	defaultanimation = 0,
	visible = false,
}

AnimatedObject
{
	name = "LD_waterreflect_watering_can_05",    -- nom de la source
	positionX = -122,
	positionY = 1432,

	animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
	defaultanimation = 0,
	visible = false,
}
------------------------------------------------Swamp sage------------------------------------------------

InteractiveZone
{
	name = "LD_swamp_sage",
	positionX = 1680,
	positionY = 1327,

	use_drop_position = true,
	drop_as_action = false,
	drop_position     = { { 1616, 1353 } },
	action_position  = { { 1030, 1547 }, { 1097, 1414 }, { 1266, 1348 }, { 1259, 1524 }, { 1567, 1438 } },

	unlimited = false,
	stock_max_value = G_swamp_sage_stock,

	Image
	{
		file = "backgrounds/empty",
	    minimum_percent = 1,
	},
	Image
	{
		file = "backgrounds/empty",
	    minimum_percent = 0,
	},
	
}

InteractiveZone
{
	name = "LD_swamp_seed",
	positionX = 1280,
	positionY = 1450,

	use_drop_position = true,
	drop_as_action = false,
	drop_position    = { { 1280, 1450 } },
	action_position  = { { 1302, 1477 }, { 1337, 1459 }, { 1329, 1426 }, { 1293, 1410 }, { 1239, 1425 }, { 1235, 1470 }, { 1277, 1488 } },

	visible = false,
	unlimited = false,
	stock_max_value = G_swamp_seed_stock,

	Image
	{
		file = "backgrounds/objects/tree_seed",
	    minimum_percent = 0,
	},
	
}

StaticObject
{
  name = "LD_swamp_sage_weed1",    -- nom de la source
  layer = Characters,
  positionX = 1030,
  positionY = 1608,
  use_ref_point_y = true,
  ref_point_y = 116,
  image = "backgrounds/objects/roseaux",
  visible = false,
  HUD_name = "LD_swamp_sage_weed1",
}

StaticObject
{
  name = "LD_swamp_sage_nenuphar1",    -- nom de la source
  positionX = 1030,
  positionY = 1550,
  image = "backgrounds/objects/nenuphar",
  visible = false,
  HUD_name = "LD_swamp_flowers",
}

StaticObject
{
  name = "LD_swamp_sage_weed2",    -- nom de la source
  layer = Characters,
  positionX = 1097,
  positionY = 1472,
  use_ref_point_y = true,
  ref_point_y = 116,
  image = "backgrounds/objects/roseaux",
  visible = false,
  HUD_name = "LD_swamp_sage_weed1",
}

StaticObject
{
  name = "LD_swamp_sage_nenuphar2",    -- nom de la source
  positionX = 1097,
  positionY = 1414,
  image = "backgrounds/objects/nenuphar",
  visible = false,
  HUD_name = "LD_swamp_flowers",
}

StaticObject
{
  name = "LD_swamp_sage_weed3",    -- nom de la source
  layer = Characters,
  positionX = 1266,
  positionY = 1406,
  use_ref_point_y = true,
  ref_point_y = 116,
  image = "backgrounds/objects/roseaux",
  visible = false,
  HUD_name = "LD_swamp_sage_weed1",
}

StaticObject
{
  name = "LD_swamp_sage_nenuphar3",    -- nom de la source
  positionX = 1266,
  positionY = 1348,
  image = "backgrounds/objects/nenuphar",
  visible = false,
  HUD_name = "LD_swamp_flowers",
}

StaticObject
{
  name = "LD_swamp_sage_weed4",    -- nom de la source
  layer = Characters,
  positionX = 1259,
  positionY = 1582,
  use_ref_point_y = true,
  ref_point_y = 116,
  image = "backgrounds/objects/roseaux",
  visible = false,
  HUD_name = "LD_swamp_sage_weed1",
}

StaticObject
{
  name = "LD_swamp_sage_nenuphar4",    -- nom de la source
  positionX = 1259,
  positionY = 1524,
  image = "backgrounds/objects/nenuphar",
  visible = false,
  HUD_name = "LD_swamp_flowers",
}

StaticObject
{
  name = "LD_swamp_sage_weed5",    -- nom de la source
  layer = Characters,
  positionX = 1567,
  positionY = 1496,
  use_ref_point_y = true,
  ref_point_y = 116,
  image = "backgrounds/objects/roseaux",
  visible = false,
  HUD_name = "LD_swamp_sage_weed1",
}

StaticObject
{
  name = "LD_swamp_sage_nenuphar5",    -- nom de la source
  positionX = 1567,
  positionY = 1438,
  image = "backgrounds/objects/nenuphar",
  visible = false,
  HUD_name = "LD_swamp_flowers",
}

AnimatedObject
{
  name = "LD_waterploc_01",    -- nom de la source
  positionX = 1740,
  positionY = 1460,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_02",    -- nom de la source
  positionX = 1520,
  positionY = 1270,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_03",    -- nom de la source
  positionX = 1640,
  positionY = 1400,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_04",    -- nom de la source
  positionX = 1300,
  positionY = 1300,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_05",    -- nom de la source
  positionX = 1315,
  positionY = 1560,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_06",    -- nom de la source
  positionX = 1330,
  positionY = 1445,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_07",    -- nom de la source
  positionX = 1170,
  positionY = 1570,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_08",    -- nom de la source
  positionX = 1175,
  positionY = 1365,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_09",    -- nom de la source
  positionX = 1050,
  positionY = 1450,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

AnimatedObject
{
  name = "LD_waterploc_10",    -- nom de la source
  positionX = 900,
  positionY = 1360,
  
  animations = { { animation = "anim/objects/waterploc.xml", script = "anim/objects/waterploc.lua" } },
  defaultanimation = 0,
  visible = false,
}

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