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

G.guides.PANDARIA = G.guides.PANDARIA or {}

G.guides.PANDARIA.ALCHEMY = {
	profession  = "Alchemy",
    skillLineID = 2481, -- Pandaria Alchemy
    name = "Алхимия — Пандария (1–75)",

	trainers = {
		alliance = {
			{
				npcID = 56777, -- Ni Gentlepaw 
				name  = "Ni Gentlepaw",
				mapID = 371, -- Vale of Eternal Blossoms
				x = 46.6,
				y = 45.8,
			},
		},
		horde = {
			{
				npcID = 56777, -- Ni Gentlepaw
				name  = "Ni Gentlepaw",
				mapID = 371, -- Vale of Eternal Blossoms
				x = 46.6,
				y = 45.8,
			},
		},
	},

    steps = {

        -- 1 - 10
        -- "Pandaren trainers will only teach you 2 recipes. These two recipes are used to unlock additional recipes."
        -- "20 x Master Healing Potion - 20 x Green Tea Leaf"
        -- "Stop making the healing potions after you reached 10 and discovered 2 new recipes. (You can only discover 2 new recipes with Pandaria Alchemy 10)."
        -- :contentReference[oaicite:2]{index=2}
        {
            min = 1,
            max = 2,
			note = "|cff9966ffВсего потребуется 60 Хрустальная колба.|r",
			useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 136197, -- Master Healing Potion
                    itemID  = 76097,
                    crafts  = 1,
                    reagents = {
                        { itemID = 72238, count = 3 }, -- Green Tea Leaf (20 total)
                    },
                },
            },
        },      
		{
            min = 2,
            max = 10,
			--note = "|cff9966ffВсего потребуется 60 Хрустальная колба.|r",
			useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 114752, -- Master Healing Potion
                    itemID  = 76097,
                    crafts  = 15,
                    reagents = {
                        { itemID = 72234, count = 1 }, -- Green Tea Leaf (20 total)
						{ itemID = 3371, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 10 - 55
        -- "Make the Potion/Flask/Elixir you discovered previously until you discover more recipes."
        -- "always make the cheapest potion"
        -- "prioritize ... Green Tea Leaf > Silkweed > Rain Poppy > Snow Lily > Fool's Cap"
        -- "Stop making recipes when they turn green ... Only make green recipes if ... still haven't discovered Master Mana Potion"
        -- "save around 20 each of these herbs: Green Tea Leaf, Snow Lily, and Fool's Cap"
        -- :contentReference[oaicite:3]{index=3}
        {
            min = 10,
            max = 55,
            recipes = {
				{
					crafts  = 20,
					reagents = {
					{ itemID = 72234, count = 2 }, -- Green Tea Leaf
					{ itemID = 79010, count = 2 }, -- Snow Lily
					{ itemID = 72237, count = 2 }, -- Fool's Cap
					{ itemID = 79011, count = 2 }, -- Fool's Cap
					{ itemID = 72235, count = 2 }, -- Fool's Cap
					}
				}-- В источнике нет фиксированного рецепта/спелла: шаг целиком про discovery-процесс.
            },
            note =
                "Крафти Зелья,Настои или Эликсиры, которые открылись ранее, пока не откроются новые рецепты.\n" ..
                "Всегда старайся делать самый дешёвый вариант.\n" ..
                "Останавливайся на рецептах, когда они становятся зелёными, если ещё есть оранжевые/жёлтые.\n" ..
                "Зелёные делай только если больше ничего нет и ты всё ещё не открыл Зелье маны мастера.\n",
        },

        -- 55 - 75
        -- "If you didn't discover the Master Mana Potion recipe yet, then you will have to make the previous recipes until you discover it."
        -- "If you reached 65 ... and ... haven't discovered anything new ... limited by your Alchemy skill. You have to make Flasks/Transmutes..."
        -- "20 x Master Mana Potion - 20 x Green Tea Leaf, 20 x Snow Lily, 20 x Fool's Cap"
        -- :contentReference[oaicite:4]{index=4}
		{
			min = 55,
			max = 60,
			recipes = {
				{
					spellID = 114775, -- Master Mana Potion
					itemID  = 76098,
					crafts  = 5,
					reagents = {
						{ itemID = 72234, count = 1 }, -- Green Tea Leaf
						{ itemID = 79010, count = 1 }, -- Snow Lily
						{ itemID = 79011, count = 1 }, -- Fool's Cap
						{ itemID = 3371, count = 1, crafted = true },
					},
				},
			},
		},
		{
			min = 60,
			max = 75,
			disablesShopping = true,
			note = "|cff00ff00Декор доступен с 60 уровня навыка!|r",
			recipes = {
				{
					spellID = 114775, -- Master Mana Potion
					itemID  = 76098,
					crafts  = 15,
					reagents = {
						{ itemID = 72234, count = 1 },
						{ itemID = 79010, count = 1 },
						{ itemID = 79011, count = 1 },
						{ itemID = 3371, count = 1, crafted = true },
					},
				},
			},
		},

    },
}

