From 3e3dab068fec632f12d03959d88a132f9f761637 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 27 Mar 2010 22:30:05 -0400 Subject: [PATCH] New database function: addon:AddRecipeQuest() --- ARL.lua | 5 ++++- Datamine.lua | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ARL.lua b/ARL.lua index 95f0a55..6948e11 100644 --- a/ARL.lua +++ b/ARL.lua @@ -1072,7 +1072,6 @@ do if location then affiliation = "world_drop" - addon:Debug("GenericAddRecipeAcquire(): location set as \"%s\".", location) else addon:Debug("WORLD_DROP with no location: %d %s", spell_id, private.recipe_list[spell_id].name) end @@ -1118,6 +1117,10 @@ do GenericAddRecipeAcquire(spell_id, A.WORLD_DROP, nil, nil, ...) end + function addon:AddRecipeQuest(spell_id, ...) + GenericAddRecipeAcquire(spell_id, A.QUEST, "Quest", private.quest_list, ...) + 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('#', ...) diff --git a/Datamine.lua b/Datamine.lua index 2ec832e..c0bcdb8 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -1478,6 +1478,7 @@ do [A.VENDOR] = "self:AddRecipeVendor(%d, %s)", [A.MOB_DROP] = "self:AddRecipeMobDrop(%d, %s)", [A.WORLD_DROP] = "self:AddRecipeWorldDrop(%d, %s)", + [A.QUEST] = "self:AddRecipeQuest(%d, %s)", } local function RecipeDump(id, single) -- 1.7.9.5