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 = 21,
			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 = 21,
			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 = 252388, -- Potion of Concealment (R1)
					crafts  = 10,
					reagents = {
						{ itemID = 152494, count = 2, crafted = true  }, -- Siren's Pollen
						{ itemID = 152495, count = 2, 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 }, -- Coastal Mana Potion
						{ itemID = 152494, count = 1 }, -- Coastal Healing Potion
					},
				},
			},
		},

		{
			min = 65,
			max = 75,
			recipes = {
				{
					spellID = 252342, -- Potion of Replenishment
					crafts  = 10,
					reagents = {
						{ itemID = 152509, count = 8 }, -- Siren's Pollen
						{ itemID = 152505, count = 6 },  -- 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 = 140,
			recipes = {
				{
					spellID = 252352, -- Flask of Endless Fathoms
					crafts = 25,
					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
					},
				},
			},			
		},		
		
		{
			min = 140,
			max = 145,
			disablesShopping = true,
			note = "|cff00ff00Декор доступен с 140 навыка профессии!|r",
			recipes = {
				{
					spellID = 252352, -- Flask of Endless Fathoms
					crafts  = 10,
					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
					},
				},
			},
		},

		{
			min = 145,
			max = 160,
			disablesShopping = true,
			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,
			disablesShopping = true,
			recipes = {
				{
					spellID = 301311, -- Abyssal Healing Potion (R2)
					crafts  = 25,
					reagents = {
						{ itemID = 168487, count = 2 },
						{ itemID = 3371,   count = 1, crafted = true },
					},
					requires = {
						{ type = "recipe_spell", spellID = 301311 },
					},
				},
			},

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

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