local addonName, addonTable = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Spearity")
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,
			244272,
			256923,
			256925,
			256808,
			256770,
			245044,
			238498,
			256922,
			256924,
			256926,
			257027,
			245182,
			256821,
		},
		chance = 100,
		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,
			244272,
			256923,
			256925,
			256808,
			256770,
			245044,
			238498,
			256922,
			256924,
			256926,
			257027,
			245182,
			256821,
		},
		chance = 100,
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
	["Lost Nether Drake"] = {
		cat = CONSTANTS.ITEM_CATEGORIES.MIDNIGHT,
		type = CONSTANTS.ITEM_TYPES.MOUNT,
		method = CONSTANTS.DETECTION_METHODS.FISHING,
		name = L["Lost Nether Drake"],
		zones = { tostring(CONSTANTS.UIMAPIDS.VOIDSTORM) },
		spellId = 3363,
		itemId = 260916,
		chance = 2000,
		requiresPool = false,
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
	["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 = 100,
		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 = 100,
		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 = 100,
		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 = 100,
		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 = 100,
		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 = 100,
		coords = { { m = CONSTANTS.UIMAPIDS.HARANDAR } },
	},
	["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 = { 268485, 260979 },
		chance = 20,
		coords = { { m = CONSTANTS.UIMAPIDS.VOIDSTORM } },
	},
}

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