package LootTables
using RTDB, Loot, Prereqs

ep1_LootSingleItem : LootItem
{
	fk< Item > itemID = "Items.ep1_QuestItemPlaceholder";
}

ep1_LootTable : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.ep1_QuestItemPlaceholder";
		} : LootItem
	];
}

q301_nusa_sniper_rifle : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Preset_Ashura_Military";
		} : LootItem
	];
}

q301_fia_agent_outfit : LootTable
{
	minItemsToLoot = 3;
	maxItemsToLoot = 3;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q301_nusa_agent";
		} : LootItem
	];
}

q301_kurt_militia_helmet : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q301_kurt_militia_h1";
		} : LootItem
	];
}

q301_Sor22_Nusa_White : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Preset_Sor22_Nusa_White";
		} : LootItem
	];
}

q301_Achilles_Nusa_White : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Preset_Achilles_Nusa_White";
		} : LootItem
	];
}

q301_crafting_mats_parking : LootTable
{
	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";
		}
	];
}

q301_crafting_mats_parking_legendary : LootTable
{
	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";
		}
	];
}

q301_cyberware_parking : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.Minimum_RareCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedBionicJointsRare";
		}, 
		{
			playerPrereqID = "LootPrereqs.RarePlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedBionicJointsRarePlus";
		}, 
		{
			playerPrereqID = "LootPrereqs.EpicCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedBionicJointsEpic";
		}, 
		{
			playerPrereqID = "LootPrereqs.Maximum_EpicPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedBionicJointsEpicPlus";
		}
	];
}

q301_cwshard_parking : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.PlayerLevel_Tier_1_to_4_Exclusion_Prereq";
			itemID = "Items.CWCapacityPermaReward_2_Rare";
		} : LootItem, 
		{
			playerPrereqID = "LootPrereqs.PlayerLevel_Tier_4_Start_Prereq";
			itemID = "Items.CWCapacityPermaReward_2_Epic";
		} : LootItem
	];
}

q301_perkpoint_parking : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			itemID = "Items.PerkPointSkillbook";
		} : LootItem
	];
}

q301_crafting_mats_stadium : LootTable
{
	maxItemsToLoot = 1;
	lootTableInclusions = 
	[
		"LootTables.QuickhackMaterialsTable"
	];
}

q301_crafting_mats_stadium_legendary : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 2;
	lootTableInclusions = 
	[
		"LootTables.QuickhackMaterialsTable"
	];
}

q301_corpse_wtc_dead_mans_diary : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.q301_wtc_dead_mans_diary";
		} : LootItem
	];
}

q301_skybridge_pistol_ammo : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			dropCountMin = 120;
			dropCountMax = 180;
			itemID = "Ammo.HandgunAmmo";
		} : LootItem
	];
}

q302_lt_squat_fridge_beer : LootTable
{
	minItemsToLoot = 3;
	maxItemsToLoot = 3;
	fk< LootItem >[] lootItems = 
	[
		{
			dropCountMin = 1;
			dropCountMax = 1;
			fk< Item > itemID = "Items.LowQualityAlcohol4";
		} : LootItem, 
		{
			dropCountMin = 2;
			dropCountMax = 2;
			fk< Item > itemID = "Items.LowQualityAlcohol3";
		} : LootItem, 
		{
			dropCountMin = 1;
			dropCountMax = 1;
			fk< Item > itemID = "Items.LowQualityAlcohol1";
		} : LootItem
	];
}

q303_vdb_netrunner : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q303_vdb_trap_description_shard";
		} : LootItem
	];
}

q303_crafting_mats_tunnels : LootTable
{
	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";
		}
	];
}

q303_safehouse_silencers : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 4;
	lootTableInclusions = 
	[
		"LootTables.CraftingMaterialsTable"
	];
}

q303_safehouse_attachments : LootTable
{
	maxItemsToLoot = 2;
	queries = 
	[
		{
			query = "Query.RifleModsQuery";
		}, 
		{
			query = "Query.HandgunModsQuery";
		}
	];
}

q303_safehouse_weaponmods : LootTable
{
	maxItemsToLoot = 1;
	queries = 
	[
		{
			dropCountMin = 1;
			dropCountMax = 2;
			query = "Query.RifleModsQuery";
		}
	];
}

q303_safehouse_stealth_suit : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q303_diving_suit_ow_helmet";
		} : LootItem
	];
}

q303_paradise_suit : LootTable
{
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q303_party_outfit";
		} : LootItem
	];
}

q304_slider_loot_money : LootTable
{
	minItemsToLoot = 8000;
	maxItemsToLoot = 10000;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.money";
		} : LootItem
	];
}

