use mods provided and extended functions for links if possible

This commit is contained in:
Spit
2026-08-14 13:54:02 +03:00
parent cb49ff182c
commit af9a2c0d34
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -238,7 +238,11 @@ local function HookTooltip(tooltip)
insideHook = true
original_SetInboxItem(self, mailID, attachmentIndex)
insideHook = false
self.itemID = GetItemIDByName(GetInboxItem(mailID))
if GetInboxItemLink then
self.itemID = IDFromLink(GetInboxItemLink(mailID, attachmentIndex))
else
self.itemID = GetItemIDByName(GetInboxItem(mailID, attachmentIndex))
end
ExtendTooltip(self)
end
@@ -291,7 +295,12 @@ local function HookTooltip(tooltip)
insideHook = true
original_SetAuctionSellItem(self)
insideHook = false
self.itemID = tonumber(GetItemIDByName(GetAuctionSellItemInfo()))
local name, texture, count, quality, canUse, price, maxStack, itemLink = GetAuctionSellItemInfo()
if itemLink then
self.itemID = IDFromLink(itemLink)
else
self.itemID = tonumber(GetItemIDByName(name))
end
ExtendTooltip(self)
end