So I want to hook into Skillet to take advantage of some functions there.
This is my code at the start of the addon:
-- Make global API calls local to speed things up
local GetNumTradeSkills = GetNumTradeSkills
local GetTradeSkillLine = GetTradeSkillLine
local GetTradeSkillInfo = GetTradeSkillInfo
local GetTradeSkillRecipeLink = GetTradeSkillRecipeLink
This is my code in my on init function:
if (Skillet) and (Skillet.GetNumTradeSkills) and
(Skillet.GetTradeSkillLine) and (Skillet.GetTradeSkillInfo) and
self:Print("Enabling Skillet advanced features.")
GetNumTradeSkills = function(...) Skillet:GetNumTradeSkills(...) end
GetTradeSkillLine = function(...) Skillet:GetTradeSkillLine(...) end
GetTradeSkillInfo = function(...) Skillet:GetTradeSkillInfo(...) end
GetTradeSkillRecipeLink = function(...) Skillet:GetTradeSkillRecipeLink(...) end
Now it's not hooking correctly... when I call GetTradeSkillInfo within ARL I get no return values, however I can call Skillet:GetTradeSkillInfo() and it'll work. I don't want to have a bunch of conditionals throughout the addon, what am I doing wrong?