|
|
|
@ -203,10 +203,6 @@ public enum LootManager {
@@ -203,10 +203,6 @@ public enum LootManager {
|
|
|
|
|
if(chance > 10) |
|
|
|
|
return null; |
|
|
|
|
int amount = ThreadLocalRandom.current().nextInt((int)(tableRow.minSpawn * 0.5f), (int)((tableRow.maxSpawn + 1) * 0.5f)); |
|
|
|
|
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " HAS FOUND " + amount + " " + ItemBase.getItemBase(itemUUID).getName() + ". "); |
|
|
|
|
chatMsg.setMessageType(10); |
|
|
|
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID()); |
|
|
|
|
DispatchMessage.dispatchMsgToAll(chatMsg); |
|
|
|
|
return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|