local PT = AhUI
if not PT then return end
local G = PT.ProfessionGuides

G.guides.DRAGONFLIGHT = G.guides.DRAGONFLIGHT or {}

-- =====================================================
-- Engineering — Dragonflight
-- skillLineID: 2827
-- =====================================================

G.guides.DRAGONFLIGHT.ENGINEERING = {
    profession  = "Engineering",
    skillLineID = 2827, -- Dragon Isles Engineering
    name = "Инженерное дело — Dragonflight (1–100)",

    trainers = {
        alliance = {
            {
                npcID = 193824, -- Тикки Трексобум
                name  = "Тикки Трексобум",
                mapID = 2112,
                x = 42.25,
                y = 48.65,
            },
        },
        horde = {
            {
                npcID = 193824,
                name  = "Тикки Трексобум",
                mapID = 2112,
                x = 42.25,
                y = 48.65,
            },
        },
    },

    steps = {

        -- 1-15
        {
            min = 1,
            max = 15,
            recipes = {{
                spellID = 382375,
                crafts  = 25,
                reagents = {
                    {
                        count = 4,
                        anyOf = {
                            { itemID = 190394 }, -- Serevite Ore (Q1)
                            { itemID = 190395 }, -- Serevite Ore (Q2)
                            { itemID = 190396 }, -- Serevite Ore (Q3)
                        },
                    },
                },
            }},
        },

        -- 15-21
        {
            min = 15,
            max = 21,
            recipes = {{
                spellID = 382376,
                crafts  = 6,
                reagents = {
                    { itemID = 190315, count = 2 },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 }, -- Handful of Serevite Bolts (Q1)
                            { itemID = 198184 }, -- (Q2)
                            { itemID = 198185 }, -- (Q3)
                        },
                    },
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 189143 }, -- Draconium Ore (Q1)
                            { itemID = 188658 }, -- (Q2)
                            { itemID = 190311 }, -- (Q3)
                        },
                    },
                },
            }},
        },

        -- 21-23
        {
            min = 21,
            max = 23,
            recipes = {{
                spellID = 382393,
                crafts  = 1,
                reagents = {
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                },
            }},
        },

        -- 23-25
        {
            min = 23,
            max = 25,
            recipes = {{
                spellID = 382392,
                crafts  = 1,
                reagents = {
                    { itemID = 201832, count = 1 },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                },
            }},
        },

        -- 25-27
        {
            min = 25,
            max = 27,
            recipes = {{
                spellID = 382397,
                crafts  = 1,
                reagents = {
                    {
                        count = 1,
                        anyOf = {
                            { itemID = 198192 }, -- Greased-Up Gears (Q1)
                            { itemID = 198193 }, -- (Q2)
                            { itemID = 198194 }, -- (Q3)
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198186 }, -- Shock-Spring Coil (Q1)
                            { itemID = 198187 }, -- (Q2)
                            { itemID = 198188 }, -- (Q3)
                        },
                    },
                },
            }},
        },

        -- 27-29
        {
            min = 27,
            max = 29,
            recipes = {{
                spellID = 382395,
                crafts  = 1,
                reagents = {
                    {
                        count = 1,
                        anyOf = {
                            { itemID = 198192 },
                            { itemID = 198193 },
                            { itemID = 198194 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                },
            }},
        },

        -- 29-31
        {
            min = 29,
            max = 31,
            recipes = {{
                spellID = 382398,
                crafts  = 1,
                reagents = {
                    { itemID = 201832, count = 1 },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198186 },
                            { itemID = 198187 },
                            { itemID = 198188 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                },
            }},
        },

        -- 31-33
        {
            min = 31,
            max = 33,
            recipes = {{
                spellID = 382396,
                crafts  = 1,
                reagents = {
                    {
                        count = 3,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 3,
                        anyOf = {
                            { itemID = 198186 },
                            { itemID = 198187 },
                            { itemID = 198188 },
                        },
                    },
                    {
                        count = 4,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                },
            }},
        },

        -- 33-41
        {
            min = 33,
            max = 41,
            recipes = {{
                spellID = 382393,
                crafts  = 4,
                reagents = {
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                },
            }},
        },

        -- 41-45
        {
            min = 41,
            max = 45,
            recipes = {{
                spellID = 396777,
                crafts  = 4,
                reagents = {
                    {
                        count = 3,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198186 },
                            { itemID = 198187 },
                            { itemID = 198188 },
                        },
                    },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 189143 },
                            { itemID = 188658 },
                            { itemID = 190311 },
                        },
                    },
                },
            }},
        },

        -- 45-50
        {
            min = 45,
            max = 50,
            disableCraft    = true,
            disableCraftAll = true,
            note =
                "Откройте специализацию |cff00ff00«Польза прежде красоты»|r,\n" ..
                "вложите |cffffff005|r очков в первый талант и откройте подкатегорию |cff00ff00«Снаряжение»|r.\n\n" ..
                "Изготавливайте предмет до тех пор, пока не откроете рецепт наручей\n" ..
                "(может произойти раньше 50) — и переходите к следующему шагу.",
            recipes = {{
                spellID = 382387,
                crafts  = 5,
                reagents = {
                    { itemID = 190320, count = 1 },
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 198186 }, -- Shock-Spring Coil
                            { itemID = 198187 },
                            { itemID = 198188 },
                        },
                    },
                    {  
						count = 5,
						anyOf = {
							{itemID = 198189},
							{itemID = 198190},
							{itemID = 198191},
						}, 
					},
                    {
                        count = 5,
                        anyOf = {
                            { itemID = 190394 }, -- Serevite Ore
                            { itemID = 190395 },
                            { itemID = 190396 },
                        },
                    },
                },
            }},
        },

        -- 50-65
        {
            min = 50,
            max = 65,
            recipes = {{
                spellID = 382348,
                crafts  = 50,
                reagents = {
                    { itemID = 190320, count = 5 },
                    {
                        count = 2,
                        anyOf = {
                            { itemID = 198183 },
                            { itemID = 198184 },
                            { itemID = 198185 },
                        },
                    },
                    {
                        count = 3,
                        anyOf = {
                            { itemID = 198186 },
                            { itemID = 198187 },
                            { itemID = 198188 },
                        },
                    },
                },
            }},
        },

        -- 65-80 (Искры / наручи)
        {
            min = 65,
            max = 80,
            disablesShopping = true,
            note =
                "|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\n" ..
                "Создавайте наручи (рецепт, который вы открыли) из окна профессии.",
        },

        -- 80-100
        {
            min = 80,
            max = 100,
            disablesShopping = true,
            note = "|cff00ff00Декор доступен на 80 уровне навыка!|r\nКачайте декором или заказами с Искрой.",
        },

    },
}