local addonName, addonTable = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Rarity")
local CONSTANTS = addonTable.constants

if not LE_EXPANSION_MIDNIGHT or LE_EXPANSION_LEVEL_CURRENT < LE_EXPANSION_MIDNIGHT then
	return {}
end

local midnightMounts = {
	["Sanguine Harrower"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Sanguine Harrower"],
		itemId = 260635,
		spellId = 1266700,
		npcs = {
			244272,
			256923,
			256925,
			256808,
			256770,
			245044,
			238498,
			256922,
			256924,
			256926,
			257027,
			245182,
			256821,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
	["Augmented Stormray"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Augmented Stormray"],
		itemId = 257085,
		spellId = 1261155,
		npcs = {
			244272,
			256923,
			256925,
			256808,
			256770,
			245044,
			238498,
			256922,
			256924,
			256926,
			257027,
			245182,
			256821,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
	["Nether-Warped Egg"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.ITEM,
		method = CONSTANTS.DETECTION_METHODS.FISHING,
		name = L["Nether-Warped Egg"],
		itemId = 268730,
		chance = 2500,
		sourceText = L["This item drops the Nether-Swept Drake mount after 7 days."],
		coords = {
			{ m = CONSTANTS.UIMAPIDS.EVERSONG_WOODS_MIDNIGHT },
			{ m = CONSTANTS.UIMAPIDS.ZUL_AMAN_MIDNIGHT },
			{ m = CONSTANTS.UIMAPIDS.VOIDSTORM },
			{ m = CONSTANTS.UIMAPIDS.SLAYERS_RISE },
			{ m = CONSTANTS.UIMAPIDS.HARANDAR },
		},
		zones = {
			tostring(CONSTANTS.UIMAPIDS.EVERSONG_WOODS_MIDNIGHT),
			tostring(CONSTANTS.UIMAPIDS.ZUL_AMAN_MIDNIGHT),
			tostring(CONSTANTS.UIMAPIDS.VOIDSTORM),
			tostring(CONSTANTS.UIMAPIDS.SLAYERS_RISE),
			tostring(CONSTANTS.UIMAPIDS.HARANDAR),
		},
	},
	["Amani Sharptalon"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Amani Sharptalon"],
		itemId = 257152,
		spellId = 1261316,
		npcs = {
			242023,
			242025,
			245975,
			242031,
			242033,
			242035,
			242027,
			245692,
			242024,
			242028,
			247976,
			242032,
			242034,
			242026,
			245691,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.ZUL_AMAN_MIDNIGHT } },
	},
	["Escaped Witherbark Pango"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Escaped Witherbark Pango"],
		itemId = 257200,
		spellId = 1261351,
		npcs = {
			242023,
			242025,
			245975,
			242031,
			242033,
			242035,
			242027,
			245692,
			242024,
			242028,
			247976,
			242032,
			242034,
			242026,
			245691,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.ZUL_AMAN_MIDNIGHT } },
	},
	["Cerulean Hawkstrider"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Cerulean Hawkstrider"],
		itemId = 257156,
		spellId = 1261323,
		npcs = {
			246332,
			240129,
			250719,
			250754,
			250841,
			250826,
			255302,
			255348,
			246633,
			250582,
			250683,
			250876,
			250780,
			250806,
			255329,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.EVERSONG_WOODS_MIDNIGHT } },
	},
	["Cobalt Dragonhawk"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Cobalt Dragonhawk"],
		itemId = 257147,
		spellId = 1261302,
		npcs = {
			246332,
			240129,
			250719,
			250754,
			250841,
			250826,
			255302,
			255348,
			246633,
			250582,
			250683,
			250876,
			250780,
			250806,
			255329,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.EVERSONG_WOODS_MIDNIGHT } },
	},
	["Vibrant Petalwing"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Vibrant Petalwing"],
		itemId = 252012,
		spellId = 1253927,
		npcs = {
			248741,
			249849,
			249962,
			250086,
			250226,
			250246,
			250321,
			250358,
			249844,
			249902,
			249997,
			250180,
			250231,
			250317,
			250347,
			246735,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.HARANDAR } },
	},
	["Rootstalker Grimlynx"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Rootstalker Grimlynx"],
		itemId = 246735,
		spellId = 1243597,
		npcs = {
			248741,
			249849,
			249962,
			250086,
			250226,
			250246,
			250321,
			250358,
			249844,
			249902,
			249997,
			250180,
			250231,
			250317,
			250347,
		},
		chance = 500,
		coords = { { m = CONSTANTS.UIMAPIDS.HARANDAR } },
	},
	["Witherbark Warbear Harness"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Witherbark Warbear Harness"],
		itemId = 257225,
		spellId = 1261362,
		npcs = {
			263381,
		},
		chance = 1,
		sourceText = L["This mount is a guaranteed drop from a rare spawned using the Chubs battle pet in the Broken Throne Ritual Site."],
		coords = { { m = CONSTANTS.UIMAPIDS.RITUAL_SITES_MIDNIGHT } },
	},
	["Void-Corrupted Eagle Talon"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Void-Corrupted Eagle Talon"],
		itemId = 269828,
		spellId = 1286606,
		npcs = {
			263527,
		},
		chance = 1,
		sourceText = L["This mount is a guaranteed drop from completing a summoning ritual in the Broken Throne Ritual Site."],
		coords = { { m = CONSTANTS.UIMAPIDS.RITUAL_SITES_MIDNIGHT } },
	},
	["Void-Touched Snapdragon"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.SPECIAL,
		name = L["Void-Touched Snapdragon"],
		itemId = 270041,
		spellId = 1287357,
		npcs = { 263617 },
		tooltipNpcs = { 263617 },
		chance = 100,
		sourceText = L["This mount is obtained by interacting with Washed Up Kelp in the Daggerspine Point Ritual Site."],
		coords = { { m = CONSTANTS.UIMAPIDS.RITUAL_SITES_MIDNIGHT } },
	},
	["Lucent Hawkstrider"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Lucent Hawkstrider"],
		itemId = 260231,
		spellId = 1265784,
		tooltipNpcs = { 231865 },
		npcs = { 99999 },
		statisticId = { 61217 },
		groupSize = 5,
		equalOdds = true,
		chance = 20,
		instanceDifficulties = { [CONSTANTS.INSTANCE_DIFFICULTIES.MYTHIC_DUNGEON] = true },
		coords = { { m = CONSTANTS.UIMAPIDS.MAGISTERS_TERRACE_MIDNIGHT, i = true } },
	},
	["Spectral Hawkstrider"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.NPC,
		name = L["Spectral Hawkstrider"],
		itemId = 262914,
		spellId = 1263635,
		tooltipNpcs = { 231636 },
		npcs = { 99999 },
		statisticId = { 41295 },
		groupSize = 5,
		equalOdds = true,
		chance = 20,
		instanceDifficulties = { [CONSTANTS.INSTANCE_DIFFICULTIES.MYTHIC_DUNGEON] = true },
		coords = { { m = CONSTANTS.UIMAPIDS.WINDRUNNER_SPIRE, i = true } },
	},
	["Duskbrute Harrower"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.USE,
		name = L["Duskbrute Harrower"],
		itemId = 257176,
		spellId = 1261332,
		items = { 267299 },
		chance = 5,
		coords = { { m = CONSTANTS.UIMAPIDS.SLAYERS_RISE } },
	},
	["Reins of the Contained Stormarion Defender"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.USE,
		name = L["Reins of the Contained Stormarion Defender"],
		itemId = 257180,
		spellId = 1261334,
		items = { 260940, 279526, 260979 },
		chance = 20,
		sourceText = L["This mount can also drop on characters below Level 90."],
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
	["Ashes of Belo'ren"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.BOSS,
		name = L["Ashes of Belo'ren"],
		spellId = 1242904,
		itemId = 246590,
		npcs = { 99999 },
		tooltipNpcs = { 240391 },
		chance = 100,
		statisticId = { 61307 },
		lockBossName = "L'ura",
		instanceDifficulties = {
			[CONSTANTS.INSTANCE_DIFFICULTIES.MYTHIC_RAID] = true,
		},
		groupSize = 5,
		equalOdds = true,
		coords = { { m = CONSTANTS.UIMAPIDS.MARCH_ON_QUELDANAS, i = true } },
		wasGuaranteed = true,
	},
	["Broken Lynx Leash"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.USE,
		name = L["Broken Lynx Leash"],
		itemId = 272392,
		spellId = 1287359,
		items = { 602746, 650051 },
		chance = 300,
		sourceText = L["This item drops from the final cache in either Ritual Site, and is required to craft the Void-Corrupted Lynx Mount. It is not possible to automatically add attempts, so please do so manually!"],
		coords = { { m = CONSTANTS.UIMAPIDS.RITUAL_SITES_MIDNIGHT } },
	},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.mounts, midnightMounts)
return midnightMounts
