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

require( "package/quests/q_variables_define.lua" );
DebugOut( "Collection quest (file : package/quests/q_collection_quests.lua)" );

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

------------------------------------------------Collection Quests------------------------------------------------

----------------- Fin toutes les collections --------------------------------
function G_collections_test_end()
	if G_collection_all_ended == 0 and G_stone_circle_ended == 1 and G_stone_lune_ended == 1 and G_stone_vent_ended == 1 and G_stone_ent_ended == 1 then
		G_collection_all_ended = 1;
		DisplayInformation( "collection_all_end", "backgrounds/dialog/vignette_fee", "", 0, "", true );
	end
end
-----------------------------------------------------------------------------


function F_deposit_object_stone_circle_end( sOwnerName)
	GainFeerie( G_faerie_standard_gain_per_collected_object );
	DisplayDroppedObject( sOwnerName );
	PlayDepositObjectSound( sOwnerName )
	return true;
end

function F_Stone_Faery_end ( sOwnerName)
	if G_stone_circle_ended == 0 then
		G_stone_circle_ended = 1
		GainFeerie( G_collection_fee_end_gain )
        SetFaerieGainPerActionCollec( G_collection_faerie )
		DisplayInformation( "collection_circle_end", "backgrounds/dialog/vignette_fee", "", 0, "", true )
		G_collections_test_end()
		PopElementTask("TASK_faery_circle")
		EndGame()
		--PlayFX( Air, "fx/fx_hundred_percent.lua", sOwnerName, 0, -75 );
	end
	return true;
end

function F_Stone_Faery_start ( sOwnerName)
	-- Cette variable sert à s'assurer que les conséquences de la fin de quête ne sont appliquées qu'une seule fois.
	G_stone_circle_ended = 0;
	G_collection_all_ended = 0;
	return true;
end