q304_slider_loot_shard : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.q304_slider_stash_shard";
		} : LootItem
	];
}

q304_kurtz_loot : LootTable
{
	minItemsToLoot = 3;
	maxItemsToLoot = 3;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Preset_Defender_Kurt";
		} : IconicWeapon_LootItem, 
		{
			fk< Item > itemID = "Items.Preset_Metel_Kurt";
		} : IconicWeapon_LootItem, 
		{
			fk< Item > itemID = "Keycards.q304_kurtz_security_shard";
		} : LootItem
	];
}

q304_osprey_prototype_loot : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			playerPrereqID = 
			{
				fact = "osprey_prototype_owned";
				value = 0;
				comparisonType = "LessOrEqual";
			} : FactValuePrereq;
			fk< Item > itemID = "Items.Preset_Osprey_Prototype";
		} : IconicWeapon_LootItem
	];
}

ep1_q305_exploration_crafting_loot : LootTable
{
	minItemsToLoot = 5;
	maxItemsToLoot = 6;
	lootTableInclusions = 
	[
		"LootTables.CraftingMaterialsTable"
	];
}

ep1_q305_corrupted_shard : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q305_corrupted_shard";
		} : LootItem
	];
}

ep1_q305_mr_hands_gift : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.Minimum_EpicCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedMaxTacMantisBladesEpic";
		}, 
		{
			playerPrereqID = "LootPrereqs.EpicPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedMaxTacMantisBladesEpicPlus";
		}, 
		{
			playerPrereqID = "LootPrereqs.LegendaryCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedMaxTacMantisBladesLegendary";
		}, 
		{
			playerPrereqID = "LootPrereqs.LegendaryPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedMaxTacMantisBladesLegendaryPlus";
		}
	];
}

ep1_q305_haunted_gun_recipe : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.CraftedIconicWeaponRecipePrereq_Common";
			itemID = "Items.Recipe_Common_Borg4a_HauntedGun";
		}, 
		{
			playerPrereqID = "LootPrereqs.CraftedIconicWeaponRecipePrereq_Uncommon";
			itemID = "Items.Recipe_Uncommon_Borg4a_HauntedGun";
		}, 
		{
			playerPrereqID = "LootPrereqs.CraftedIconicWeaponRecipePrereq_Rare";
			itemID = "Items.Recipe_Rare_Borg4a_HauntedGun";
		}, 
		{
			playerPrereqID = "LootPrereqs.CraftedIconicWeaponRecipePrereq_Epic";
			itemID = "Items.Recipe_Epic_Borg4a_HauntedGun";
		}, 
		{
			playerPrereqID = "LootPrereqs.CraftedIconicWeaponRecipePrereq_Legendary";
			itemID = "Items.Recipe_Legendary_Borg4a_HauntedGun";
		}
	];
}

ep1_q305_haunted_deck_recipe : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.Recipe_RareCWLevelAvailabilityInLoot";
			itemID = "Items.Recipe_Rare_HauntedCyberdeck";
		}, 
		{
			playerPrereqID = "LootPrereqs.Recipe_EpicCWLevelAvailabilityInLoot";
			itemID = "Items.Recipe_Epic_HauntedCyberdeck";
		}, 
		{
			playerPrereqID = "LootPrereqs.Recipe_LegendaryCWLevelAvailabilityInLoot";
			itemID = "Items.Recipe_Legendary_HauntedCyberdeck";
		}
	];
}

ep1_q305_cerberus_core_uncracked : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q305_Cerberus_core_uncracked";
		} : LootItem
	];
}

ep1_Q305_old_decryption_tool : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q305_old_decryption_tool";
		} : LootItem
	];
}

ep1_q305_hazmat_suit : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q305_hazmat";
		} : LootItem
	];
}

ChimeraLoot : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			dropChance = 1;
			itemID = "Items.Q302_Chimera_Core";
		}
	];
}

Loot_q305_carol_gift_netrunner : Base_sts_reward
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootTableInclusions = 
	[
		"LootTables.QuickhackRecipesTable", "LootTables.QuickhackTable_Guaranteed"
	];
}

Loot_q305_carol_gift_solo : Base_sts_reward
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			playerPrereqID = "LootPrereqs.Minimum_EpicCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedSandevistanC4MK4";
		}, 
		{
			playerPrereqID = "LootPrereqs.EpicPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedSandevistanC4MK4Plus";
		}, 
		{
			playerPrereqID = "LootPrereqs.LegendaryCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedSandevistanC4MK5";
		}, 
		{
			playerPrereqID = "LootPrereqs.LegendaryPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedSandevistanC4MK5Plus";
		}
	];
}

