From 6c78e7d9fac4c9467563a5e92711eda6f69f816d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 27 Mar 2024 17:43:49 -0500 Subject: [PATCH] remove ItemBase from LootManager --- src/engine/gameManager/LootManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index b20fe1cc..1d1f6c8a 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -82,14 +82,14 @@ public enum LootManager { //lastly, check mobs inventory for godly or disc runes to send a server announcement for (Item it : mob.getInventory()) { - ItemBase ib = it.getItemBase(); + ItemTemplate ib = it.template; if (ib == null) break; ItemTemplate template = ItemTemplate.templates.get(it.getTemplateID()); - if (ib.isDiscRune() || template.item_base_name.toLowerCase().contains("of the gods")) { + if ((it.getTemplateID() > 3000 && it.templateID <= 3050) || template.item_base_name.toLowerCase().contains("of the gods")) { ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().zoneName + " has found the " + template.item_base_name + ". Are you tough enough to take it?"); chatMsg.setMessageType(10); chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());