From 1ae8bee6bed9b9a6674ab3d41f5ef9c79cfd9497 Mon Sep 17 00:00:00 2001 From: ackis Date: Fri, 24 Oct 2008 16:40:45 +0000 Subject: [PATCH] Add API for Skillet --- AckisRecipeList.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index f352c3c..53ec17f 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1577,6 +1577,34 @@ do end + + -- Description: API for external addons to get recipe information from ARL + -- Expected result: The recipe information is returned if it exists + -- Input: The spellID of the recipe. + -- Output: A table containing all its information + + function addon:GetRecipeData(spellID) + + if (RecipeList) then + + if (RecipeList[spellID]) then + + return RecipeList[spellID] + + else + + return nil + + end + + else + + return nil + + end + + end + end --[[ -- 1.7.9.5