diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index eb0a52c2..974a5f29 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -175,6 +175,9 @@ public enum LootManager { return null; if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) { + int chance = ThreadLocalRandom.current().nextInt(1,101); + if(chance > 10) + return null; int amount = ThreadLocalRandom.current().nextInt(tableRow.minSpawn, tableRow.maxSpawn + 1); return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false); }