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

G.guides.LEGION = G.guides.LEGION or {}

G.guides.LEGION.ALCHEMY = {
	profession  = "Alchemy",
    skillLineID = 2479, -- Legion Alchemy
    nameKey = "PG_GUIDE_LEGION_ALCHEMY_NAME",

	
    trainers = {
        alliance = {
            {
                npcID = 92458, -- Deucus Valdera
                name  = "Deucus Valdera",
                mapID = 627, -- Dalaran (Broken Isles)
                x = 41.8,
                y = 31.8,
            },
        },
        horde = {
            {
                npcID = 92458, -- Deucus Valdera
                name  = "Deucus Valdera",
                mapID = 627,
                x = 41.8,
                y = 31.8,
            },
        },
    },

    vendors = {
        alliance = {
            {
                npcID = 92459, -- Patricia Egan
                name  = "Patricia Egan",
                mapID = 627,
                x = 41.9,
                y = 31.7,
                sells = {
                    { itemID = 127898, note = "Recipe: Rank 1" },
                    { itemID = 127917, note = "Recipe: Rank 2" },
                },
            },
        },
        horde = {
            {
                npcID = 92459, -- Patricia Egan
                name  = "Patricia Egan",
                mapID = 627,
                x = 41.9,
                y = 31.7,
                sells = {
                    { itemID = 127898, note = "Recipe: Rank 1" },
                    { itemID = 127917, note = "Recipe: Rank 2" },
                },
            },
        },
    },

    steps = {

        -- 1. Купить и изучить рецепт Rank 1
		 {
			min = 1,
			max = 2,
			recipes = {
				{
					spellID = 188297,
                    autoReagents = true,
					requires = {
						{ type = "recipe_item", itemID = 127898 },
					},
				},
			},
			noteKey = "PG_GUIDE_LEGION_ALCHEMY_NOTE_1",
		},


        -- 2. Купить и изучить рецепт Rank 2
		 {
			min = 1,
			max = 2,
			recipes = {
				{
					spellID = 188299,
                    autoReagents = true,
					requires = {
						{ type = "recipe_item", itemID = 127917 },
					},
				},
			},
			noteKey = "PG_GUIDE_LEGION_ALCHEMY_NOTE_2",
		},

        -- 3. Крафт до 65
        {
            min = 1,
            max = 65,
            recipes = {
                {
                    spellID = 188299,
                    itemID  = 127834,
                    crafts  = 65,
                    autoReagents = true,
                },
            },
        },

        -- 4. После 65 — прок Rank 3 или квесты
        {
            min = 65,
            max = 80,
            recipes = {
                {
                    spellID = 188300,
                    itemID  = 127834,
                    crafts  = 50,
                    autoReagents = true,
                },
            },
            noteKey = "PG_GUIDE_LEGION_ALCHEMY_NOTE_3",
        },

        -- 5. 80–100 (по желанию)
        {
            min = 80,
            max = 100,
            recipes = {},
            noteKey = "PG_GUIDE_LEGION_ALCHEMY_NOTE_4",
        },
    },
}
