Skip to content

Commit

Permalink
Add Item:GetStackSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed May 23, 2022
1 parent 8bd7335 commit b370401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ItemCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local ADDON_NAME = "ItemCache"
local HOST_ADDON_NAME, Data = ...
local IsStandalone = ADDON_NAME == HOST_ADDON_NAME

local MAJOR, MINOR = ADDON_NAME, 0
local MAJOR, MINOR = ADDON_NAME, 1
local ItemCache, oldMinor = LibStub:NewLibrary(MAJOR, MINOR)
if not ItemCache and not IsStandalone then
return
Expand Down Expand Up @@ -1367,6 +1367,10 @@ function Item:GetDetailedLevelInfo()
return GetDetailedItemLevelInfo(self:GetString())
end

function Item:GetStackSize()
return (select(8, self:GetInfo()))
end

function Item:GetSellPrice()
return (select(11, self:GetInfo()))
end
Expand Down

0 comments on commit b370401

Please sign in to comment.