Browse Source

remove ItemBase from LootManager

combat-2
FatBoy-DOTC 8 months ago
parent
commit
6c78e7d9fa
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

@ -82,14 +82,14 @@ public enum LootManager { @@ -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());

Loading…
Cancel
Save