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

G.guides.OUTLAND = G.guides.OUTLAND or {}

G.guides.OUTLAND.BLACKSMITHING = {
    profession  = "Blacksmithing",
    skillLineID = 2476, -- Outland Blacksmithing
    nameKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NAME",


    trainers = {
        alliance = {
            {
                npcID = 20125, -- Zula Slagfury
                name  = "Zula Slagfury",
                mapID = 111,   -- Shattrath City
                x = 69.8,
                y = 43.0,
            },
        },
        horde = {
            {
                npcID = 20125, -- Zula Slagfury
                name  = "Zula Slagfury",
                mapID = 111,   -- Shattrath City
                x = 69.8,
                y = 43.0,
            },
        },
    },
	
	vendors = {
		alliance = {
			{
				npcID = 19662, -- Aaron Hollman
				name  = "Aaron Hollman",
				mapID = 111, -- Shattrath City
				x = 64.0,
				y = 71.8,

				sells = {
					{ itemID = 23591 }, -- Plans: Adamantite Cleaver
					{ itemID = 23593 }, -- Plans: Adamantite Rapier
				},
			},
			{
				npcID = 19004, -- Mari Stonehand
				name  = "Mari Stonehand",
				mapID = 104, -- Shadowmoon Valley
				x = 36.8,
				y = 54.8,

				sells = {
					{ itemID = 23638 }, -- Plans: Lesser Ward of Shielding
				},
			},
		},

		horde = {
			{
				npcID = 19662, -- Aaron Hollman
				name  = "Aaron Hollman",
				mapID = 111, -- Shattrath City
				x = 64.0,
				y = 71.8,

				sells = {
					{ itemID = 23591 }, -- Plans: Adamantite Cleaver
					{ itemID = 23593 }, -- Plans: Adamantite Rapier
				},
			},
			{
				npcID = 19004, -- Mari Stonehand 
				name  = "Mari Stonehand",
				mapID = 104, -- Shadowmoon Valley
				x = 36.8,
				y = 54.8,

				sells = {
					{ itemID = 23638 }, -- Plans: Lesser Ward of Shielding
				},
			},
		},
	},

    steps = {

        -- =====================================
        -- 1 - 5: 7x Fel Weightstone
        -- (НЕ учитывать расовый бонус)
        -- =====================================
        {
            min = 1,
            max = 5,
            
            recipes = {
                {
                    spellID = 34607, -- Fel Weightstone
                    crafts  = 7,
                    autoReagents = true,
                },
            },
        },

        -- =====================================
        -- 5 - 15: 10x Fel Iron Plate Belt
        -- =====================================
        {
            min = 5,
            max = 15,

            recipes = {
                {
                    spellID = 29547, -- Fel Iron Plate Belt
                    crafts  = 10,
                    autoReagents = true,
                },
            },
        },

        -- =====================================
        -- 15 - 20: 5x Fel Iron Chain Gloves
        -- =====================================
        {
            min = 15,
            max = 20,

            recipes = {
                {
                    spellID = 29552, -- Fel Iron Chain Gloves
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- =====================================
        -- 20 - 25: 5x Fel Iron Plate Boots
        -- =====================================
        {
            min = 20,
            max = 25,

            recipes = {
                {
                    spellID = 29548, -- Fel Iron Plate Boots
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- =====================================
        -- 25 - 35: 45x Lesser Rune of Warding
        -- =====================================
        {
            min = 25,
            max = 35,

            recipes = {
                {
                    spellID = 32284, -- Lesser Rune of Warding
                    crafts  = 15,
                    autoReagents = true,
                },
            },

            noteKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NOTE_1",
        },

        -- =====================================
        -- 35 - 40: 5x Adamantite Cleaver
        -- (рецепт: лимитка у Aaron Hollman в Шаттрате)
        -- =====================================
		{
			min = 35,
			max = 45,

			recipes = {
				{
					spellID = 29568, -- Adamantite Cleaver
					crafts  = 5,
					autoReagents = true,

					requires = {          
						{
							type   = "recipe_item",
							itemID = 23591, -- Plans: Adamantite Cleaver
						},
					},
				},
			},

			noteKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NOTE_2",
		},

        -- =====================================
        -- 40 - 50: 45x Lesser Ward of Shielding
        -- (рецепт: лимитка Rohok / Mari Stonehand)
        -- =====================================
		{
			min = 40,
			max = 50,

			recipes = {
				{
					spellID = 29728, -- Lesser Ward of Shielding
					crafts  = 20,
					autoReagents = true,

					requires = {              
						{
							type   = "recipe_item",
							itemID = 23638, -- Plans: Lesser Ward of Shielding
						},
					},
				},
			},

			noteKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NOTE_3",
		},
		{
			min = 50,
			max = 55,

			recipes = {
				{
					spellID = 29568, -- Adamantite Cleaver
					crafts  = 5,
					autoReagents = true,

					requires = {      
						{
							type   = "recipe_item",
							itemID = 23591, -- Plans: Adamantite Cleaver
						},
					},
				},
			},
		},
        -- =====================================
        -- 50 - 60: 45x Adamantite Weightstone
        -- (рецепт: Fedryen Swiftspear, Cenarion Expedition Honored)
        -- =====================================
		{
			min = 55,
			max = 60,

			recipes = {
				{
					spellID = 29571, -- Adamantite Rapier
					crafts  = 10,
					autoReagents = true,

					requires = {
						{
							type   = "recipe_item",
							itemID = 23593, -- Plans: Adamantite Rapier
						},
					},
				},
			},

			noteKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NOTE_4",
		},

        -- =====================================
        -- 60 - 75
        -- =====================================
        {
            min = 60,
            max = 75,

            disablesCraftAll = true,
            disablesShopping = true,

            recipes = {
                -- The Scryers
                { spellID = 29608 }, -- Enchanted Adamantite Belt
                { spellID = 29610 }, -- Enchanted Adamantite Breastplate

                -- The Aldor
                { spellID = 29616 }, -- Flamebane Gloves

                -- Dungeons
                { spellID = 29619 }, -- Felsteel Gloves
                { spellID = 29649 }, -- Earthpeace Breastplate
            },

            noteKey = "PG_GUIDE_OUTLAND_BLACKSMITHING_NOTE_5",
        },
    },
}
