|
|
|
@ -377,7 +377,7 @@ public enum LootManager {
@@ -377,7 +377,7 @@ public enum LootManager {
|
|
|
|
|
if (itemUUID == 0) |
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) { |
|
|
|
|
if (ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RESOURCE) || ItemBase.getItemBase(itemUUID).getName().equals("Mithril")) { |
|
|
|
|
if(ThreadLocalRandom.current().nextInt(1,101) < 91) |
|
|
|
|
return null; // cut down world drops rates of resources by 90%
|
|
|
|
|
int amount = ThreadLocalRandom.current().nextInt(tableRow.minSpawn, tableRow.maxSpawn + 1); |
|
|
|
|