From c066cb5627464d8073c8e2e1c0a9612686579231 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 18 Jul 2020 02:01:59 -0700 Subject: [PATCH] Added convenience methods for checking identified and ethereal flags --- core/src/com/riiablo/item/item4/Item.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/com/riiablo/item/item4/Item.java b/core/src/com/riiablo/item/item4/Item.java index 6a27b57d..edf5c339 100644 --- a/core/src/com/riiablo/item/item4/Item.java +++ b/core/src/com/riiablo/item/item4/Item.java @@ -249,6 +249,14 @@ public class Item { return (flags & flag) == flag; } + public boolean isIdentified() { + return hasFlag(ITEMFLAG_IDENTIFIED); + } + + public boolean isEthereal() { + return hasFlag(ITEMFLAG_ETHEREAL); + } + @SuppressWarnings("unchecked") public T getBase() { return (T) base;