local PT = AhUI
if not PT then return end
local G = PT.ProfessionGuides

G.guides.BFA = G.guides.BFA or {}

G.guides.BFA.ALCHEMY = {
    skillLineID = 2478, -- BFA Alchemy
    nameKey = "PG_GUIDE_BFA_ALCHEMY_NAME",


    trainers = {
        alliance = {
            {
                npcID = 132228, -- Elric Whalgrene
                name  = "Elric Whalgrene",
                mapID = 1161, -- Boralus
                x = 74.0,
                y = 6.5,
            },
        },
        horde = {
            {
                npcID = 122703, -- Clever Kumali
                name  = "Clever Kumali",
                mapID = 1165, -- Dazar'alor
                x = 42.0,
                y = 38.5,
            },
        },
    },

	vendors = {
		alliance = {
			{
				npcID = 153811, -- Instructor Okanu
				name  = "Instructor Okanu",
				mapID = 1355, -- Nazjatar
				x = 38.0,
				y = 53.2,
				teaches = {
					{ spellID = 301310 }, -- Abyssal Healing Potion R1
					{ spellID = 301311 }, -- Abyssal Healing Potion R2
				},
			},
		},
		horde = {
			{
				npcID = 154393, -- Narv
				name  = "Narv",
				mapID = 1355, -- Nazjatar
				x = 49.2,
				y = 61.6,
				teaches = {
					{ spellID = 301310 },
					{ spellID = 301311 },
				},
			},
		},
	},


    steps = {

		{
			min = 1,
			max = 21,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252382, -- Coastal Healing Potion (R1)
					crafts  = 20,
					autoReagents = true,
				},
			},
		},

		{
			min = 21,
			max = 37,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252385, -- Coastal Mana Potion (R1)
					crafts  = 20,
					autoReagents = true,
				},
			},
		},

		{
			min = 37,
			max = 40,
			recipes = {
				{
					spellID = 252388, -- Potion of Concealment (R1)
					crafts  = 10,
					autoReagents = true,
				},
			},
		},

		{
			min = 40,
			max = 45,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252383, -- Coastal Healing Potion (R2)
					crafts  = 5,
					autoReagents = true,
				},
			},
		},

		{
			min = 45,
			max = 50,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252386, -- Coastal Mana Potion (R2)
					crafts  = 5,
					autoReagents = true,
				},
			},
		},

		{
			min = 50,
			max = 65,
			recipes = {
				{
					spellID = 252389, -- Coastal Rejuvenation Potion
					crafts  = 25,
					autoReagents = true,
				},
			},
		},

		{
			min = 65,
			max = 75,
			recipes = {
				{
					spellID = 252342, -- Potion of Replenishment
					crafts  = 10,
					autoReagents = true,
				},
			},
		},

		{
			min = 75,
			max = 115,
			recipes = {
				{
					spellID = 279160, -- Battle Potion of Agility
					crafts  = 50,
					autoReagents = true,
				},
			},
		},

		{
			min = 115,
			max = 140,
			recipes = {
				{
					spellID = 252352, -- Flask of Endless Fathoms
					crafts = 25,
					autoReagents = true,
				},
			},			
		},		
		
		{
			min = 140,
			max = 145,
			disablesShopping = true,
			noteKey = "PG_GUIDE_BFA_ALCHEMY_NOTE_1",
			recipes = {
				{
					spellID = 252352, -- Flask of Endless Fathoms
					crafts  = 10,
					autoReagents = true,
				},
			},
		},

		{
			min = 145,
			max = 160,
			disablesShopping = true,
			recipes = {
				{
					spellID = 301310, -- Abyssal Healing Potion (R1)
					crafts  = 20,
					autoReagents = true,
					requires = {
						{ type = "recipe_spell", spellID = 301310 },
					},
				},
			},

			noteKey = "PG_GUIDE_BFA_ALCHEMY_NOTE_2",

			noteRefs = {
				{
					type = "spell",
					spellID = 301310, -- Abyssal Healing Potion (Rank 1)
					action = "learn", 
				},
			},
		},

		{
			min = 160,
			max = 175,
			disablesShopping = true,
			recipes = {
				{
					spellID = 301311, -- Abyssal Healing Potion (R2)
					crafts  = 25,
					autoReagents = true,
					requires = {
						{ type = "recipe_spell", spellID = 301311 },
					},
				},
			},

			noteKey = "PG_GUIDE_BFA_ALCHEMY_NOTE_3",

			noteRefs = {
				{
					type = "spell",
					spellID = 301311, 
					action = "learn",
				},
			},
		},
	}	
}
