New database function: addon:AddRecipeQuest()
James D. Callahan III [03-28-10 - 02:30]
New database function: addon:AddRecipeQuest()
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)