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

G.guides.DRAENOR = G.guides.DRAENOR or {}

G.guides.DRAENOR.BLACKSMITHING = {
    profession  = "Blacksmithing",
    skillLineID = 2472, -- Draenor Blacksmithing
    name = "Кузнечное дело — Дренор (1–100)",

	learnViaScroll = true,
    -- =========================
    -- TRAINERS
    -- =========================
    trainers = {
        alliance = {
            {
                npcID = 87062, -- Royce Bigbeard
                name  = "Royce Bigbeard",
                mapID = 622, -- 
                x = 48.82,
                y = 48.61,
            },
        },
        horde = {
            {
                npcID = 87550, -- Nonn Threeratchet
                name  = "Nonn Threeratchet",
                mapID = 624, -- Warspear
                x = 75.2,
                y = 36.0,
            },
        },
    },

    -- =========================
    -- STEPS
    -- =========================
    steps = {

        -- =====================================
        -- 1 : Draenor Blacksmithing + Secrets
        -- (расовый бонус НЕ учитывать)
        -- =====================================
        {
            min = 1,
            max = 2,
            useEffectiveSkill = true,

            recipes = {
                {
                    spellID = 176090, -- Secrets of Draenor Blacksmithing
                    crafts  = 1,
                    reagents = {
                        { itemID = 109119, count = 5 }, -- True Iron Ore
                    },
                },
            },

            requires = {
                {
                    type   = "recipe_item",
                    itemID = 115356, -- Draenor Blacksmithing
                },
            },

            note =
                "Купите |cff00ff00книгу профессии|r у продавца.",
        },

        -- =====================================
        -- 1–80 : Truesteel Grinder
        -- =====================================
        {
            min = 2,
            max = 80,
			useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 171699, -- Truesteel Grinder
					crafts  = 78,
                    reagents = {
                        { itemID = 109118, count = 20 }, -- Blackrock Ore
                        { itemID = 109119, count = 10 }, -- True Iron Ore
                    },
                },
            },

            requires = {
                {
                    type   = "recipe_item",
                    itemID = 116734, -- Plans: Truesteel Grinder
                },
            },

            note =
                "Купите рецепт и крафтите до 80 навыка.",
        },

        -- =====================================
        -- 80–100 : Truesteel Grinder
        -- (НЕ добавлять в shopping list)
        -- =====================================
        {
            min = 80,
            max = 100,

            recipes = {
                {
                    spellID = 171699, -- Truesteel Grinder
					crafts  = 20,
                    reagents = {
                        { itemID = 109118, count = 20 }, -- Blackrock Ore
                        { itemID = 109119, count = 10 }, -- True Iron Ore
                    },
                },
            },

            disablesShopping = true,

            note =
                "|cff00ff00Декор доступен с навыка 80!|r\n" ..
                "|cff00ff00Для покупки рецептов декора нужна книжка покупки рецептов.|r\n" ..
                "Продолжайте крафтить до 100.\n" ..
                "Этот шаг не добавляется в список покупок.",
        },
    },
}
