From 808c93b28224aa0356a12003a76f9a274db1ffbe Mon Sep 17 00:00:00 2001 From: Anonomit Date: Fri, 12 Jul 2024 18:40:07 -0400 Subject: [PATCH] Add Item:GetClass() and Item:GetSubClass() --- ItemCache.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ItemCache.lua b/ItemCache.lua index 493cf86..e850f38 100644 --- a/ItemCache.lua +++ b/ItemCache.lua @@ -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()))