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
    name = "Алхимия — Battle for Azeroth (1–175)",

    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 = 20,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252382, -- Coastal Healing Potion (R1)
					crafts  = 20,
					reagents = {
						{ itemID = 152509, count = 3 }, -- Siren's Pollen
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		{
			min = 20,
			max = 37,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252385, -- Coastal Mana Potion (R1)
					crafts  = 20,
					reagents = {
						{ itemID = 152505, count = 3 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		{
			min = 37,
			max = 40,
			recipes = {
				{
					spellID = 252400, -- Potion of Concealment (R1)
					crafts  = 3,
					reagents = {
						{ itemID = 152509, count = 15 }, -- Siren's Pollen
						{ itemID = 3371,   count = 1, crafted = true },  -- Crystal Vial
					},
				},
			},
		},

		{
			min = 40,
			max = 45,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252383, -- Coastal Healing Potion (R2)
					crafts  = 5,
					reagents = {
						{ itemID = 152509, count = 2 }, -- Siren's Pollen
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		{
			min = 45,
			max = 50,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 252386, -- Coastal Mana Potion (R2)
					crafts  = 5,
					reagents = {
						{ itemID = 152505, count = 2 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		{
			min = 50,
			max = 65,
			recipes = {
				{
					spellID = 252389, -- Coastal Rejuvenation Potion
					crafts  = 25,
					reagents = {
						{ itemID = 152495, count = 1, crafted = true }, -- Coastal Mana Potion
						{ itemID = 152494, count = 1, crafted = true }, -- Coastal Healing Potion
					},
				},
			},
		},

		{
			min = 65,
			max = 75,
			recipes = {
				{
					spellID = 252339, -- Potion of Replenishment
					crafts  = 10,
					reagents = {
						{ itemID = 152509, count = 10 }, -- Siren's Pollen
						{ itemID = 152506, count = 8 },  -- Star Moss
						{ itemID = 3371,   count = 1, crafted = true },  -- Crystal Vial
					},
				},
			},
		},

		{
			min = 75,
			max = 115,
			recipes = {
				{
					spellID = 279160, -- Battle Potion of Agility
					crafts  = 50,
					reagents = {
						{ itemID = 152509, count = 8 }, -- Siren's Pollen
						{ itemID = 152505, count = 10 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		{
			min = 115,
			max = 145,
			recipes = {
				{
					spellID = 252352, -- Flask of Endless Fathoms
					crafts  = 33,
					reagents = {
						{ itemID = 152510, count = 5 },  -- Anchor Weed
						{ itemID = 152508, count = 10 }, -- Winter's Kiss
						{ itemID = 152505, count = 15 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true },  -- Crystal Vial
					},
				},
			},
			note = "На 140 навыке будут доступны рецепты декора."			
		},

		{
			min = 145,
			max = 160,
			recipes = {
				{
					spellID = 301310, -- Abyssal Healing Potion (R1)
					crafts  = 20,
					reagents = {
						{ itemID = 168487, count = 3 }, -- Zin'anthid
						{ itemID = 3371,   count = 1, crafted = true },
					},
					requires = {
						{ type = "recipe_spell", spellID = 301310 },
					},
				},
			},

			note = "Изучите рецепт у учителя в Назжатаре",

			noteRefs = {
				{
					type = "spell",
					spellID = 301310, -- Abyssal Healing Potion (Rank 1)
					action = "learn", -- просто для семантики
				},
			},
		},

		{
			min = 160,
			max = 175,
			recipes = {
				{
					spellID = 301311, -- Abyssal Healing Potion (R2)
					crafts  = 25,
					reagents = {
						{ itemID = 168487, count = 2 }, -- Zin'anthid
						{ itemID = 3371,   count = 1, crafted = true },
					},
					requires = {
						{ type = "recipe_spell", spellID = 301311 },
					},
				},
			},

			note = "Изучите следующий ранг рецепта у учителя в Назжатаре",

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