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

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

G.guides.DRAGONFLIGHT.ALCHEMY = {
	profession  = "Alchemy",
	skillLineID = 2823, -- Dragon Isles Alchemy
	nameKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NAME",

	
	trainers = {
		alliance = {
			{
				npcID = 185545, -- Conflago
    name  = "Conflago",
				mapID = 2112, -- Valdrakken
				x = 36.6,
				y = 71.4,
			},
		},
		horde = {
			{
				npcID = 185545, -- Conflago
				name  = "Conflago",
				mapID = 2112, -- Valdrakken
				x = 36.6,
				y = 71.4,
			},
		},
	},
	
	vendors = {
		alliance = {
			{
				npcID = 194057,
				name  = "Rabul", -- можешь оставить nil
				mapID = 2112, -- Valdrakken
				x = 35.5,
				y = 59.1,

				sells = {
					{
						itemID = 191586, -- Recipe: Sagacious Incense
						price  = {
							{ itemID = 190456, count = 75 }, -- Artisan's Mettle
						},
					},
				},
			},
		},
		horde = {
			{
				npcID = 194057,
				name  = "Rabul",
				mapID = 2112, -- Valdrakken
				x = 35.5,
				y = 59.1,

				sells = {
					{
						itemID = 191586,
						price  = {
							{ itemID = 190456, count = 75 },
						},
					},
				},
			},
		},
	},

	steps = {

		-- =====================================
		-- 1–7 Refreshing Healing Potion
		-- =====================================
		{
			min = 1,
			max = 7,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 370539, -- Refreshing Healing Potion
					crafts = 2,
					autoReagents = true,
				},
			},
			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_9",
		},

		-- =====================================
		-- 7–10 Aerated Mana Potion
		-- =====================================
		{
			min = 7,
			max = 10,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 370547, -- Aerated Mana Potion
					crafts = 1,
					autoReagents = true,
				},
			},
			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_10",
		},

		-- =====================================
		-- 10–13 Reclaim Concoctions
		-- =====================================
		{
			min = 10,
			max = 15,
			useEffectiveSkill = true,
			recipes = {
				{
					spellID = 370748, -- Reclaim Concoctions
					crafts = 5,
					autoReagents = true,
				},
			},
			disablesCraft = true,
			disablesCraftAll = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_1",
		},
		-- =====================================
		-- 13–15 Omnium Draconis
		-- =====================================
		-- {
			-- min = 13,
			-- max = 15,
			-- useEffectiveSkill = true,
			-- recipes = {
				-- {
					-- spellID = 370722, -- Omnium Draconis
					-- crafts = 2,
					-- reagents = {

						-- -- Writhebark (любой грейд)
						-- {
							-- anyOf = {
								-- { itemID = 191470 }, -- Q1
								-- { itemID = 191471 }, -- Q2
								-- { itemID = 191472 }, -- Q3
							-- },
							-- count = 1,
						-- },

						-- -- Saxifrage (любой грейд)
						-- {
							-- anyOf = {
								-- { itemID = 191464 }, -- Q1
								-- { itemID = 191465 }, -- Q2
								-- { itemID = 191466 }, -- Q3
							-- },
							-- count = 1,
						-- },

						-- -- Bubble Poppy (любой грейд)
						-- {
							-- anyOf = {
								-- { itemID = 191467 }, -- Q1
								-- { itemID = 191468 }, -- Q2
								-- { itemID = 191469 }, -- Q3
							-- },
							-- count = 1,
						-- },

						-- -- Hochenblume (любой грейд)
						-- {
							-- anyOf = {
								-- { itemID = 191460 }, -- Q1
								-- { itemID = 191462 }, -- Q2
								-- { itemID = 191461 }, -- Q3
							-- },
							-- count = 5,
						-- },
					-- },
				-- },
			-- },
		-- },

		-- =====================================
		-- 15–16 Basic Potion Experimentation
		-- =====================================
		{
		  min = 15,
		  max = 16,
		  useEffectiveSkill = true,
		  experiment = "potion",

		  recipes = {
			{
			  spellID = 370743, -- Basic Potion Experimentation
			  crafts  = 1,
			  autoReagents = true,
			},
		  },

		  disablesCraftAll = true,
		  disablesShopping = true,

		  noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_2",
		},


		-- -- =====================================
		-- -- 16–17 Basic Phial Experimentation
		-- -- =====================================
		{
			min = 16,
			max = 17,
			useEffectiveSkill = true,
			experiment = "phial",

			recipes = {
				{
					spellID = 370746, -- Basic Phial Experimentation
					crafts  = 1,
					autoReagents = true,
				},
			},

			disablesCraftAll = true,
			disablesShopping = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_3",
		},


		-- -- =====================================
		-- -- 17–40 Any +3 Air Potion
		-- -- =====================================
		{
			min = 17,
			max = 40,

			experiment = "potion",

			recipes = {
				{
					spellID = 370556, -- Potion of the Hushed Zephyr
					crafts  = 20,
					autoReagents = true,
				},

				{
					spellID = 370561, -- Potion of Shocking Disclosure
					crafts  = 20,
					autoReagents = true,
				},

				{
					spellID = 370558, -- Potion of Gusts
					crafts  = 20,
					autoReagents = true,
				},

				{
					spellID = 370743, -- Basic Potion Experimentation
					crafts  = 20,
					autoReagents = true,
				},
			},

			disablesCraftAll = true,
			disablesShopping = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_4",
		},
		
		{
			min = 40,
			max = 50,

			experiment = "phial",

			recipes = {
				{
					spellID = 370746, -- Basic Phial Experimentation
					crafts  = 10,      -- всегда по 1 эксперименту
					autoReagents = true,
				},
			},

			disablesCraftAll = true,
			disablesShopping = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_5",
		},		
		
		{
			min = 50,
			max = 56,

			recipes = {
				{
					spellID = 370551, -- Elemental Potion of Power
					crafts  = 2,
					autoReagents = true,
				},
			},

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_6",
		},

		{
			min = 56,
			max = 80,
			
			recipes = {
				{
					spellID = 370743, -- Basic Potion Experimentation
autoReagents = true,
				},
				{
					spellID = 370746, -- Basic Phial Experimentation
autoReagents = true,
				},
			},

			disablesCraftAll = true,
			disablesShopping = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_7",
			},		
		{
			min = 80,
			max = 100,
			
			recipes = {
				{
					spellID = 370745, -- Basic Potion Experimentation
autoReagents = true,
				},
				{
					spellID = 370747, -- Basic Phial Experimentation
autoReagents = true,
				},
			},

			disablesCraftAll = true,
			disablesShopping = true,

			noteKey = "PG_GUIDE_DRAGONFLIGHT_ALCHEMY_NOTE_8",
		},
	}
}
