From d910a6026a33c7881c95188c72e3dc0ad32f9afa Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 30 May 2020 16:22:01 -0700 Subject: [PATCH] Removed qualification from INVALID_ITEM within ItemData --- core/src/com/riiablo/save/ItemData.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/com/riiablo/save/ItemData.java b/core/src/com/riiablo/save/ItemData.java index ab730133..3f27166a 100644 --- a/core/src/com/riiablo/save/ItemData.java +++ b/core/src/com/riiablo/save/ItemData.java @@ -66,7 +66,7 @@ public class ItemData { } void preprocessItems() { - cursor = ItemData.INVALID_ITEM; + cursor = INVALID_ITEM; Item[] items = itemData.items; for (int i = 0, s = itemData.size; i < s; i++) { Item item = items[i]; @@ -117,7 +117,7 @@ public class ItemData { public Item getSlot(BodyLoc bodyLoc) { int i = equipped.get(bodyLoc); - return i == ItemData.INVALID_ITEM ? null : getItem(i); + return i == INVALID_ITEM ? null : getItem(i); } public Item getEquipped(BodyLoc bodyLoc) { @@ -213,7 +213,7 @@ public class ItemData { } void storeCursor(StoreLoc storeLoc, int x, int y) { - assert cursor != ItemData.INVALID_ITEM; + assert cursor != INVALID_ITEM; store(storeLoc, cursor, x, y); cursor = INVALID_ITEM; } @@ -258,7 +258,7 @@ public class ItemData { int[] cache = equipped.values(); for (int i = 0, s = cache.length, j; i < s; i++) { j = cache[i]; - if (j == ItemData.INVALID_ITEM) continue; + if (j == INVALID_ITEM) continue; Item item = itemData.get(j); if (isActive(item)) { item.update(stats, charStats, equippedSets); @@ -273,7 +273,7 @@ public class ItemData { cache = inventoryItems.items; for (int i = 0, s = cache.length, j; i < s; i++) { j = cache[i]; - if (j == ItemData.INVALID_ITEM) continue; + if (j == INVALID_ITEM) continue; Item item = itemData.get(j); if (item.type.is(Type.CHAR)) { item.update(stats, charStats, equippedSets);