From b167660dd2aab992978a7b3250449f8adf7479c6 Mon Sep 17 00:00:00 2001 From: Ackis Date: Thu, 23 Oct 2008 18:33:57 +0000 Subject: [PATCH] If skillet is active use skillet's functions which will allow for alt profession scanning --- AckisRecipeList.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 14cab9f..bce464b 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -266,6 +266,7 @@ function addon:OnEnable() -- Add an option so that ARL will work with Manufac if (Manufac) then + Manufac.options.args.ARLScan = { type = 'execute', name = L["Scan Recipes"], @@ -273,6 +274,17 @@ function addon:OnEnable() func = function() addon:AckisRecipeList_Command() end, order = 550, } + + end + + -- If we're using Skillet, use Skillet's API to work with getting tradeskills + if (Skillet) and (Skillet.GetNumTradeSkills) and + (Skillet.GetTradeSkillLine) and (Skillet.GetTradeSkillInfo) then + + GetNumTradeSkills = Skillet.GetNumTradeSkills + GetTradeSkillLine = Skillet.GetTradeSkillLine + GetTradeSkillInfo = Skillet.GetTradeSkillInfo + end -- Populate the repuatation level -- 1.7.9.5