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
    name = "Ювелирное дело — Dragonflight (1–100)",

    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,
            note = "Просеивайте из окна профессии.",
            recipes = {
                {
                    spellID = 374627,
                    crafts  = 5,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 190394 },
                                { itemID = 190395 },
                                { itemID = 190396 },
                            },
                            count = 5,
                        }, -- Serevite Ore
                    },
                },
            },
        },

        -- 6–7
        {
            min = 6,
            max = 7,
            useEffectiveSkill = true,
            recipes = {
                {
                    spellID = 374480,
                    crafts  = 1,
                    reagents = {
                        { itemID = 192880, count = 4 }, -- Crumbled Stone
                        { itemID = 190315, count = 2 }, -- Rousing Earth
                        {
                            anyOf = {
                                { itemID = 192849 },
                                { itemID = 192850 },
                                { itemID = 192851 },
                            },
                            count = 1,
                            --crafted = true,
                        }, -- Eternity Amber
                    },
                },
            },
        },

        -- 7–8
        {
            min = 7,
            max = 8,
            recipes = {
                {
                    spellID = 374475,
                    crafts  = 1,
                    reagents = {
                        { itemID = 192833, count = 1, crafted = true }, -- Misshapen Filigree
                        {
                            anyOf = {
                                { itemID = 192840 },
                                { itemID = 192841 },
                                { itemID = 192842 },
                            },
                            count = 1,
                            --crafted = true,
                        }, -- Mystic Sapphire
                    },
                },
            },
        },

        -- 8–9
        {
            min = 8,
            max = 9,
            recipes = {
                {
                    spellID = 395696,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 192849 },
                                { itemID = 192850 },
                                { itemID = 192851 },
                            },
                            count = 3,
                            --crafted = true,
                        },
                    },
                },
            },
        },

        -- 9–12
        {
            min = 9,
            max = 12,
            recipes = {
                {
                    spellID = 374441,
                    crafts  = 3,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 192849 },
                                { itemID = 192850 },
                                { itemID = 192851 },
                            },
                            count = 3,
                            --crafted = true,
                        },
                    },
                },
            },
        },

        -- 12–13
        {
            min = 12,
            max = 13,
            recipes = {
                {
                    spellID = 374478,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190315, count = 1 }, -- Rousing Earth
                        { itemID = 192872, count = 3 }, -- Fractured Glass
                        {
                            anyOf = {
                                { itemID = 193368 },
                                { itemID = 193369 },
                                { itemID = 193370 },
                            },
                            count = 2,
                            --crafted = true,
                        }, -- Silken Gemdust
                    },
                },
            },
        },

        -- 13–14
        {
            min = 13,
            max = 14,
            recipes = {
                {
                    spellID = 374439,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190328, count = 2 }, -- Rousing Frost
                        {
                            anyOf = {
                                { itemID = 192843 },
                                { itemID = 192844 },
                                { itemID = 192845 },
                            },
                            count = 2,
                        }, -- Vibrant Emerald
                    },
                },
            },
        },

        -- 14–15
        {
            min = 14,
            max = 15,
            recipes = {
                {
                    spellID = 374438,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190315, count = 2 }, -- Rousing Earth
                        {
                            anyOf = {
                                { itemID = 192840 },
                                { itemID = 192841 },
                                { itemID = 192842 },
                            },
                            count = 2,
                        }, -- Mystic Sapphire
                    },
                },
            },
        },

        -- 15–16
        {
            min = 15,
            max = 16,
            recipes = {
                {
                    spellID = 374440,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190320, count = 2 }, -- Rousing Fire
                        {
                            anyOf = {
                                { itemID = 192846 },
                                { itemID = 192847 },
                                { itemID = 192848 },
                            },
                            count = 2,
                        }, -- Sundered Onyx
                    },
                },
            },
        },

        -- 16–17
        {
            min = 16,
            max = 17,
            recipes = {
                {
                    spellID = 374437,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190326, count = 2 }, -- Rousing Air
                        {
                            anyOf = {
                                { itemID = 192837 },
                                { itemID = 192838 },
                                { itemID = 192839 },
                            },
                            count = 2,
                        }, -- Queen's Ruby
                    },
                },
            },
        },

        -- 17–19
        {
            min = 17,
            max = 19,
            recipes = {
                {
                    spellID = 376233,
                    crafts  = 1,
                    reagents = {
                        { itemID = 190320, count = 5 }, -- Rousing Fire
                        {
                            anyOf = {
                                { itemID = 192834 },
                                { itemID = 192835 },
                                { itemID = 192836 },
                            },
                            count = 1,
                        }, -- Shimmering Clasp
                        {
                            anyOf = {
                                { itemID = 192849 },
                                { itemID = 192850 },
                                { itemID = 192851 },
                            },
                            count = 2,
                        }, -- Eternity Amber
                    },
                },
            },
        },

        -- 19–21
        {
            min = 19,
            max = 21,
            recipes = {
                {
                    spellID = 374494,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 192834 },
                                { itemID = 192835 },
                                { itemID = 192836 },
                            },
                            count = 1,
                        },
                        {
                            anyOf = {
                                { itemID = 192846 },
                                { itemID = 192847 },
                                { itemID = 192848 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 21–24
        {
            min = 21,
            max = 24,
            recipes = {
                {
                    spellID = 374530,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 190394 },
                                { itemID = 190395 },
                                { itemID = 190396 },
                            },
                            count = 2,
                        },
                        { itemID = 192876, count = 2 }, -- Frameless Lens
                    },
                },
            },
        },

        -- 24–27
        {
            min = 24,
            max = 27,
            recipes = {
                {
                    spellID = 374532,
                    crafts  = 1,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 190394 },
                                { itemID = 190395 },
                                { itemID = 190396 },
                            },
                            count = 2,
                        },
                        {
                            anyOf = {
                                { itemID = 192846 },
                                { itemID = 192847 },
                                { itemID = 192848 },
                            },
                            count = 1,
                        },
                        { itemID = 192876, count = 2 },
                    },
                },
            },
        },

        -- 27–28
        {
            min = 27,
            max = 28,
            recipes = {
                {
                    spellID = 374550,
                    crafts  = 1,
                    reagents = {
                        { itemID = 192872, count = 3 },
                        {
                            anyOf = {
                                { itemID = 192849 },
                                { itemID = 192850 },
                                { itemID = 192851 },
                            },
                            count = 4,
                        },
                        {
                            anyOf = {
                                { itemID = 193368 },
                                { itemID = 193369 },
                                { itemID = 193370 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 28–30
        {
            min = 28,
            max = 30,
            recipes = {
                {
                    spellID = 374506,
                    crafts  = 2,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 192834 },
                                { itemID = 192835 },
                                { itemID = 192836 },
                            },
                            count = 1,
                        },
                        {
                            anyOf = {
                                { itemID = 192837 },
                                { itemID = 192838 },
                                { itemID = 192839 },
                            },
                            count = 1,
                        },
                        { itemID = 192883, count = 2 },
                        {
                            anyOf = {
                                { itemID = 193368 },
                                { itemID = 193369 },
                                { itemID = 193370 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 30–55
        {
            min = 30,
            max = 55,
			note = "Для открытия этого рецепта нужно изучить ветку\n|cff00ff00Предприимчивость|r\n" ..
					"в талантах профессии.",
            recipes = {
                {
                    spellID = 374483,
                    crafts  = 30,
                    reagents = {
                        { itemID = 190320, count = 1 },
                        { itemID = 193922, count = 1 },
                        {
                            anyOf = {
                                { itemID = 193368 },
                                { itemID = 193369 },
                                { itemID = 193370 },
                            },
                            count = 1,
                        },
                    },
                },
            },
        },

        -- 55–75
        {
            min = 55,
            max = 75,
            recipes = {
                {
                    spellID = 374463,
                    crafts  = 30,
                    reagents = {
                        { itemID = 190329, count = 1 }, -- Awakened Frost
                        {
                            anyOf = {
                                { itemID = 192866 },
                                { itemID = 192867 },
                                { itemID = 192868 },
                            },
                            count = 1,
                        }, -- Nozdorite
                    },
                },
            },
        },

        -- 75–100
        {
            min = 75,
            max = 100,
            disablesShopping = true,
            disablesCraft = true,
            disablesCraftAll = true,
            note =
			    "|cff00ff00Можете докрафтить Ноздорит(штук 10) до 80.|r\n" ..
			    "|cff00ff00Декор доступен с 80 уровня навыка.|r\n" ..
				"Выберите специализацию |cff00ff00Инкрустация|r.\n" ..
				"Вложите:\n" ..
				"• 10 очков — Инкрустация\n" ..
				"• 10 очков — Драгоценности\n" ..
				"Откройте |cff00ff00Кольца|r.\n\n" ..
				"|cff66ccffДля крафта нужны Искры|r:\n" ..
				"1) Пройдите сюжет Dragonflight.\n" ..
				"   Если уже пройден — летите к Алекстразе\n" ..
				"   и выполните квест |cff00ff00«Известность на Драконьих островах»|r,\n" ..
				"   сдайте у Косзару.\n\n" ..
				"2) Возьмите у Косзару квест\n" ..
				"   |cff00ff00«Искусность приходит с опытом»|r,\n" ..
				"   сдайте у Грейзика Заклёпастера.\n" ..
				"   Затем возьмите |cff00ff00«Как завести машину»|r.\n\n" ..
				"Если эти квесты уже выполнены,\n" ..
				"то доступен будет пропуск и Дева вдохновения выдаст 5 бутылок,\n" ..
				"использовав которые вы сразу получите |cff00ff005 Искр|r.\n" ..
				"Создавайте предмет из окна профессии.",
            recipes = {
				{
					spellID = 374497,
					crafts  = 1,
					reagents = {
						{
							anyOf = {
								{ itemID = 192834 },
								{ itemID = 192835 },
								{ itemID = 192836 },
							},
							count = 2,
						}, -- Shimmering Clasp

						{
							anyOf = {
								{ itemID = 192859 },
								{ itemID = 192860 },
								{ itemID = 192861 },
							},
							count = 1,
						}, -- Ysemerald

						{
							anyOf = {
								{ itemID = 192887 },
								{ itemID = 192878 },
								{ itemID = 192879 },
							},
							count = 1,
						}, -- Elemental Harmony

						{
							anyOf = {
								{ itemID = 190453 },
								{ itemID = 190454 },
								{ itemID = 190455 },
							},
							count = 1,
						}, -- Spark
					},
				},
			},
        },
    },
}
