Mercurial > wow > prospect-me
comparison Modules/ProspectMe_Value.lua @ 63:17897a788554 v2.7.1.2
Updated Auction API support to explicitly (instead of implicitly via Auctioneer API) work with TSM
Fixed a bug that was left over from the transition to v2.
| author | Vynn <mischivin@gmail.com> |
|---|---|
| date | Thu, 08 Dec 2016 23:04:44 -0500 |
| parents | 155fa49865f2 |
| children |
comparison
equal
deleted
inserted
replaced
| 62:58d886030d65 | 63:17897a788554 |
|---|---|
| 2 ProspectMe.GetItemValue = function (itemID) | 2 ProspectMe.GetItemValue = function (itemID) |
| 3 local v = nil | 3 local v = nil |
| 4 | 4 |
| 5 if GetAuctionBuyout then -- if an installed addon supports Tekkub's GetAuctionBuyout API: Auctionator, AuctionLite, etc... | 5 if GetAuctionBuyout then -- if an installed addon supports Tekkub's GetAuctionBuyout API: Auctionator, AuctionLite, etc... |
| 6 v = GetAuctionBuyout(itemID) | 6 v = GetAuctionBuyout(itemID) |
| 7 elseif TSMAPI then -- TSM's Support | |
| 8 v = TSMAPI:GetItemValue(itemID, "DBMinBuyout") | |
| 7 elseif AucAdvanced then -- Auctioneer Support | 9 elseif AucAdvanced then -- Auctioneer Support |
| 8 v = AucAdvanced.API.GetMarketValue(PM_ItemTable[itemID].link) | 10 v = AucAdvanced.API.GetMarketValue(select(2, GetItemInfo(itemID))) |
| 9 end | 11 end |
| 10 | 12 |
| 11 if v == nil then -- provides a failsafe if Auctioneer, etc is set to Load on Demand | 13 if v == nil then -- provides a failsafe if Auctioneer, etc is set to Load on Demand |
| 12 v = select(11, GetItemInfo(itemID)) | 14 v = select(11, GetItemInfo(itemID)) |
| 13 end | 15 end |
