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

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

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

------------------------------------------------Verb Crystal------------------------------------------------

InteractiveZone
{
name = "LD_verb_crystal",
positionX = -480,
positionY = 550,

use_drop_position = true,
drop_position   = { { -405, 552 } },
action_position = { { -497, 588 }, { -446, 579 }, { -445, 544 }, { -465, 511 }, { -515, 520 } },

unlimited = false,
stock_max_value = G_verb_crystal_stock,

	Image
	{
		file = "backgrounds/objects/verbcrystal_durty",
	    minimum_percent = 0.00001,
	},
	Image
	{
		file = "backgrounds/objects/verbcrystal_clean",
	    minimum_percent = 0,
	},

}

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

------------------------------------------------Mill------------------------------------------------

InteractiveZone
{
  name = "LD_broken_mill",    -- nom de la source
  label = "broken_mill",
  positionX = 822,
  positionY = 225,
  
  use_drop_position = true,     -- quand un objet en interaction est posé sur la source, il est repositionné vers le point suivant
  drop_position     = { { 849, 167 }, { 810, 148 } },
  action_position   = { { 981, -43 }, { 1087, 254 }, { 981, -43 }, { 1052, -35 }, { 1102, -29 }, { 1087, 254 }, { 1110, 235 }, { 1129, 202 } },

  unlimited = false,        -- valeur enlevée lors de la collecte d'une personne à une vitesse de 1( -1 si source infinie)
  stock_max_value = G_broken_mill_stock,        -- influence la valeur collectée par le temps de collecte

  Image
  {
    file = "backgrounds/objects/mill_broken",
    minimum_percent = 0,        -- 0 -> 100
  },
}

StaticObject
{
	name = "LD_broken_mill_fixed",
	positionX = 822,
	positionY = 225,
	visible = false,
	image = "backgrounds/empty",
	HUD_name = "LD_broken_mill",
}


