From db2e9a282a9fe0d7cee93e91eeae09ef5ca158e5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 9 Aug 2023 08:17:53 -0400 Subject: [PATCH] Only one piece of equip drops at a time. --- src/engine/gameManager/LootManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 2b757987..b2e0d395 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -349,6 +349,7 @@ public enum LootManager { ml.setIsID(true); ml.setDurabilityCurrent((short) (ml.getDurabilityCurrent() - ThreadLocalRandom.current().nextInt(5) + 1)); mob.getCharItemManager().addItemToInventory(ml); + break; // Exit on first successful roll. } } }