diff Modules/Crafting.lua @ 86:8d5ad3b71f6f

Removed references to Skillet in core functionality. Skillet really should be optional.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sat, 07 Aug 2010 11:16:21 -0700
parents e9f7bc9199ca
children 693f664aad2b
line wrap: on
line diff
--- a/Modules/Crafting.lua	Fri Aug 06 05:59:29 2010 -0700
+++ b/Modules/Crafting.lua	Sat Aug 07 11:16:21 2010 -0700
@@ -1,6 +1,8 @@
 local ItemAuditor = select(2, ...)
 local Crafting = ItemAuditor:NewModule("Crafting")
 
+local Utils = ItemAuditor:GetModule("Utils")
+
 local AceGUI = LibStub("AceGUI-3.0")
 local ScrollingTable = LibStub("ScrollingTable")
 
@@ -342,10 +344,6 @@
 		self:Print("This feature requires LilSparky's Workshop.")
 		return
 	end
-	if Skillet == nil then
-		self:Print("This feature requires Skillet.")
-		return
-	end
 	if GetAuctionBuyout ~= nil then
 	elseif AucAdvanced and AucAdvanced.Version then
 	else
@@ -362,7 +360,7 @@
 	
 	for i = 1, GetNumTradeSkills() do
 		local itemLink = GetTradeSkillItemLink(i)
-		local itemId = Skillet:GetItemIDFromLink(itemLink)
+		local itemId = Utils.GetItemID(itemLink)
 
 		--Figure out if its an enchant or not
 		_, _, _, _, altVerb = GetTradeSkillInfo(i)