-- ProfessionGuides/Blacksmithing/TWW_Blacksmithing.lua
local PT = AhUI
if not PT then return end
local G = PT.ProfessionGuides

G.guides.TWW = G.guides.TWW or {}

G.guides.TWW.BLACKSMITHING = {
    profession  = "Blacksmithing",
    skillLineID = 2872, -- Khaz Algar Blacksmithing
    name = "Кузнечное дело — The War Within (1–100)",

    trainers = {
        alliance = {
            {
                npcID = 223644, -- Darean
                name  = "Darean",
                mapID = 2339, -- Khaz Algar
                x = 49.2,
                y = 63.6,
            },
        },
        horde = {
            {
                npcID = 223644, -- Darean
                name  = "Darean",
                mapID = 2339,
                x = 49.2,
                y = 63.6,
            },
        },
    },

    steps = {

        -- 1–15
        {
            min = 1,
            max = 15,
            recipes = {
                {
                    spellID = 450216,
                    crafts  = 48,
                    reagents = {
                        { itemID = 226202, count = 8 }, -- Echoing Flux
                        {
                            anyOf = {
                                { itemID = 210930 }, -- Bismuth Q1
                                { itemID = 210931 }, -- Q2
                                { itemID = 210932 }, -- Q3
                            },
                            count = 10,
                        },
                    },
                },
            },
            note =  "Грейд ресурсов не имеет значения - покупайте самый дешевый\n"..
					"Сделайте 48 штук — они понадобятся для следующих рецептов.",
        },

        -- 15–16
        {
            min = 15,
            max = 16,
            recipes = {
                {
                    spellID = 450268, -- Proficient Pickaxe
                    crafts  = 1,
                    reagents = {
                        { itemID = 213610, count = 5 }, -- Crystalline Powder
                        { itemID = 222417, count = 1, crafted = true }, -- Core Alloy
                    },
                },
            },
        },

        -- 16–17
        {
            min = 16,
            max = 17,
            recipes = {
                {
                    spellID = 450267,
                    crafts  = 1,
                    reagents = {
                        { itemID = 213610, count = 3 },
                        { itemID = 222417, count = 2, crafted = true },
                    },
                },
            },
        },

        -- 17–18
        {
            min = 17,
            max = 18,
            recipes = {
                {
                    spellID = 450269,
                    crafts  = 1,
                    reagents = {
                        { itemID = 213610, count = 5 },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 18–19
        {
            min = 18,
            max = 19,
            recipes = {
                {
                    spellID = 450219,
                    crafts  = 1,
                    reagents = {
                        { itemID = 226202, count = 5 },
                        { itemID = 213610, count = 1 },
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 2, crafted = true },
                    },
                },
            },
        },

        -- 19–20
        {
            min = 19,
            max = 20,
            recipes = {
                {
                    spellID = 450217, -- Charged Alloy
                    crafts  = 1,
                    reagents = {
                        { itemID = 226202, count = 5 },
                        { itemID = 213610, count = 1 },
                        {
                            anyOf = {
                                { itemID = 210933 }, { itemID = 210934 }, { itemID = 210935 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 2, crafted = true},
                    },
                },
            },
        },

        -- 20–21
        {
            min = 20,
            max = 21,
            recipes = {
                {
                    spellID = 450273,
                    crafts  = 1,
                    reagents = {
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
            note = "После крафта наденьте предмет.",
        },

        -- 21–23
        {
            min = 21,
            max = 23,
            recipes = {
                {
                    spellID = 450260,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 1,
                        },
                        { itemID = 222417, count = 2, crafted = true },
                    },
                },
            },
        },

        -- 23–25
        {
            min = 23,
            max = 25,
            recipes = {
                {
                    spellID = 450264,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 8,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 25–27
        {
            min = 25,
            max = 27,
            recipes = {
                {
                    spellID = 450261,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 3,
                        },
                        { itemID = 222417, count = 2, crafted = true },
                    },
                },
            },
        },

        -- 27–29
        {
            min = 27,
            max = 29,
            recipes = {
                {
                    spellID = 450252,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 29–31
        {
            min = 29,
            max = 31,
            recipes = {
                {
                    spellID = 450251,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 31–32
        {
            min = 31,
            max = 32,
            recipes = {
                {
                    spellID = 450274,
                    crafts  = 1,
                    reagents = {
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
            note = "После крафта наденьте предмет.",
        },

        -- 32–33
        {
            min = 32,
            max = 33,
            recipes = {
                {
                    spellID = 450256,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 8,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 33–34
        {
            min = 33,
            max = 34,
            recipes = {
                {
                    spellID = 450253,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 8,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 34–36
        {
            min = 34,
            max = 36,
            recipes = {
                {
                    spellID = 450266,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 4,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 36–38
        {
            min = 36,
            max = 38,
            recipes = {
                {
                    spellID = 450262,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 4,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 38–39
        {
            min = 38,
            max = 39,
            recipes = {
                {
                    spellID = 450263,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 6,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 39–40
        {
            min = 39,
            max = 40,
            recipes = {
                {
                    spellID = 450265,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 }, { itemID = 210931 }, { itemID = 210932 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 2, crafted = true },
                    },
                },
            },
        },

        -- 40–41
        {
            min = 40,
            max = 41,
            recipes = {
                {
                    spellID = 450288,
                    crafts  = 1,
                    reagents = {
                        { itemID = 213610, count = 1 },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 41–42
        {
            min = 41,
            max = 42,
            recipes = {
                {
                    spellID = 450289,
                    crafts  = 1,
                    reagents = {
                        { itemID = 213610, count = 1 },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 42–44
        {
            min = 42,
            max = 44,
            recipes = {
                {
                    spellID = 450255,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 10,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 44–50
        {
            min = 44,
            max = 50,
            recipes = {
                {
                    spellID = 450254,
                    crafts  = 3,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 5,
                        },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
        },

        -- 50–65
        {
            min = 50,
            max = 65,
            recipes = {
                {
                    spellID = 450284,
                    crafts  = 17,
                    reagents = {
                        { itemID = 213610, count = 1 },
                        { itemID = 222417, count = 1, crafted = true },
                    },
                },
            },
            note = "Откройте ветку |cff00ff00«Вечная кузница»|r.",
        },

        -- 65–75
        {
            min = 65,
            max = 75,
            recipes = {
                {
                    spellID = 450218,
                    crafts  = 20,
                    reagents = {
                        { itemID = 226202, count = 5 },
                        { itemID = 221758, count = 1 },
                        { itemID = 210939, count = 1 },
                        {
                            anyOf = {
                                { itemID = 210936 }, { itemID = 210937 }, { itemID = 210938 },
                            },
                            count = 2,
                        },
                        { itemID = 222417, count = 1 },
                    },
                },
            },
        },

        -- 75–100
        {
            min = 75,
            max = 80,
            recipes = {
                {
                    spellID = 453727,
                    crafts  = 15,
                    reagents = {
                        { itemID = 210814, count = 1, crafted = true }, -- Artisan's Acuity
                        { itemID = 213610, count = 5 },
                        { itemID = 222417, count = 1 },
                    },
                },
            },
            -- disablesShopping = true,
            disablesCraftAll = true,
            note =  "КД 2 часа, очки знаний в первом таланте\n"..
					"уменьшают восстановление рецепта\n"..
					"|cff00ff00Декор доступен с навыка 80!|r",
        },        
		{
            min = 80,
            max = 100,
            recipes = {
                {
                    spellID = 453727,
                    crafts  = 20,
                    reagents = {
                        { itemID = 210814, count = 1, crafted = true }, -- Artisan's Acuity
                        { itemID = 213610, count = 5 },
                        { itemID = 222417, count = 1 },
                    },
                },
            },
            disablesShopping = true,
            disablesCraftAll = true,
            note = "|cff00ff00Декор доступен с навыка 80!|r",
        },
    },
}
