local PT = AhUI
if not PT then return end

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

G.guides.LEGION.TAILORING = {
    profession  = "Tailoring",
    skillLineID = 2534, -- Legion Tailoring
    name = "Портняжное дело — Legion (1–100)",
	
	learnViaQuest = true,
    -- =========================
    -- PROFESSION TRAINER
    -- =========================
    trainers = {
        alliance = {
            {
                npcID = 93542, -- Tanithria
                name  = "Tanithria",
                mapID = 627, -- Dalaran (Broken Isles)
                x = 35.8,
                y = 33.8,
            },
        },
        horde = {
            {
                npcID = 93542, -- Tanithria
                name  = "Tanithria",
                mapID = 627, -- Dalaran (Broken Isles)
                x = 35.8,
                y = 33.8,
            },
        },
    },

    -- =========================
    -- BANDAGE TRAINER
    -- =========================
	vendors = {
		alliance = {
			{
				npcID = 93529, -- Olisarra the Kind
				name  = "Olisarra the Kind",
				mapID = 627,
				x = 35.88,
				y = 37.62,
				teaches = {
					{ spellID = 202853 }, -- Silkweave Bandage
					{ spellID = 202854 }, -- Heavy Silkweave Bandage
				},
			},
			{
				npcID = 93524, -- Lalla Brightweave
				name  = "Lalla Brightweave",
				mapID = 627, -- Dalaran (Broken Isles)
				x = 36.04,
				y = 32.84,
				teaches = {
					{ spellID = 185936 }, -- Silkweave Epaulets (Rank 2)
				},
			},
		},
		horde = {
			{
				npcID = 93529, -- Olisarra the Kind
				name  = "Olisarra the Kind",
				mapID = 627,
				x = 35.88,
				y = 37.62,
				teaches = {
					{ spellID = 202853 },
					{ spellID = 202854 }, -- Heavy Silkweave Bandage
				},
			},
			{
				npcID = 93524, -- Lalla Brightweave
				name  = "Lalla Brightweave",
				mapID = 627,
				x = 36.04,
				y = 32.84,
				teaches = {
					{ spellID = 185936 },
				},
			},
		},
	},
    -- =========================
    -- STEPS
    -- =========================
    steps = {

        -- =====================================
        -- ШАГ 1: 1–30 (бинты)
        -- =====================================
        {
            min = 1,
            max = 30,
            recipes = {
                {
                    spellID = 202853, -- Silkweave Bandage
                    crafts  = 70,
                    requires = {
                        {
                            type    = "recipe_spell",
                            spellID = 202853,
                        },
                    },
                    reagents = {
                        { itemID = 124437, count = 1 }, -- Shal'dorei Silk
                    },
                },
            },
        },

        -- =====================================
        -- ШАГ 2: квесты у учителя (заглушка)
        -- =====================================
		{
			min = 30,
			max = 31,
			note =
				"|cff66ccffВыполняйте квесты у учителя профессии.|r\n" ..
				"|cffaaaaaaПосле первого квеста купите рецепт у |r|cffffff00Lalla Brightweave|r|cffaaaaaa.|r",
			recipes = {
				{
					spellID = 185936, -- Silkweave Epaulets (Rank 2)
					crafts  = 1,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 185936,
						},
					},
					reagents = {
						{ itemID = 124437, count = 18 }, -- Shal'dorei Silk
					},
				},
			},
		},
		{
			min = 31,
			max = 50,
			note = "После 50 навыка продолжайте выполнять цепочку квестов."..
					"Обращайте внимание на локальные задания, там может быть рецепт 3 ранга эполётов.",
			recipes = {
				{
					spellID = 185936, -- Silkweave Epaulets (Rank 2)
					crafts  = 20,      -- количество можно будет подправить
					requires = {
						{
							type    = "recipe_spell",
							spellID = 185936,
						},
					},
					reagents = {
						{ itemID = 124437, count = 18 }, -- Shal'dorei Silk
					},
				},
			},
		},
		-- =====================================
		-- ШАГ 4: 50–60
		-- =====================================
		{
			min = 50,
			max = 60,
			note = "Продолжайте цепочку квестов,\nрецепт учится во время прохождения.\nНайдёте рецепт 3 ранга - делайте.",
			recipes = {
				{
					spellID = 185962, -- 
					crafts  = 10,
					recipeSource = "quest",
					reagents = {
						{ itemID = 124440, count = 3 }, --
						{ itemID = 124437, count = 10 }, --
					},
				},
			},
		},

		-- =====================================
		-- ШАГ 5: 60–80 (бинты)
		-- =====================================
		{
			min = 60,
			max = 80,
			recipes = {
				{
					spellID = 202854, -- Heavy Silkweave Bandage
					crafts  = 20,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 202854,
						},
					},
					reagents = {
						{ itemID = 124437, count = 5 }, -- Shal'dorei Silk
						{ itemID = 123918, count = 1 }, -- Leystone Ore
					},
				},
			},
		},

		-- =====================================
		-- ШАГ 6: 80–90 (декор доступен)
		-- =====================================
		{
			min = 80,
			max = 90,
			disablesShopping = true,
			note = "|cff00ff00Декор доступен с 80 уровня навыка!|r",
			recipes = {
				{
					spellID = 202854, -- Heavy Silkweave Bandage
					crafts  = 30,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 202854,
						},
					},
					reagents = {
						{ itemID = 124437, count = 5 }, -- Shal'dorei Silk
						{ itemID = 123918, count = 1 }, -- Leystone Ore
					},
				},
			},
		},
		{
			min = 90,
			max = 100,
			disablesShopping = true,
			note = "|cff00ff00Проще всего прокачать декором.|r",
			recipes = {},
		},
    },
}
