Quantcast

Some really ugly hacks to get retired working. Torhal will beat me if he looks at this code.

John Pasula [02-08-11 - 17:49]
Some really ugly hacks to get retired working.  Torhal will beat me if he looks at this code.
Filename
core.lua
diff --git a/core.lua b/core.lua
index a737513..9810fd9 100644
--- a/core.lua
+++ b/core.lua
@@ -1360,7 +1360,11 @@ do
 	end

 	function addon:AddRecipeRetired(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.RETIRED, nil, nil, ...)
+		local retired_db = {
+			[1] = "Retired in Wrath",
+			[2] = "Retired in Cata",
+		}
+		GenericAddRecipeAcquire(spell_id, A.RETIRED, "Retired", retired_db, 1)
 	end

 	-- This function can NOT use GenericAddRecipeAcquire() - reputation vendors are more complicated than the other acquire types.