package Loot
using RTDB, LootPrereqs

ScavengersDrop : LootTable
{
	minItemsToLoot = 0;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.PlayerLevelTrashTierPrereq";
			dropChance = 0.1;
			dropCountMin = 10;
			dropCountMax = 30;
			itemID = "Items.money";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelWeakTierPrereq";
			dropChance = 0.1;
			dropCountMin = 30;
			dropCountMax = 50;
			itemID = "Items.money";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelNormalTierPrereq";
			dropChance = 0.1;
			dropCountMin = 50;
			dropCountMax = 100;
			itemID = "Items.money";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelRareTierPrereq";
			dropChance = 0.1;
			dropCountMin = 100;
			dropCountMax = 200;
			itemID = "Items.money";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelEliteTierPrereq";
			dropChance = 0.1;
			dropCountMin = 200;
			dropCountMax = 400;
			itemID = "Items.money";
		}
	];
}

ScavengersGenericRangedGruntT1_handgun : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}
	];
	lootTableInclusions += 
	[
		"LootTables.Handgun_Muzzle_LootTable", "LootTables.ShortScopes_LootTable"
	];
}

ScavengersGenericRangedGruntT1_smg : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}
	];
	lootTableInclusions += 
	[
		"LootTables.Rifle_SMG_Muzzle_LootTable", "LootTables.LongScopes_LootTable"
	];
}

ScavengersGenericRangedGruntT2_rifle : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
	lootTableInclusions += 
	[
		"LootTables.Rifle_SMG_Muzzle_LootTable", "LootTables.LongScopes_LootTable"
	];
}

ScavengersGenericRangedGruntT2_sniper : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
	lootTableInclusions += 
	[
		"LootTables.SniperScopes_LootTable"
	];
}

ScavengersGenericMeleeGruntT1_fists : ScavengersDrop
{
}

ScavengersGenericMeleeGruntT1_blunt : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}
	];
}

ScavengersGenericMeleeGruntT2_knife : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersGenericMeleeGruntT2_blunt : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersShotgunEliteT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersFastMeleeFastT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersFastMeleeFastT3 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.12;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersHeavyMeleeButcherT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersGunnerStrongT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
}

ScavengersNetrunnerGruntT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
	lootTableInclusions = 
	[
		"LootTables.QuickhackRecipesTable_Chance", "LootTables.QuickhackTable_Guaranteed", "LootTables.QuickhackMaterialsTable", "LootTables.Silencers_LootTable"
	];
}

ScavengersNetrunnerNetrunnerT2 : ScavengersDrop
{
	queries = 
	[
		{
			dropChance = 0.2;
			query = "Query.WeaponModsQuery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.SkillbookQuery";
		}
	];
	lootTableInclusions = 
	[
		"LootTables.QuickhackRecipesTable_Chance", "LootTables.QuickhackTable_Guaranteed", "LootTables.QuickhackMaterialsTable", "LootTables.Silencers_LootTable"
	];
}

[ EP1 ]
CreepyFollower_Loot : ScavengersDrop
{
	minItemsToLoot = 2;
	maxItemsToLoot = 2;
	queries = 
	[
		{
			dropChance = 0.0001;
			query = "Query.IllegalFood";
		}, 
		{
			dropChance = 1;
			query = "Query.CreepyFollower_JunkQuery";
		}
	];
	lootItems = 
	[
		{
			playerPrereqID = 
			{
				comparisonType = "Less";
			} : PlayerLevel_Tier_4_Start_Prereq;
			dropChance = 0.0001;
			itemID = "Items.BlackLaceV0";
		}, 
		{
			playerPrereqID = 
			{
				comparisonType = "GreaterOrEqual";
			} : PlayerLevel_Tier_4_Start_Prereq;
			dropChance = 0.0001;
			itemID = "Items.BlackLaceV1";
		}
	];
}

