local PT = AhUI
if not PT then return end

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

G.guides.DRAGONFLIGHT.TAILORING = {
    profession  = "Tailoring",
    skillLineID = 2831, -- Dragon Isles Tailoring
    name = "Портняжное дело — Dragonflight (1–100)",

    -- =========================
    -- PROFESSION TRAINER
    -- =========================
    trainers = {
        alliance = {
            {
                npcID = 193649, -- Threadfinder Fulafong
                name  = "Threadfinder Fulafong",
                mapID = 2112, -- Valdrakken
                x = 31.8,
                y = 67.6,
            },
        },
        horde = {
            {
                npcID = 193649,
                name  = "Threadfinder Fulafong",
                mapID = 2112,
                x = 31.8,
                y = 67.6,
            },
        },
    },

    -- =========================
    -- STEPS
    -- =========================
    steps = {

        -- 1–15
        {
            min = 1,
            max = 15,
			note = "Расплетайте из окна профессии",
			disablesCraftAll = true,
			disablesCraft = true,
            recipes = {
                {
                    spellID = 376562,
                    crafts  = 30,
                    reagents = {
                        { itemID = 193050, count = 5 }, -- Tattered Wildercloth
                    },
                },
            },
        },

        -- 15–18
        {
            min = 15,
            max = 18,
            recipes = {
                {
                    spellID = 376507,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 8 }, -- Wildercloth
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 5,
							crafted = true,
                        }, -- Spool of Wilderthread
                    },
                },
            },
        },

        -- 18–21
        {
            min = 18,
            max = 21,
            recipes = {
                {
                    spellID = 376553,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 5 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 4,
							crafted = true,
                        },
                        {
                            anyOf = {
                                { itemID = 191460 },
                                { itemID = 191461 },
                                { itemID = 191462 },
                            },
                            count = 5,
                        }, -- Hochenblume
                    },
                },
            },
        },

        -- 21–24
        {
            min = 21,
            max = 24,
            recipes = {
                {
                    spellID = 376547,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 8 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 6,
							crafted = true,
                        },
                    },
                },
            },
        },

        -- 24–27
        {
            min = 24,
            max = 27,
            recipes = {
                {
                    spellID = 376506,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 5 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 4,
							crafted = true,
                        },
                    },
                },
            },
        },

        -- 27–30
        {
            min = 27,
            max = 30,
            recipes = {
                {
                    spellID = 376551,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 5 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 4,
							crafted = true,
                        },
                    },
                },
            },
        },

        -- 30–32
        {
            min = 30,
            max = 32,
            recipes = {
                {
                    spellID = 395809,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 8 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 6,
							crafted = true,
                        },
                    },
                },
            },
        },

        -- 32–36
        {
            min = 32,
            max = 36,
            recipes = {
                {
                    spellID = 376543,
                    crafts  = 2,
                    reagents = {
                        { itemID = 193922, count = 6 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 4,
                        },
                    },
                },
            },
        },

        -- 36–38
        {
            min = 36,
            max = 38,
            recipes = {
                {
                    spellID = 395813,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 8 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 6,
                        },
                    },
                },
            },
        },

        -- 38–40
        {
            min = 38,
            max = 40,
            recipes = {
                {
                    spellID = 376549,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 3 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 4,
                        },
                        { itemID = 194123, count = 3 },
                    },
                },
            },
        },

        -- 40–46
        {
            min = 40,
            max = 46,
            recipes = {
                {
                    spellID = 395815,
                    crafts  = 3,
                    reagents = {
                        { itemID = 193922, count = 8 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 6,
                        },
                    },
                },
            },
        },

        -- 46–47
        {
            min = 46,
            max = 47,
            recipes = {
                {
                    spellID = 193950,
                    crafts  = 1,
                    reagents = {
                        { itemID = 192872, count = 3 }, -- Fractured Glass
                        {
                            anyOf = {
                                { itemID = 193926 },
                                { itemID = 193927 },
                                { itemID = 193928 },
                            },
                            count = 1,
                        }, -- Wildercloth Bolt
                    },
                },
            },
        },

        -- 47–51
        {
            min = 47,
            max = 51,
            recipes = {
                {
                    spellID = 395814,
                    crafts  = 2,
                    reagents = {
                        { itemID = 193922, count = 10 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 7,
                        },
                    },
                },
            },
        },

        -- 51–52
        {
            min = 51,
            max = 52,
            recipes = {
                {
                    spellID = 395807,
                    crafts  = 1,
                    reagents = {
                        { itemID = 193922, count = 10 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 7,
                        },
                    },
                },
            },
        },

        -- 52–53
        {
            min = 52,
            max = 53,
            recipes = {
                {
                    spellID = 376558,
                    crafts  = 2,
                    reagents = {
                        { itemID = 194124, count = 1 }, -- Vibrant Shard
                        {
                            anyOf = {
                                { itemID = 193926 },
                                { itemID = 193927 },
                                { itemID = 193928 },
                            },
                            count = 3,
                        },
                    },
                },
            },
        },

        -- 53–54
        {
            min = 53,
            max = 54,
            recipes = {
                {
                    spellID = 376538,
                    crafts  = 1,
                    reagents = {
                        { itemID = 194124, count = 1 },
                        {
                            anyOf = {
                                { itemID = 193929 },
                                { itemID = 193930 },
                                { itemID = 193931 },
                            },
                            count = 2,
                        }, -- Vibrant Spellthread
                    },
                },
            },
        },

        -- 54–65
        {
            min = 54,
            max = 65,
            recipes = {
                {
                    spellID = 395807,
                    crafts  = 25,
                    reagents = {
                        { itemID = 193922, count = 10 },
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 7,
                        },
                    },
                },
            },
        },

        -- 65–80
        {
            min = 65,
            max = 80,
			disablesCraft = true,
			disablesCraftAll = true,
            note =
                "Выберите специализацию |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 бутылок,"..
				"использовав которые вы сразу получите |cff00ff005 Искр|r.\n"..
				"Создавайте предмет из окна профессии.",
            recipes = {
                {
                    spellID = 376518,
                    crafts  = 5,
                    reagents = {
                        {
                            anyOf = {
                                { itemID = 192095 },
                                { itemID = 192096 },
                                { itemID = 192097 },
                            },
                            count = 6,
                        },
                        {
                            anyOf = {
                                { itemID = 193929 },
                                { itemID = 193930 },
                                { itemID = 193931 },
                            },
                            count = 8,
                        },
                        { anyOf = { { itemID = 190453 }, { itemID = 190454 }, { itemID = 190455 } }, count = 1 }, -- Sparks
                    },
                },
            },
        },

        -- 80–100 (декор)
        {
            min = 80,
            max = 100,
            disablesShopping = true,
			disablesCraft = true,
			disablesCraftAll = true,
            note =
                "|cff00ff00Декор доступен с навыка 80!|r\n\n" ..
                "Продолжайте крафтить |cff66ccffЯркие напульсники из ткани стихий|r\n" ..
                "до 100 уровня навыка.\n\n" ..
                "Используйте |cff00ff00стол заказов|r\n" ..
                "и своих |cff00ff00альтернативных персонажей|r.",
            recipes = {
                {
                    spellID = 376518,
                    crafts  = 10,
                },
            },
        },
    },
}
