local PT = AhUI
if not PT then return end

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

G.guides.TWW.JEWELCRAFTING = {
    profession  = "Jewelcrafting",
    skillLineID = 2879, -- The War Within Jewelcrafting
    name = "Ювелирное дело — The War Within (1–100)",

    trainers = {
        alliance = {
            {
                npcID = 219087,
                name  = "Makir",
                mapID = 2339,
                x = 49.6,
                y = 71.0,
            },
        },
        horde = {
            {
                npcID = 219087,
                name  = "Makir",
                mapID = 2339,
                x = 49.6,
                y = 71.0,
            },
        },
    },

    steps = {

        -- 1–15
        {
            min = 1,
            max = 15,
            note = "Просейте 145 висмута из окна профессии.",
            disablesCraft = true,
            disablesCraftAll = true,
            recipes = {
                {
                    spellID = 434018,
                    crafts  = 29,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 210930 },
                                { itemID = 210931 },
                                { itemID = 210932 },
                            },
                            count = 5,
                        }, -- Bismuth
                    },
                },
            },
        },

        -- 15–17
        {
            min = 15,
            max = 17,
            recipes = {
                {
                    spellID = 435324,
                    crafts  = 2,
                    reagents = {
                        { itemID = 213398, count = 5, crafted = true }, -- Handful of Pebbles
                        { itemID = 213399, count = 1 }, -- Glittering Glass
                        {
                            anyOf = {
                                { itemID = 210930 },
                                { itemID = 210931 },
                                { itemID = 210932 },
                            },
                            count = 5,
                        }, -- Bismuth
                    },
                },
            },
        },

        -- 17–18
        {
            min = 17,
            max = 18,
            recipes = {
                {
                    spellID = 434537,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 1 }, -- Ambivalent Amber
                        {
                            anyOf = {
                                { itemID = 213750 },
                                { itemID = 213751 },
                                { itemID = 213752 },
                            },
                            count = 1,
                        }, -- Engraved Gemcutter
                    },
                },
            },
        },

        -- 18–19
        {
            min = 18,
            max = 19,
            recipes = {
                {
                    spellID = 434539,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213750 },
                                { itemID = 213751 },
                                { itemID = 213752 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 19–20
        {
            min = 19,
            max = 20,
            note = "Если не достигли 20, скрафтите другие янтари ради бонуса первого крафта.",
            recipes = {
                {
                    spellID = 434540,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213750 },
                                { itemID = 213751 },
                                { itemID = 213752 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 20–22
        {
            min = 20,
            max = 22,
            recipes = {
                {
                    spellID = 435371,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212495, count = 1 }, -- Radiant Ruby
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        }, -- Crushed Gemstones
                        {
                            anyOf = {
                                { itemID = 213756 },
                                { itemID = 213757 },
                                { itemID = 213758 },
                            },
                            count = 10,
                        }, -- Marbled Stone
                    },
                },
            },
        },

        -- 22–26
        {
            min = 22,
            max = 26,
            recipes = {
                {
                    spellID = 435323,
                    crafts  = 2,
                    reagents = {
                        { itemID = 213399, count = 1 },
                        { itemID = 212498, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 3,
                        },
                    },
                },
            },
        },

        -- 26–31
        {
            min = 26,
            max = 31,
            recipes = {
                {
                    spellID = 435325,
                    crafts  = 3,
                    reagents = {
                        { itemID = 213399, count = 10 },
                        { itemID = 212498, count = 2 },
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                    },
                },
            },
        },

        -- 31–33
        {
            min = 31,
            max = 33,
            recipes = {
                {
                    spellID = 435379,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 2 },
                        { itemID = 212495, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                    },
                },
            },
        },

        -- 33–35
        {
            min = 33,
            max = 35,
            recipes = {
                {
                    spellID = 435380,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 2 },
                        { itemID = 212508, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 2,
                        },
                    },
                },
            },
        },

        -- 35–37
        {
            min = 35,
            max = 37,
            recipes = {
                {
                    spellID = 435377,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                        { 
							anyOf = {
								{ itemID = 213753 },
								{ itemID = 213754 },
								{ itemID = 213755 },
							},
							count = 2, 
						},
                    },
                },
            },
        },

        -- 37–39
        {
            min = 37,
            max = 39,
            recipes = {
                {
                    spellID = 435373,
                    crafts  = 1,
                    reagents = {
                        { itemID = 212498, count = 1 },
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                        { itemID = 219949, count = 1 },
                    },
                },
            },
        },

        -- 39–41
        {
            min = 39,
            max = 41,
            recipes = {
                {
                    spellID = 435373,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                        { 
							anyOf = {
								{ itemID = 213753 },
								{ itemID = 213754 },
								{ itemID = 213755 },
							},
							count = 1, 
						},
                    },
                },
            },
        },

        -- 41–55
        {
            min = 41,
            max = 55,
            recipes = {
                {
                    spellID = 435375,
                    crafts  = 17,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 4,
                        },
                        { 
							anyOf = {
								{ itemID = 213753 },
								{ itemID = 213754 },
								{ itemID = 213755 },
							},
							count = 1, 
						},
                    },
                },
            },
        },

        -- 55–80
        {
            min = 55,
            max = 80,
            note = "Рецепт продаётся на аукционе.",
            recipes = {
                {
                    spellID = 435319,
                    crafts  = 8,
                    reagents = {
                        { itemID = 212514, count = 1 }, -- Blasphemite
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 24,
                        },
                        {
                            anyOf = {
                                { itemID = 213750 },
                                { itemID = 213751 },
                                { itemID = 213752 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 80–100 (декор)
        {
            min = 80,
            max = 100,
            disablesShopping = true,
            note = "|cff00ff00Декор доступен с 80 уровня навыка.|r\n",
            recipes = {
                {
                    spellID = 435319,
                    crafts  = 7,
                    reagents = {
                        { itemID = 212514, count = 1 }, -- Blasphemite
                        {
                            anyOf = {
                                { itemID = 213219 },
                                { itemID = 213220 },
                                { itemID = 213221 },
                            },
                            count = 24,
                        },
                        {
                            anyOf = {
                                { itemID = 213750 },
                                { itemID = 213751 },
                                { itemID = 213752 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },
    },
}
