From d1b768faddb8f99dc624bde2ef49844c3e2a43c0 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 16 Nov 2022 13:04:34 +0100 Subject: [PATCH] vendor-values: add auction item ids --- mods/vendor-values.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/vendor-values.lua b/mods/vendor-values.lua index d3ac29b..924f466 100644 --- a/mods/vendor-values.lua +++ b/mods/vendor-values.lua @@ -3984,6 +3984,14 @@ module.enable = function(self) return HookSetTradeSkillItem(self, skillIndex, reagentIndex) end + local HookSetAuctionItem = GameTooltip.SetAuctionItem + function GameTooltip.SetAuctionItem(self, atype, index) + local itemName, _, itemCount = GetAuctionItemInfo(atype, index) + GameTooltip.itemCount = itemCount + GameTooltip.itemLink = GetItemLinkByName(itemName) + return HookSetAuctionItem(self, atype, index) + end + local HookSetAuctionSellItem = GameTooltip.SetAuctionSellItem function GameTooltip.SetAuctionSellItem(self) local itemName, _, itemCount = GetAuctionSellItemInfo()