From 17f099386aa1ca59ca5ada5607e9401dd899874f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 4 Aug 2023 19:27:49 -0500 Subject: [PATCH] enchanted and non enchanted items show up correctly as "unidentified" --- src/engine/gameManager/LootManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index a3fca82d..081aa78e 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -198,7 +198,9 @@ public enum LootManager { } } } - if(outItem.getPrefix() != null && outItem.getPrefix().isEmpty() == false && outItem.getSuffix() != null && outItem.getSuffix().isEmpty() == false) + if(outItem.getPrefix() != null && outItem.getPrefix().isEmpty() == false) + outItem.setIsID(false); + if(outItem.getSuffix() != null && outItem.getSuffix().isEmpty() == false) outItem.setIsID(false); return outItem; } @@ -337,7 +339,6 @@ public enum LootManager { try { MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone); - toAdd.setIsID(true); if (toAdd != null) mob.getCharItemManager().addItemToInventory(toAdd); @@ -366,7 +367,6 @@ public enum LootManager { MobLoot ml = new MobLoot(mob, me.getItemBase(), false); if (ml != null) { - ml.setIsID(true); ml.setIsID(true); mob.getCharItemManager().addItemToInventory(ml); }