Quest
{
  name = "Q_Stone_Faery",   -- en interne pour débugger mais aussi comme lien de pré-requis
  description = "Q_Stone_Faery_desc",
	
  --gain_feerie = G_faerie_standard_gain_per_quest,
  
  callback_first_time = "F_Stone_Faery_start",
  callback_end = "F_Stone_Faery_end",
  
  -- Quest_Element 1 --
  Quest_Element
  {
  
    Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
  
    name = "Q_Stone_Faery_Deposit_01",
    interaction = "LD_Stone_Circle_01",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1565,
    see_y = 1140,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1565,
      deposity = 1140,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 2 --
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
	
    name = "Q_Stone_Faery_Deposit_02",
    interaction = "LD_Stone_Circle_02",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -1490,
    see_y = 1160,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1490,
      deposity = 1160,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 3 --
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
	
    name = "Q_Stone_Faery_Deposit_03",
    interaction = "LD_Stone_Circle_03",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1440,
    see_y = 1205,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1440,
      deposity = 1205,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 4 --
  Quest_Element
  {
  
    Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Stone_Faery_Deposit_04",
    interaction = "LD_Stone_Circle_04",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1443,
    see_y = 1260,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1443,
      deposity = 1260,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 5 --
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },	
    
    name = "Q_Stone_Faery_Deposit_05",
    interaction = "LD_Stone_Circle_05",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,

	percentage = false,
	collection = true,
	
	see_x = -1490,
    see_y = 1305,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1490,
      deposity = 1305,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 6 --
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
     
    name = "Q_Stone_Faery_Deposit_06",
    interaction = "LD_Stone_Circle_06",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1570,
    see_y = 1325,

	must_be_seen_to_be_completed = false,	
    
    DepositObject
    {
      label = "dropping",
      depositx = -1570,
      deposity = 1325,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 7 --
  Quest_Element
  {
  
    Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
	
    name = "Q_Stone_Faery_Deposit_07",
    interaction = "LD_Stone_Circle_07",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,

	percentage = false,
	collection = true,
	
	see_x = -1645,
    see_y = 1305,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1645,
      deposity = 1305,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 8 --
  Quest_Element
  {
  
    Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Stone_Faery_Deposit_08",
    interaction = "LD_Stone_Circle_08",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1690,
    see_y = 1260,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1690,
      deposity = 1260,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 9 --
  Quest_Element
  {
  
    Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
  
    name = "Q_Stone_Faery_Deposit_09",
    interaction = "LD_Stone_Circle_09",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1690,
    see_y = 1200,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1690,
      deposity = 1200,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
  
  -- Quest_Element 10 --
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Stone_Faery_Deposit_10",
    interaction = "LD_Stone_Circle_10",
	zone = "Z_faerie_pendant",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,

	see_x = -1640,
    see_y = 1150,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
      label = "dropping",
      depositx = -1640,
      deposity = 1150,
      callback_done = "F_deposit_object_stone_circle_end"
    },
  },
}

-------------- Lune ----------------

function F_Collection_Lune_Deposit_end( sOwnerName)
	GainFeerie( G_faerie_standard_gain_per_collected_object );
	--DisplayDroppedObject( sOwnerName );
	PlayDepositObjectSound( sOwnerName )
	return true;
end

function F_Collection_Lune_end ( sOwnerName)
	if G_stone_lune_ended == 0 then
		G_stone_lune_ended = 1;
		GainFeerie( G_collection_lune_end_gain );
        SetPassiveMoralCollec( G_collection_moral );
		DisplayInformation( "collection_lune_end", "backgrounds/dialog/vignette_fee", "", 0, "", true );
		--PlayFX( Air, "fx/fx_hundred_percent.lua", sOwnerName, 0, -75 );
		G_collections_test_end();
	end
	return true;
end

function F_Collection_Lune_start ( sOwnerName)
	-- Cette variable sert à s'assurer que les conséquences de la fin de quête ne sont appliquées qu'une seule fois.
	G_stone_lune_ended = 0;
	G_collection_all_ended = 0;
	return true;
end

Quest
{
  name = "Q_Collection_Lune",   -- en interne pour débugger mais aussi comme lien de pré-requis
  description = "Q_Collection_Lune_desc",
	
  --gain_feerie = G_faerie_standard_gain_per_quest,
  primary_quest = false,
  
  callback_first_time = "F_Collection_Lune_start",
  callback_end = "F_Collection_Lune_end",
  zone = "Z_home",
  
  --Quest_Element 01--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_01",
    interaction = "LD_Stone_Lune_01",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 02--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_02",
    interaction = "LD_Stone_Lune_02",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 03--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_03",
    interaction = "LD_Stone_Lune_03",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 04--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_04",
    interaction = "LD_Stone_Lune_04",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 05--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_05",
    interaction = "LD_Stone_Lune_05",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 06--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_06",
    interaction = "LD_Stone_Lune_06",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 07--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_07",
    interaction = "LD_Stone_Lune_07",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 08--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_08",
    interaction = "LD_Stone_Lune_08",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 09--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_09",
    interaction = "LD_Stone_Lune_09",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
  
  --Quest_Element 10--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Lune_Deposit_10",
    interaction = "LD_Stone_Lune_10",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Lune_Deposit_end"
    },
  },
}

-------------- Ents ----------------

function F_Collection_Ent_Deposit_end( sOwnerName)
	GainFeerie( G_faerie_standard_gain_per_collected_object );
	--DisplayDroppedObject( sOwnerName );
	PlayDepositObjectSound( sOwnerName )
	return true;
end

function F_Collection_Ent_end ( sOwnerName)
	if G_stone_ent_ended == 0 then
		G_stone_ent_ended = 1;
		GainFeerie( G_collection_ents_end_gain );
        SetGatherFactorCollec( G_collection_gather );
		DisplayInformation( "collection_ent_end", "backgrounds/dialog/vignette_fee", "", 0, "", true );
		--PlayFX( Air, "fx/fx_hundred_percent.lua", sOwnerName, 0, -75 );
		G_collections_test_end();
	end
	return true;
end

function F_Collection_Ent_start ( sOwnerName)
	-- Cette variable sert à s'assurer que les conséquences de la fin de quête ne sont appliquées qu'une seule fois.
	G_stone_ent_ended = 0;
	G_collection_all_ended = 0;
	return true;
end

Quest
{
  name = "Q_Collection_Ent",   -- en interne pour débugger mais aussi comme lien de pré-requis
  description = "Q_Collection_Ent_desc",
	
  --gain_feerie = G_faerie_standard_gain_per_quest,
  primary_quest = false,
  
  callback_first_time = "F_Collection_Ent_start",
  callback_end = "F_Collection_Ent_end",
  zone = "Z_home",
  
  --Quest_Element 01--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_01",
    interaction = "LD_Stone_Ent_01",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 02--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_02",
    interaction = "LD_Stone_Ent_02",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 03--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_03",
    interaction = "LD_Stone_Ent_03",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 04--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_04",
    interaction = "LD_Stone_Ent_04",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 05--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_05",
    interaction = "LD_Stone_Ent_05",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 06--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_06",
    interaction = "LD_Stone_Ent_06",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 07--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_07",
    interaction = "LD_Stone_Ent_07",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 08--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_08",
    interaction = "LD_Stone_Ent_08",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 09--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_09",
    interaction = "LD_Stone_Ent_09",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
  
  --Quest_Element 10--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Ent_Deposit_10",
    interaction = "LD_Stone_Ent_10",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Ent_Deposit_end"
    },
  },
}

