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
    nameKey = "PG_GUIDE_LEGION_TAILORING_NAME",

	
	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,
                    autoReagents = true,
                    requires = {
                        {
                            type    = "recipe_spell",
                            spellID = 202853,
                        },
                    },
                },
            },
        },

        -- =====================================
        -- ШАГ 2: квесты у учителя (заглушка)
        -- =====================================
		{
			min = 30,
			max = 31,
			noteKey = "PG_GUIDE_LEGION_TAILORING_NOTE_1",
			recipes = {
				{
					spellID = 185936, -- Silkweave Epaulets (Rank 2)
					crafts  = 1,
					autoReagents = true,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 185936,
						},
					},
				},
			},
		},
		{
			min = 31,
			max = 50,
			noteKey = "PG_GUIDE_LEGION_TAILORING_NOTE_2",
			recipes = {
				{
					spellID = 185936, -- Silkweave Epaulets (Rank 2)
					crafts  = 20,      -- количество можно будет подправить
					autoReagents = true,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 185936,
						},
					},
				},
			},
		},
		-- =====================================
		-- ШАГ 4: 50–60
		-- =====================================
		{
			min = 50,
			max = 60,
			noteKey = "PG_GUIDE_LEGION_TAILORING_NOTE_3",
			recipes = {
				{
					spellID = 185962, -- 
					crafts  = 10,
					autoReagents = true,
					recipeSource = "quest",
				},
			},
		},

		-- =====================================
		-- ШАГ 5: 60–80 (бинты)
		-- =====================================
		{
			min = 60,
			max = 80,
			recipes = {
				{
					spellID = 202854, -- Heavy Silkweave Bandage
					crafts  = 20,
					autoReagents = true,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 202854,
						},
					},
				},
			},
		},

		-- =====================================
		-- ШАГ 6: 80–90 (декор доступен)
		-- =====================================
		{
			min = 80,
			max = 90,
			disablesShopping = true,
			noteKey = "PG_GUIDE_LEGION_TAILORING_NOTE_4",
			recipes = {
				{
					spellID = 202854, -- Heavy Silkweave Bandage
					crafts  = 30,
					autoReagents = true,
					requires = {
						{
							type    = "recipe_spell",
							spellID = 202854,
						},
					},
				},
			},
		},
		{
			min = 90,
			max = 100,
			disablesShopping = true,
			noteKey = "PG_GUIDE_LEGION_TAILORING_NOTE_5",
			recipes = {},
		},
    },
}
