From d7c12713550aca615f77c20570c5d65a7a8d4e5d Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 8 Feb 2011 10:28:50 -0700 Subject: [PATCH] Start allowing for retired recipes to be listed as an acquire method now that there are so many of them. --- Constants.lua | 3 +++ core.lua | 4 ++++ 2 files changed, 7 insertions(+) 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('#', ...) -- 1.7.9.5