Browse Source

Minor cleanup

combat-2
MagicBot 7 months ago
parent
commit
eed25d8c16
  1. 13
      src/engine/gameManager/LootManager.java

13
src/engine/gameManager/LootManager.java

@ -80,17 +80,10 @@ public enum LootManager { @@ -80,17 +80,10 @@ public enum LootManager {
RunBootySet(_bootySetMap.get(mob.bootySet), mob, inHotzone);
//lastly, check mobs inventory for godly or disc runes to send a server announcement
for (Item it : mob.getInventory()) {
for (Item item : mob.getInventory()) {
ItemTemplate ib = it.template;
if (ib == null)
break;
ItemTemplate template = ItemTemplate.templates.get(it.templateID);
if ((it.templateID > 2499 && 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?");
if ((item.templateID > 2499 && item.templateID <= 3050) || item.template.item_base_name.toLowerCase().contains("of the gods")) {
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().zoneName + " has found the " + item.template.item_base_name + ". Are you tough enough to take it?");
chatMsg.setMessageType(10);
chatMsg.setChannel(mbEnums.ChatChannelType.SYSTEM.getChannelID());
DispatchMessage.dispatchMsgToAll(chatMsg);

Loading…
Cancel
Save