local PT = AhUI
if not PT then return end

local G = PT.ProfessionGuides
G.guides.DRAGONFLIGHT = G.guides.DRAGONFLIGHT or {}

G.guides.DRAGONFLIGHT.JEWELCRAFTING = {
    profession  = "Jewelcrafting",
    skillLineID = 2829, -- Dragon Isles Jewelcrafting
    nameKey = "PG_GUIDE_DRAGONFLIGHT_JEWELCRAFTING_NAME",


    trainers = {
        alliance = {
            {
                npcID = 190094,
                name  = "Tuluradormi",
                mapID = 2112,
                x = 40.8,
                y = 60.4,
            },
        },
        horde = {
            {
                npcID = 190094,
                name  = "Tuluradormi",
                mapID = 2112,
                x = 40.8,
                y = 60.4,
            },
        },
    },

    steps = {

        -- 1–6
        {
            min = 1,
            max = 6,
            useEffectiveSkill = true,
            disablesCraft = true,
            disablesCraftAll = true,
            noteKey = "PG_GUIDE_DRAGONFLIGHT_JEWELCRAFTING_NOTE_1",
            recipes = {
                {
                    spellID = 374627,
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- 6–7
        {
            min = 6,
            max = 7,
            useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 374480,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 7–8
        {
            min = 7,
            max = 8,
            recipes = {
                {
                    spellID = 374475,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 8–9
        {
            min = 8,
            max = 9,
            recipes = {
                {
                    spellID = 395696,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 9–12
        {
            min = 9,
            max = 12,
            recipes = {
                {
                    spellID = 374441,
                    crafts  = 3,
                    autoReagents = true,
                },
            },
        },

        -- 12–13
        {
            min = 12,
            max = 13,
            recipes = {
                {
                    spellID = 374478,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 13–14
        {
            min = 13,
            max = 14,
            recipes = {
                {
                    spellID = 374439,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 14–15
        {
            min = 14,
            max = 15,
            recipes = {
                {
                    spellID = 374438,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 15–16
        {
            min = 15,
            max = 16,
            recipes = {
                {
                    spellID = 374440,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 16–17
        {
            min = 16,
            max = 17,
            recipes = {
                {
                    spellID = 374437,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 17–19
        {
            min = 17,
            max = 19,
            recipes = {
                {
                    spellID = 376233,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 19–21
        {
            min = 19,
            max = 21,
            recipes = {
                {
                    spellID = 374494,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 21–24
        {
            min = 21,
            max = 24,
            recipes = {
                {
                    spellID = 374530,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 24–27
        {
            min = 24,
            max = 27,
            recipes = {
                {
                    spellID = 374532,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 27–28
        {
            min = 27,
            max = 28,
            recipes = {
                {
                    spellID = 374550,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 28–30
        {
            min = 28,
            max = 30,
            recipes = {
                {
                    spellID = 374506,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },

        -- 30–55
        {
            min = 30,
            max = 55,
			noteKey = "PG_GUIDE_DRAGONFLIGHT_JEWELCRAFTING_NOTE_2",
            recipes = {
                {
                    spellID = 374483,
                    crafts  = 30,
                    autoReagents = true,
                },
            },
        },

        -- 55–75
        {
            min = 55,
            max = 75,
            recipes = {
                {
                    spellID = 374463,
                    crafts  = 30,
                    autoReagents = true,
                },
            },
        },

        -- 75–100
        {
            min = 75,
            max = 100,
            disablesShopping = true,
            disablesCraft = true,
            disablesCraftAll = true,
            noteKey = "PG_GUIDE_DRAGONFLIGHT_JEWELCRAFTING_NOTE_3",
            recipes = {
				{
					spellID = 374497,
					crafts  = 1,
					autoReagents = true,
				},
			},
        },
    },
}
