package Loot
using RTDB, Prereqs

WatsonNID : Watson
{
	minItemsToLoot = 1;
	maxItemsToLoot = 3;
	lootItems += 
	[
		{
			dropCountMin = 10;
			dropCountMax = 100;
			itemID = "Items.money";
		} : LootItem
	];
}

WatsonNIDAll : WatsonNID
{
	lootTableInclusions = 
	[
		"Loot.WatsonNIDClothing", "Loot.WatsonNIDWeapons", "Loot.WatsonNIDConsumables", "Loot.WatsonNIDEdibles", "Loot.WatsonNIDGadgets", "Loot.WatsonNIDJunk", "Loot.WatsonNIDWeaponMods", "Loot.WatsonNIDFragments"
	];
}

WatsonNIDClothing : WatsonNID
{
	queries = 
	[
		{
			dropChance = 0.3;
			query = "Query.PoorClothing";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.3;
			query = "Query.IndustrialClothing";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.2;
			query = "Query.SimpleClothing";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}
	];
}

WatsonNIDWeapons : WatsonNID
{
	queries = 
	[
		{
			dropChance = 0.15;
			query = "Query.KatanaQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.15;
			query = "Query.KnifeQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.15;
			query = "Query.OneHandBladeQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.15;
			query = "Query.HandgunQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.15;
			query = "Query.SubmachinegunQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}, 
		{
			dropChance = 0.15;
			query = "Query.LightmachinegunQuery";
			fk< StatModifier >[] statModifiers = 
			[
				"Quality.MaximumUncommonQuality"
			];
		}
	];
}

WatsonNIDAmmo : WatsonNID
{
	lootTableInclusions = 
	[
		"Ammo.AmmoLootTable"
	];
}

WatsonNIDConsumables : WatsonNID
{
	minItemsToLoot = 1;
	maxItemsToLoot = 2;
	queries = 
	[
		{
			dropChance = 0.1;
			query = "Query.LowQualityFood";
		}, 
		{
			dropChance = 0.1;
			query = "Query.LowQualityDrink";
		}, 
		{
			dropChance = 0.1;
			query = "Query.LowQualityAlcohol";
		}
	];
	lootTableInclusions = 
	[
		"LootTables.HealingItemsTable", "LootTables.HealingItemsRecipes"
	];
}

WatsonNIDEdibles : WatsonNID
{
	queries = 
	[
		{
			dropChance = 0.1;
			query = "Query.LowQualityFood";
		}, 
		{
			dropChance = 0.03;
			query = "Query.MediumQualityFood";
		}, 
		{
			dropChance = 0.1;
			query = "Query.LowQualityDrink";
		}, 
		{
			dropChance = 0.03;
			query = "Query.MediumQualityDrink";
		}, 
		{
			dropChance = 0.1;
			query = "Query.LowQualityAlcohol";
		}, 
		{
			dropChance = 0.03;
			query = "Query.MediumQualityAlcohol";
		}
	];
}

WatsonNIDGadgets : WatsonNID
{
	minItemsToLoot = 1;
	maxItemsToLoot = 2;
	lootTableInclusions = 
	[
		"LootTables.CraftingMaterialsTable", "LootTables.TechJunkieItemsTable", "LootTables.GrenadeItemsRecipesTable", "LootTables.GrenadePlusRarityItemsTable"
	];
}

WatsonNIDJunk : WatsonNID
{
	lootItems = 
	[
		{
			dropChance = 0.1;
			itemID = "Items.GenericJunkItem1";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericJunkItem2";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericJunkItem3";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericJunkItem4";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericJunkItem5";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericRichJunkItem1";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericRichJunkItem2";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericRichJunkItem3";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericRichJunkItem4";
		}, 
		{
			dropChance = 0.1;
			itemID = "Items.GenericRichJunkItem5";
		}
	];
}

WatsonNIDWeaponMods : WatsonNID
{
	queries = 
	[
		{
			playerPrereqID = "LootPrereqs.PlayerLevelCommonWeaponModsPrereq";
			dropChance = 0.03;
			query = "Query.CommonWeaponModsQuery";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelUncommonWeaponModsPrereq";
			dropChance = 0.03;
			query = "Query.UncommonWeaponModsQuery";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelRareWeaponModsPrereq";
			dropChance = 0.03;
			query = "Query.RareWeaponModsQuery";
		}
	];
	lootTableInclusions = 
	[
		"LootTables.Silencers_LootTable", "LootTables.AllScopes_LootTable"
	];
}

WatsonNIDFragments : WatsonNIDJunk
{
}

WatsonNIDJewellery : WatsonNID
{
	queries = 
	[
		{
			dropChance = 0.3;
			query = "Query.LowQualityJewellery";
		}, 
		{
			dropChance = 0.1;
			query = "Query.MediumQualityJewellery";
		}
	];
}

WatsonNIDMisc : WatsonNID
{
	queries = 
	[
		{
			dropChance = 0.03;
			query = "Query.LowQualityJewellery";
		}, 
		{
			dropChance = 0.03;
			query = "Query.MediumQualityJewellery";
		}, 
		{
			dropChance = 0.03;
			query = "Query.JunkQuery";
		}, 
		{
			dropChance = 0.03;
			query = "Query.MediumQualityFood";
		}, 
		{
			dropChance = 0.03;
			query = "Query.LowQualityFood";
		}
	];
}

WatsonNIDCraftingMaterials : WatsonNID
{
	lootTableInclusions = 
	[
		"LootTables.CraftingMaterialsTable"
	];
	queries = 
	[
		{
			playerPrereqID = "LootPrereqs.PlayerLevelCommonWeaponModsPrereq";
			dropChance = 0.1;
			query = "Query.CommonRangedWeaponModsQuery";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelUncommonWeaponModsPrereq";
			dropChance = 0.1;
			query = "Query.UncommonRangedWeaponModsQuery";
		}, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevelRareWeaponModsPrereq";
			dropChance = 0.1;
			query = "Query.RareRangedWeaponModsQuery";
		}
	];
}

Loot_mq032 : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 4;
	fk< LootItem >[] lootItems = [];
}

