Skip to content

Commit

Permalink
Add Item:HasSuffix()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jun 22, 2022
1 parent 2d72977 commit 4d47d01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ItemCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,9 @@ Item.GetId = Item.GetID
function Item:GetSuffix()
return private(self).suffix
end
function Item:HasSuffix()
return self:GetSuffix() ~= nil
end
function Item:GetIDSuffix()
return self:GetID(), self:GetSuffix()
end
Expand Down

0 comments on commit 4d47d01

Please sign in to comment.