comparison Modules/QuickAuctions.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 88a42e00b866
children 54b917340283
comparison
equal deleted inserted replaced
85:a425f8345087 86:8d5ad3b71f6f
1 local ItemAuditor = select(2, ...) 1 local ItemAuditor = select(2, ...)
2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions") 2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions")
3 local Crafting = ItemAuditor:GetModule("Crafting") 3 local Crafting = ItemAuditor:GetModule("Crafting")
4 local Utils = ItemAuditor:GetModule("Utils") 4 local Utils = ItemAuditor:GetModule("Utils")
5
6 local PT = LibStub("LibPeriodicTable-3.1")
5 7
6 --[[ 8 --[[
7 This is simply for compatibility while I change the QA API. Once 9 This is simply for compatibility while I change the QA API. Once
8 my changes get merged into the main project, this can go away. 10 my changes get merged into the main project, this can go away.
9 ]] 11 ]]
134 end 136 end
135 137
136 function ItemAuditor:GetReagentCost(link, total) 138 function ItemAuditor:GetReagentCost(link, total)
137 local totalCost = 0 139 local totalCost = 0
138 140
139 if Skillet:VendorSellsReagent(link) then 141 if PT:ItemInSet(link,"Tradeskill.Mat.BySource.Vendor") then
140 local _, _, _, _, _, _, _, _, _, _, itemVendorPrice = GetItemInfo (link); 142 local _, _, _, _, _, _, _, _, _, _, itemVendorPrice = GetItemInfo (link);
141 totalCost = itemVendorPrice * total 143 totalCost = itemVendorPrice * total
142 total = 0 144 total = 0
143 end 145 end
144 146