Skip to content

Commit

Permalink
2.5.6
Browse files Browse the repository at this point in the history
Added Auctionator as price source from Pull Request
  • Loading branch information
Noshei committed Oct 19, 2024
1 parent a4b78fd commit 05158e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GatheringTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Gathering Tracker
## Notes: Addon for tracking gathered items, supports solo players and groups
## Author: Noshei
## Version: 2.5.5
## Version: 2.5.6
## OptionalDeps: TradeSkillMaster, RECrystallize, Auctionator
## SavedVariables: GatheringTrackerDB
## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick
Expand Down
4 changes: 2 additions & 2 deletions Utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ function GT:GetItemPrice(itemID)
return 0
end
local itemID = tonumber(itemID)
local price = 0
local price = nil

if GT.priceSources["RECrystallize"] and GT.db.profile.General.tsmPrice == 10 then
price = (RECrystallize_PriceCheckItemID(itemID) or 0) / 10000
end
if GT.priceSources["Auctionator"] and GT.db.profile.General.tsmPrice == 20 then
price = (Auctionator.API.v1.GetAuctionPriceByItemID("GatheringTracker", itemID) or 0) / 10000
end
if GT.priceSources["TradeSkillMaster"] then
if GT.priceSources["TradeSkillMaster"] and price == nil then
price = (TSM_API.GetCustomPriceValue(GT.TSM, "i:" .. itemID) or 0) / 10000
end
return price
Expand Down

0 comments on commit 05158e2

Please sign in to comment.