-------------- Pierre Vent ----------------

function F_Collection_Vent_Deposit_end( sOwnerName)
	GainFeerie( G_faerie_standard_gain_per_collected_object );
	--DisplayDroppedObject( sOwnerName );
	PlayDepositObjectSound( sOwnerName )
	return true;
end

function F_Collection_Vent_end ( sOwnerName)
	if G_stone_vent_ended == 0 then
		G_stone_vent_ended = 1;
		GainFeerie( G_collection_vent_end_gain );
        SetPassiveSpeedCollec( G_collection_speed );
		DisplayInformation( "collection_vent_end", "backgrounds/dialog/vignette_fee", "", 0, "", true );
		--PlayFX( Air, "fx/fx_hundred_percent.lua", sOwnerName, 0, -75 );
		G_collections_test_end();
	end
	return true;
end

function F_Collection_Vent_start ( sOwnerName)
	-- Cette variable sert à s'assurer que les conséquences de la fin de quête ne sont appliquées qu'une seule fois.
	G_stone_vent_ended = 0;
	G_collection_all_ended = 0;
	return true;
end

Quest
{
  name = "Q_Collection_Vent",   -- en interne pour débugger mais aussi comme lien de pré-requis
  description = "Q_Collection_Vent_desc",
	
  --gain_feerie = G_faerie_standard_gain_per_quest,
  primary_quest = false,
  
  callback_first_time = "F_Collection_Vent_start",
  callback_end = "F_Collection_Vent_end",
  zone = "Z_home",
  
  --Quest_Element 01--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_01",
    interaction = "LD_Stone_Vent_01",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 02--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_02",
    interaction = "LD_Stone_Vent_02",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 03--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_03",
    interaction = "LD_Stone_Vent_03",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 04--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_04",
    interaction = "LD_Stone_Vent_04",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 05--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_05",
    interaction = "LD_Stone_Vent_05",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 06--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_06",
    interaction = "LD_Stone_Vent_06",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 07--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_07",
    interaction = "LD_Stone_Vent_07",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 08--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_08",
    interaction = "LD_Stone_Vent_08",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 09--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_09",
    interaction = "LD_Stone_Vent_09",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
  
  --Quest_Element 10--
  Quest_Element
  {
    
	Check
    {
      value_type = "exploration",
      level = 0 * G_check_factor,
    },
    
    name = "Q_Collection_Vent_Deposit_10",
    interaction = "LD_Stone_Vent_10",
	
    include_in_labrador_intentions = false,
	
    max_users = 100,
    loop = false,
	
	percentage = false,
	collection = true,
	
	see_x = -140,
    see_y = -10,
	
	must_be_seen_to_be_completed = false,
    
    DepositObject
    {
		label = "dropping",
		depositx = -140,
		deposity = -10,
		callback_done = "F_Collection_Vent_Deposit_end"
    },
  },
}
