Skip to content

Commit

Permalink
Add Item:GetClass() and Item:GetSubClass()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 12, 2024
1 parent 91388c1 commit 808c93b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ItemCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,16 @@ function Item:GetTypeSubType()
local _, itemType, itemSubType = self:GetInfoInstant()
return itemType, itemSubType
end
function Item:GetClass()
return (select(6, self:GetInfoInstant()))
end
function Item:GetSubClass()
return (select(7, self:GetInfoInstant()))
end
function Item:GetClassSubClass()
local itemClass, itemSubClass = select(6, self:GetInfoInstant())
return itemClass, itemSubClass
end

function Item:GetQuality()
return (select(3, self:GetInfo()))
Expand Down

0 comments on commit 808c93b

Please sign in to comment.