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

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

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

------------------------------------------------Alambic ------------------------------------------------

InteractiveZone
{
	name = "LD_alambic",
	positionX = 539,
	positionY = 1019,

	use_drop_position = true,
	drop_position     = { { 350, 925 } },
	action_position     = { { 354, 996 }, { 550, 820 }, { 701, 906 }, { 663, 1098 }, { 621, 1123 }, { 381, 1088 }, { 885, 1018 }, { 742, 929 } },

	unlimited = false,
	stock_max_value = G_alambic_stock,

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

StaticObject
{
	name  = "LD_alambic_trans",
	image = "backgrounds/objects/alambic_trans",
	positionX = 539,
	positionY = 1019,
    HUD_name = "LD_alambic",
    layer = Background,
}

StaticObject
{
	name = "LD_alambic_red",
	positionX = 539,
	positionY = 1019,
	image = "backgrounds/objects/alambic_red",
	visible = false,

}

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

StaticObject
{
	name = "O_alambic_red_bowl",
	positionX = 645,
	positionY = 953,
	layer = Air,
	image = "backgrounds/objects/alambic_red_bowl",
}

StaticObject
{
	name  = "O_alambic_yellow_bowl",
	image = "backgrounds/objects/alambic_yellow_bowl",
	positionX = 645,
	positionY = 953,

	layer = Air,
	
	visible = false,
}


------------------------------------------------Part 4 apporter miel à l'alambic ------------------------------------------------

InteractiveZone
{
	name  = "LD_honey_spoon_with_honey",

	positionX = -280,
	positionY = 1925,
	layer = Air,
	visible = false,
    HUD_name = "LD_honey_spoon",
	
	use_drop_position = true,
	drop_position     = { { -413, 1921 }, { -394, 1864 }, { -364, 1835 }, { -313, 1820 }, { -279, 1840 }},

	unlimited = true,
	
	Image
	{
		file = "backgrounds/objects/honey_spoon_with_honey",
	    minimum_percent = 0,
	},
}

DepositZone
{
	name = "LD_alambic_deposit_honey",
	positionX = 792,
	positionY = 1107,
	use_drop_position = true,
	drop_as_action = true,
	drop_position     = { { 876, 994 }, { 933, 1057 }, { 945, 1110 } , { 937, 1180 }, { 845, 1209 }, { 774, 1209 }, { 697, 1185 }},

	visible = false,

	HUD_name = "LD_alambic",
	stock_max_value = G_alambic_honey_stock,
	current_stock = 0,

	Image
	{
		file = "backgrounds/empty",
		minimum_percent = 0,
	},
}
------------------------------------------------Part 5 apporter des fleurs à l'alambic ------------------------------------------------

InteractiveZone
{
	name  = "LD_swamp_with_flowers",
	positionX = 1348,
	positionY = 1459,
	layer = Air,
	visible = false,
	
	use_drop_position = true,
	drop_position     = { { 1083, 1420 }, { 1032, 1552 }, { 1258, 1352 }, { 1253, 1521 }, { 1555, 1440 }},

	unlimited = true,
	visible = false,
	Image
	{
		file = "backgrounds/dance_drop",
		minimum_percent = 0,
	},
}

DepositZone
{
	name = "LD_alambic_deposit_flower",
	positionX = 792,
	positionY = 1080,
	use_drop_position = true,
	drop_as_action = true,
	drop_position     = { { 876, 994 }, { 933, 1057 }, { 945, 1110 } , { 937, 1180 }, { 845, 1209 }, { 774, 1209 }, { 697, 1185 }},

	visible = false,
	HUD_name = "LD_alambic",
	stock_max_value = G_alambic_flower_stock,
	current_stock = 0,

	Image
	{
		file = "backgrounds/empty",
		minimum_percent = 0,
	},
}
------------------------------------------------Part 6 : Distiller le sirop ------------------------------------------------
InteractiveZone
{
	name = "LD_alambic_distillation",
	positionX = 539,
	positionY = 1019,

	use_drop_position = true,
	drop_position     = { { 487, 1122 }, { 563, 1157 } },
	action_position     = { { 354, 996 }, { 550, 820 }, { 701, 906 }, { 663, 1098 }, { 621, 1123 }, { 381, 1088 }, { 885, 1018 }, { 742, 929 } },

	visible = false,
	unlimited = false,
	stock_max_value = G_alambic_distillation_stock,

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

------------------------------------------------------------------------------------------------
------------------------------------------------Honey Queen------------------------------------------------


StaticObject
{
	name = "LD_flower_left",
	positionX = -370,
	positionY = 1370,
	image = "backgrounds/objects/flower_left",
}

StaticObject
{
	name = "LD_flower_right",
	positionX = 270,
	positionY = 1380,
	image = "backgrounds/objects/flower_right",
}

StaticObject
{
	name  = "O_flower_left_B",
	image = "backgrounds/overlays/overlay_flower_left_b",
	positionX = -178,
	positionY = 1508,
	visible = false,

	layer = Characters,
}

StaticObject
{
	name  = "O_flower_left_rotten",
	image = "backgrounds/overlays/overlay_flower_left_rotten",
	positionX = -178,
	positionY = 1508,

	layer = Characters,
}

StaticObject
{
	name  = "O_flower_right_A",
	image = "backgrounds/overlays/overlay_flower_right_a",
	positionX = 329,
	positionY = 1271,
	use_ref_point_y = true,
	ref_point_y = 120,
	visible = false,

	layer = Characters,
}

StaticObject
{
	name  = "O_flower_right_rotten",
	image = "backgrounds/overlays/overlay_flower_right_rotten",
	positionX = 329,
	positionY = 1271,
	use_ref_point_y = true,
	ref_point_y = 120,

	layer = Characters,
}

AnimatedObject
{
	name = "LD_beeflower_anim",    -- nom de la source
	positionX = -550,
	positionY = 1350,

	animations = { { animation = "anim/objects/beeflowerstatic1.xml", script = "anim/objects/beeflowerstatic.lua" } , { animation = "anim/objects/beeflowerstatic2.xml", script = "anim/objects/beeflowerstatic.lua" }, { animation = "anim/objects/beeflower.xml", script = "anim/objects/beeflower.lua" }, { animation = "anim/objects/beeflowerstatic5.xml", script = "anim/objects/beeflowerstatic.lua" } },
	defaultanimation = 0,
}

InteractiveZone
{
	name = "LD_beeflower",
	positionX = -575,
	positionY = 1290,

	use_drop_position = true,
	drop_position     = { {-544, 1226}, {-610, 1231} },
	action_position     = { {-492, 1234},   {-655, 1256}, {-681, 1280} },

	visible = false,
	unlimited = false,
	stock_max_value = G_beeflower_stock,

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



------------------------------------------------------------------------------------------------
------------------------------------------------Honey Spoon------------------------------------------------

InteractiveZone
{
	name = "LD_honey_spoon",
	positionX = -380,
	positionY = 1920,

	use_drop_position = true,
	drop_position     = { {-521, 1917}, {-483, 1863}, {-432, 1855} },
	action_position     = { {-238, 1861}, {-185, 1897}, {-371, 1864},  {-167, 1905} },

	unlimited = false,
	stock_max_value = G_honey_spoon_stock,

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


StaticObject
{
	name = "LD_honey_spoon_repaired_bg",
	positionX = -380,
	positionY = 1920,
	image = "backgrounds/objects/honey_spoon_repaired_bg",
	visible = false,
}

StaticObject
{
	name  = "LD_honey_spoon_handle",
	image = "backgrounds/objects/honey_spoon_handle",
	positionX = 45,
	positionY = 2026,
	layer = Characters,
	use_ref_point_y = true,
	ref_point_y = 112,
	--HUD_name = "LD_honey_spoon",
}

StaticObject
{
	name  = "LD_honey_spoon_broken",
	image = "backgrounds/objects/honey_spoon_broken",
	positionX = -244,
	positionY = 1934,
	layer = Air,
}

StaticObject
{
	name  = "LD_honey_spoon_repaired",
	image = "backgrounds/objects/honey_spoon_repaired",
	positionX = -332,
	positionY = 1919,
	layer = Air,
	visible = false,
    HUD_name = "LD_honey_spoon",
}



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