Quantcast

If skillet is active use skillet's functions which will allow for alt profession scanning

Ackis [10-23-08 - 18:33]
If skillet is active use skillet's functions which will allow for alt profession scanning
Filename
AckisRecipeList.lua
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