silverwind / idTip

WoW Addon: Adds IDs to the ingame tooltips
BSD 2-Clause "Simplified" License
41 stars 32 forks source link

Please consider adding the Max Stack value for items #105

Open Kuhlkatz opened 7 months ago

Kuhlkatz commented 7 months ago

It's fairly simple (and useful) adding or showing the max stack value for items. Please consider adding this as default.

The below 3 additional lines does just that (in Classic):

local kinds = { ... icon = "IconID", maxstack = "MaxStack", } ... elseif kind == kinds.item then iconId = C_Item.GetItemIconByID(id) if iconId then addLine(tooltip, iconId, kinds.icon) end numStacks = C_Item.GetItemMaxStackSizeByID(id) if numStacks then addLine(tooltip, numStacks, kinds.maxstack) end end