comparison 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
comparison
equal deleted inserted replaced
85:a425f8345087 86:8d5ad3b71f6f
1 local ItemAuditor = select(2, ...) 1 local ItemAuditor = select(2, ...)
2 local Crafting = ItemAuditor:NewModule("Crafting") 2 local Crafting = ItemAuditor:NewModule("Crafting")
3
4 local Utils = ItemAuditor:GetModule("Utils")
3 5
4 local AceGUI = LibStub("AceGUI-3.0") 6 local AceGUI = LibStub("AceGUI-3.0")
5 local ScrollingTable = LibStub("ScrollingTable") 7 local ScrollingTable = LibStub("ScrollingTable")
6 8
7 local validateMoney = ItemAuditor.validateMoney 9 local validateMoney = ItemAuditor.validateMoney
340 function ItemAuditor:UpdateCraftingTable() 342 function ItemAuditor:UpdateCraftingTable()
341 if LSW == nil then 343 if LSW == nil then
342 self:Print("This feature requires LilSparky's Workshop.") 344 self:Print("This feature requires LilSparky's Workshop.")
343 return 345 return
344 end 346 end
345 if Skillet == nil then
346 self:Print("This feature requires Skillet.")
347 return
348 end
349 if GetAuctionBuyout ~= nil then 347 if GetAuctionBuyout ~= nil then
350 elseif AucAdvanced and AucAdvanced.Version then 348 elseif AucAdvanced and AucAdvanced.Version then
351 else 349 else
352 self:Print("This feature requires Auctionator, Auctioneer, AuctionLite, or AuctionMaster.") 350 self:Print("This feature requires Auctionator, Auctioneer, AuctionLite, or AuctionMaster.")
353 return 351 return
360 local numChecked = 0 358 local numChecked = 0
361 local row = 1 359 local row = 1
362 360
363 for i = 1, GetNumTradeSkills() do 361 for i = 1, GetNumTradeSkills() do
364 local itemLink = GetTradeSkillItemLink(i) 362 local itemLink = GetTradeSkillItemLink(i)
365 local itemId = Skillet:GetItemIDFromLink(itemLink) 363 local itemId = Utils.GetItemID(itemLink)
366 364
367 --Figure out if its an enchant or not 365 --Figure out if its an enchant or not
368 _, _, _, _, altVerb = GetTradeSkillInfo(i) 366 _, _, _, _, altVerb = GetTradeSkillInfo(i)
369 if LSW.scrollData[itemId] ~= nil and altVerb == 'Enchant' then 367 if LSW.scrollData[itemId] ~= nil and altVerb == 'Enchant' then
370 -- Ask LSW for the correct scroll 368 -- Ask LSW for the correct scroll