AnimatedObject
{
  name = "LD_waterreflect_01",    -- nom de la source
  positionX = 430,
  positionY = 130,

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

AnimatedObject
{
  name = "LD_waterreflect_02",    -- nom de la source
  positionX = 600,
  positionY = 133,
  
  animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
  defaultanimation = 0,
}

AnimatedObject
{
  name = "LD_waterreflect_03",    -- nom de la source
  positionX = 695,
  positionY = 170,
  
  animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
  defaultanimation = 0,
}

AnimatedObject
{
  name = "LD_waterreflect_04",    -- nom de la source
  positionX = 975,
  positionY = 282,
  
  animations = { { animation = "anim/objects/waterreflect.xml", script = "anim/objects/waterreflect.lua" } },
  defaultanimation = 0,
}

AnimatedObject
{
  name = "LD_fixed_mill",    -- nom de la source
  positionX = 815,
  positionY = 218,
  visible = false,
  
  animations = { { animation = "anim/objects/mill.xml", script = "anim/objects/mill.lua" } },
  defaultanimation = 0,
}

DepositZone
{
  name = "LD_mill_stock",
  label = "mill",
  content = "fruits",
  positionX = 987,
  positionY = 190,
  
  visible = false,
  
  stock_max_value = G_mill_stock,
  use_drop_position = true,     -- quand un objet en interaction est posé sur la source, il est repositionné vers le point suivant
  drop_position     = { { 878, 146 }, { 888, 110 }, { 1092, 228 }, { 1060,256 } },
    
 Image
  {
    file = "backgrounds/objects/mill_stock_filled",
    minimum_percent = 50,
  },
  
  Image
  {
    file = "backgrounds/objects/mill_stock_half",
    minimum_percent = 25,
  },
  
  Image
  {
    file = "backgrounds/objects/mill_stock_some",
    minimum_percent = 18,
  },
  
  Image
  {
    file = "backgrounds/objects/mill_stock_one",
    minimum_percent = 0.00001,
  },
  
  Image
  {
    file = "backgrounds/objects/mill_stock_empty",
    minimum_percent = 0,
  },
}

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

------------------------------------------------Compass------------------------------------------------

InteractiveZone
{
name = "LD_compass",
positionX = -40,
positionY = 970,

use_drop_position = true,
drop_position     = { { -49, 907 } },
action_position     = {  { -146, 850 }, { -56, 821 }, { 42, 848 }, { 87, 916 }, { 52, 990 }, { -86, 1004 }, { -182, 937 } },

unlimited = false,        -- valeur enlevée lors de la collecte d'une personne à une vitesse de 1( -1 si source infinie)
stock_max_value = G_compass_stock,        -- influence la valeur collectée par le temps de collecte

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

StaticObject
{
	name  = "LD_compass_trans",
	image = "backgrounds/objects/compass_trans",
	positionX = -40,
	positionY = 970,
    HUD_name = "LD_compass",
    layer = Background,
}

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

------------------------------------------------Ruins hand------------------------------------------------

InteractiveZone
{
name = "LD_ruins_hand",
positionX = -1570,
positionY = 550,

use_drop_position = true,
drop_position     = { { -1619, 485 }, {-1558, 468}, {-1488, 456}, {-1444, 485}, {-1466, 560}, {-1495, 632}, {-1589, 639}, {-1659, 612}, {-1673, 525} },

unlimited = false,
stock_max_value = G_ruins_hand_stock,

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

}

StaticObject
{
	name  = "O_hand_clean_A",
	image = "backgrounds/overlays/overlay_hand_clean_a",
	positionX = -1519,
	positionY = 530,
	use_ref_point_y = true,
	ref_point_y = 64,
	layer = Characters,
	visible = false,
}

StaticObject
{
	name  = "O_hand_clean_B",
	image = "backgrounds/overlays/overlay_hand_clean_b",
	positionX = -1619,
	positionY = 567,
	use_ref_point_y = true,
	ref_point_y = 81,
	layer = Characters,
	visible = false,
}

StaticObject
{
	name  = "O_hand_dirty_A",
	image = "backgrounds/overlays/overlay_hand_dirty_a",
	positionX = -1519,
	positionY = 530,
	use_ref_point_y = true,
	ref_point_y = 64,
	layer = Characters,
}

StaticObject
{
	name  = "O_hand_dirty_B",
	image = "backgrounds/overlays/overlay_hand_dirty_b",
	positionX = -1619,
	positionY = 567,
	use_ref_point_y = true,
	ref_point_y = 81,
	layer = Characters,
}

------------------------------------------------Mushroom Light ------------------------------------------------

InteractiveZone
{
name = "LD_mushroom_light",
positionX = -560,
positionY = -90,

use_drop_position = true,
drop_position     = { { -484, 75 } },

unlimited = false,
stock_max_value = G_mushroom_light_stock,

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

StaticObject
{
	name  = "LD_mushroom_light_trans",
	image = "backgrounds/objects/mushroom_trans",
	positionX = -560,
	positionY = -90,
    HUD_name = "LD_mushroom_light",
    layer = Background,
}

------------------------------------------------Fairy Lights ------------------------------------------------

InteractiveZone
{
name = "LD_fairy_light_01",
positionX = 680,
positionY = 270,

use_drop_position = true,
drop_position     = { { 645, 320 } },

unlimited = false,
stock_max_value = G_fairy_light_01_stock,

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

StaticObject
{
	name  = "LD_fairy_light_01_trans",
	image = "backgrounds/objects/fairy_light_trans",
	positionX = 680,
	positionY = 270,
    HUD_name = "LD_fairy_light_01",
    layer = Background,
}

InteractiveZone
{
name = "LD_fairy_light_02",
positionX = 940,
positionY = 360,

use_drop_position = true,
drop_position     = { { 890, 390 } },

unlimited = false,
stock_max_value = G_fairy_light_02_stock,

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

StaticObject
{
	name  = "LD_fairy_light_02_trans",
	image = "backgrounds/objects/fairy_light_trans",
	positionX = 940,
	positionY = 360,
    HUD_name = "LD_fairy_light_02",
    layer = Background,
}

InteractiveZone
{
name = "LD_fairy_light_03",
positionX = 1100,
positionY = 470,

use_drop_position = true,
drop_position     = { { 1050, 480 } },

unlimited = false,
stock_max_value = G_fairy_light_03_stock,

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

StaticObject
{
	name  = "LD_fairy_light_03_trans",
	image = "backgrounds/objects/fairy_light_trans",
	positionX = 1100,
	positionY = 470,
    HUD_name = "LD_fairy_light_03",
    layer = Background,
}

InteractiveZone
{
	name = "LD_firefly_tree_stock_before",
	positionX = 1926,
	positionY = 59,

	visible = false,
	use_drop_position = true,
	--drop_as_action = false,
	drop_position     = { { 1813, 101 }, { 1829, 132 } },
	action_position     = { { 1845, 170 }, { 1805, 75 } },

	unlimited = true,
	--stock_max_value = F_blindage_firefly_tree_max_stock(),

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

InteractiveZone
{
	name = "LD_firefly_tree_stock_after",
	positionX = 1816,
	positionY = 1662,

	visible = false,
	use_drop_position = true,
	--drop_as_action = false,
	drop_position     = { { 1717, 1680 }, { 1740, 1616 } },
	action_position     = { { 1653, 1728 }, { 1741, 1580 } },

	unlimited = true,
	--stock_max_value = F_blindage_firefly_tree_max_stock(),

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

