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
    nameKey = "PG_GUIDE_DRAENOR_BLACKSMITHING_NAME",


	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,
                    autoReagents = true,
                },
            },

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

            noteKey = "PG_GUIDE_DRAENOR_BLACKSMITHING_NOTE_1",
        },

        -- =====================================
        -- 1–80 : Truesteel Grinder
        -- =====================================
        {
            min = 2,
            max = 80,
			useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 171699, -- Truesteel Grinder
					crafts  = 78,
                    autoReagents = true,
                },
            },

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

            noteKey = "PG_GUIDE_DRAENOR_BLACKSMITHING_NOTE_2",
        },

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

            recipes = {
                {
                    spellID = 171699, -- Truesteel Grinder
					crafts  = 20,
                    autoReagents = true,
                },
            },

            disablesShopping = true,

            noteKey = "PG_GUIDE_DRAENOR_BLACKSMITHING_NOTE_3",
        },
    },
}
