-- ProfessionGuides/Leatherworking/TWW_Leatherworking.lua
local PT = AhUI
if not PT then return end
local G = PT.ProfessionGuides

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

G.guides.TWW.LEATHERWORKING = {
    profession  = "Leatherworking",
    skillLineID = 2880, -- The War Within Leatherworking
    nameKey = "PG_GUIDE_TWW_LEATHERWORKING_NAME",


    trainers = {
        alliance = {
            {
                npcID = 219080, -- Marbb
                name  = "Marbb",
                mapID = 2339,
                x = 54.33,
                y = 58.46,
            },
        },
        horde = {
            {
                npcID = 219080,
                name  = "Marbb",
                mapID = 2339,
                x = 54.33,
                y = 58.46,
            },
        },
    },

    steps = {

        ------------------------------------------------------------------
        -- Helper anyOf blocks:
        -- Stormcharged Leather: 212664, 212665, 212666
        -- Gloom Chitin: 212667, 212668, 212669
        -- Sunless Carapace: 212674, 212675, 212676
        -- Thunderous Hide: 212670, 212672, 212673
        ------------------------------------------------------------------

        -- 1–4
        {
            min = 1,
            max = 4,
            recipes = {{
                spellID = 443702,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 4–7
        {
            min = 4,
            max = 7,
            recipes = {{
                spellID = 443710,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 7–10
        {
            min = 7,
            max = 10,
            recipes = {{
                spellID = 444120,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 10–13
        {
            min = 10,
            max = 13,
            recipes = {{
                spellID = 443696,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 13–16
        {
            min = 13,
            max = 16,
            recipes = {{
                spellID = 443704,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 16–19
        {
            min = 16,
            max = 19,
            recipes = {{
                spellID = 443695,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 19–22
        {
            min = 19,
            max = 22,
            recipes = {{
                spellID = 443703,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 22–25
        {
            min = 22,
            max = 25,
            recipes = {{
                spellID = 444118,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 25–28
        {
            min = 25,
            max = 28,
            recipes = {{
                spellID = 443701,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 28–31
        {
            min = 28,
            max = 31,
            recipes = {{
                spellID = 443709,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 31–34
        {
            min = 31,
            max = 34,
            recipes = {{
                spellID = 443697,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 34–37
        {
            min = 34,
            max = 37,
            recipes = {{
                spellID = 444114,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 37–40
        {
            min = 37,
            max = 40,
            recipes = {{
                spellID = 444105,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 40–43
        {
            min = 40,
            max = 43,
            recipes = {{
                spellID = 444107,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 43–46
        {
            min = 43,
            max = 46,
            recipes = {{
                spellID = 443708,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 46–49
        {
            min = 46,
            max = 49,
            recipes = {{
                spellID = 443700,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 49–52
        {
            min = 49,
            max = 52,
            recipes = {{
                spellID = 443707,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 52–55
        {
            min = 52,
            max = 55,
            recipes = {{
                spellID = 443699,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 55–58
        {
            min = 55,
            max = 58,
            recipes = {{
                spellID = 443698,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 58–61
        {
            min = 58,
            max = 61,
            recipes = {{
                spellID = 443706,
                crafts  = 1,
                autoReagents = true,
            }},
        },

        -- 61–70
        {
            min = 61,
            max = 65,
            recipes = {{
                spellID = 443706,
                crafts  = 5,
                autoReagents = true,
            }},
        },

        {
            min = 65,
            max = 80,

            noteKey = "PG_GUIDE_TWW_LEATHERWORKING_NOTE_1",

            recipes = {
                {
                    spellID = 441461,
                    crafts  = 15,
                    autoReagents = true,
                },
            },
        },

        {
            min = 80,
            max = 100,
            disablesShopping = true,
            noteKey = "PG_GUIDE_TWW_LEATHERWORKING_NOTE_2",
        },
    },
}