q305_bunker_crowbar : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	lootItems = 
	[
		{
			dropChance = 0.1;
			itemID = "Items.Preset_Crowbar_Bunker";
		} : IconicWeapon_LootItem
	];
}

ep1_q306_songbirds_cache : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 2;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q306_moon_pin";
		} : LootItem, 
		{
			playerPrereqID = "LootPrereqs.Minimum_LegendaryCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedTimeBankLegendary";
		}, 
		{
			playerPrereqID = "LootPrereqs.LegendaryPlusCWLevelAvailabilityInLoot";
			itemID = "Items.AdvancedTimeBankLegendaryPlus";
		}
	];
}

ep1_q306_lost_bag : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.q306_lost_bag";
		} : LootItem
	];
}

ep1_q306_lost_bag2 : LootTable
{
	minItemsToLoot = 6;
	maxItemsToLoot = 6;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Hat_02_rich_02";
		} : LootItem, 
		{
			fk< Item > itemID = "Items.Cap_06_old_01";
		} : LootItem, 
		{
			fk< Item > itemID = "Items.Hat_01_rich_02";
		} : LootItem, 
		{
			fk< Item > itemID = "Items.Helmet_01_basic_03";
		} : LootItem, 
		{
			fk< Item > itemID = "Items.Cap_01_rich_01";
		} : LootItem, 
		{
			fk< Item > itemID = "Items.Hat_04_basic_02";
		} : LootItem
	];
}

ep1_q306_contact_bag : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.Q306_corpbud_outfit";
		} : LootItem
	];
}

ep1_q306_contact_bag2 : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.q306_contact_uniform_shard";
		} : LootItem
	];
}

ep1_q306_cloaked_hunter_corpse : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 2;
	fk< LootItem >[] lootItems = 
	[
		{
			fk< Item > itemID = "Items.q306_cloaked_hunter";
		} : LootItem, 
		{
			dropCountMin = 1715;
			dropCountMax = 1715;
			itemID = "Items.money";
		} : LootItem
	];
}

mq301_jurij_weapons_loot : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 2;
	fk< LootItem >[] lootItems = 
	[
		{
			itemID = "Items.Preset_Omaha_Krausser";
			statModifiers += 
			[
				"Quality.PlusModifierForRewards"
			];
		} : RewardWeapon_LootItem, 
		{
			itemID = "Items.Preset_Lexington_Krausser";
			statModifiers += 
			[
				"Quality.PlusModifierForRewards"
			];
		} : RewardWeapon_LootItem
	];
}

mq303_linas_mansion_safe : LootTable
{
	minItemsToLoot = 3;
	maxItemsToLoot = 3;
	fk< LootItem >[] lootItems = 
	[
		{
			dropChance = 1.0;
			dropCountMin = 1;
			dropCountMax = 1;
			itemID = "Items.HighQualityJewellery1";
		}, 
		{
			dropChance = 1.0;
			dropCountMin = 1;
			dropCountMax = 1;
			itemID = "Items.HighQualityJewellery5";
		}, 
		{
			dropChance = 1.0;
			dropCountMin = 2137;
			dropCountMax = 2137;
			itemID = "Items.money";
		} : LootItem
	];
}

mq303_linas_mansion_crate : LootTable
{
	minItemsToLoot = 3;
	maxItemsToLoot = 3;
	fk< LootItem >[] lootItems = 
	[
		{
			dropChance = 1.0;
			dropCountMin = 1;
			dropCountMax = 1;
			itemID = "Items.HighQualityJewellery2";
		}, 
		{
			dropChance = 1.0;
			dropCountMin = 1;
			dropCountMax = 1;
			itemID = "Items.MediumQualityJewellery4";
		}, 
		{
			dropChance = 1.0;
			dropCountMin = 1;
			dropCountMax = 1;
			itemID = "Items.MediumQualityJewellery5";
		}
	];
}

mq306_body_loot_angie : LootTable
{
	minItemsToLoot = 2;
	maxItemsToLoot = 2;
	fk< LootItem >[] lootItems = 
	[
		{
			dropChance = 1;
			itemID = "Items.Preset_Unity_Angelica";
		} : IconicWeapon_LootItem, 
		{
			dropChance = 1;
			dropCountMin = 800;
			dropCountMax = 1200;
			itemID = "Items.money";
		}
	];
}

mq306_guard_shard : LootTable
{
	minItemsToLoot = 1;
	maxItemsToLoot = 1;
	fk< LootItem >[] lootItems = 
	[
		{
			dropChance = 1;
			itemID = "Items.mq306_guard_shard";
		}
	];
}

