Quantcast

Start allowing for retired recipes to be listed as an acquire method now that there are so many of them.

John Pasula [02-08-11 - 17:28]
Start allowing for retired recipes to be listed as an acquire method now that there are so many of them.
Filename
Constants.lua
core.lua
diff --git a/Constants.lua b/Constants.lua
index 28f2c52..b956ef7 100644
--- a/Constants.lua
+++ b/Constants.lua
@@ -359,6 +359,7 @@ private.acquire_types = {
 	["WORLD_DROP"]	= 7,
 	["ACHIEVEMENT"]	= 8,
 	["CUSTOM"]	= 9,
+	["RETIRED"]	= 10,
 }

 private.acquire_strings = {
@@ -371,6 +372,7 @@ private.acquire_strings = {
 	[7]	= "WORLD_DROP",
 	[8]	= "ACHIEVEMENT",
 	[9]	= "CUSTOM",
+	[10]	= "RETIRED",
 }

 private.acquire_names = {
@@ -383,6 +385,7 @@ private.acquire_names = {
 	[7]	= L["World Drop"],
 	[8]	= _G.ACHIEVEMENTS,
 	[9]	= _G.MISCELLANEOUS,
+	[10]	= L["Retired"],
 }

 -------------------------------------------------------------------------------
diff --git a/core.lua b/core.lua
index cb10a11..a737513 100644
--- a/core.lua
+++ b/core.lua
@@ -1359,6 +1359,10 @@ do
 		GenericAddRecipeAcquire(spell_id, A.ACHIEVEMENT, "Achievement", nil, ...)
 	end

+	function addon:AddRecipeRetired(spell_id, ...)
+		GenericAddRecipeAcquire(spell_id, A.RETIRED, nil, nil, ...)
+	end
+
 	-- This function can NOT use GenericAddRecipeAcquire() - reputation vendors are more complicated than the other acquire types.
 	function addon:AddRecipeRepVendor(spell_id, faction_id, rep_level, ...)
 		local num_vars = select('#', ...)