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 = {

		-- Шаг 1: 10–20 — 20x Coastal Healing Potion (Rank 1)
		-- Rank 1: 7x Siren's Pollen + 1x Crystal Vial :contentReference[oaicite:1]{index=1}
		{
			min = 10,
			max = 20,
			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
					},
				},
			},
		},

		-- Шаг 2: 20–37 — 20x Coastal Mana Potion (Rank 1)
		-- Rank 1: 7x Riverbud + 1x Crystal Vial :contentReference[oaicite:2]{index=2}
		{
			min = 20,
			max = 37,
			recipes = {
				{
					spellID = 252385, -- Coastal Mana Potion (R1)
					crafts  = 20,
					reagents = {
						{ itemID = 152505, count = 3 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		-- Шаг 3: 37–40 — 3x Potion of Concealment (Rank 1)
		-- Rank 1: 15x Siren's Pollen + 1x Crystal Vial :contentReference[oaicite:3]{index=3}
		{
			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
					},
				},
			},
		},

		-- Шаг 5: 40–45 — 5x Coastal Healing Potion (Rank 2)
		-- Rank 2: 5x Siren's Pollen + 1x Crystal Vial :contentReference[oaicite:4]{index=4}
		{
			min = 40,
			max = 45,
			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
					},
				},
			},
		},

		-- Шаг 6: 45–50 — 5x Coastal Mana Potion (Rank 2)
		-- Rank 2: 5x Riverbud + 1x Crystal Vial :contentReference[oaicite:5]{index=5}
		{
			min = 45,
			max = 50,
			recipes = {
				{
					spellID = 252386, -- Coastal Mana Potion (R2)
					crafts  = 5,
					reagents = {
						{ itemID = 152505, count = 2 }, -- Riverbud
						{ itemID = 3371,   count = 1, crafted = true }, -- Crystal Vial
					},
				},
			},
		},

		-- Шаг 7: 50–65 — 25x Coastal Rejuvenation Potion
		-- Rank 2/3: 1x Coastal Mana Potion + 1x Coastal Healing Potion :contentReference[oaicite:6]{index=6}
		-- (Если у тебя именно Rank 1, то там 2+2, но в гайде ты не писал Rank — я ставлю 1+1 как более типичный вариант после шага с R2) :contentReference[oaicite:7]{index=7}
		{
			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
					},
				},
			},
		},

		-- Шаг 8: 65–75 — 10x Potion of Replenishment
		-- Rank 2/3: 10x Siren's Pollen + 8x Star Moss + 1x Crystal Vial :contentReference[oaicite:8]{index=8}
		{
			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
					},
				},
			},
		},

		-- Шаг 9: 75–115 — 50x Battle Potion of Agility
		-- Rank 2/3: 8x Siren's Pollen + 6x Riverbud + 1x Crystal Vial :contentReference[oaicite:9]{index=9}
		{
			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
					},
				},
			},
		},

		-- Шаг 10: 115–145 — 33x Flask of Endless Fathoms
		-- Rank 2/3: 5x Anchor Weed + 10x Winter's Kiss + 15x Riverbud + 1x Crystal Vial :contentReference[oaicite:10]{index=10}
		{
			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 навыке будут доступны рецепты декора."			
		},

		-- Шаг 11: 145–160 — Nazjatar: Abyssal Healing Potion (Rank 1) x20
		-- Rank 1: 3x Zin'anthid + 1x Crystal Vial :contentReference[oaicite:11]{index=11}
		{
			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", -- просто для семантики
				},
			},
		},

		-- Шаг 12: 160–175 — Abyssal Healing Potion (Rank 2) x25
		-- Rank 2: 2x Zin'anthid + 1x Crystal Vial :contentReference[oaicite:12]{index=12}
		{
			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",
				},
			},
		},
	}	
}
