From 8b1fb98b09af583179d5c38be795969957844614 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 4 Aug 2023 13:09:09 -0400 Subject: [PATCH] Drop rate not used for equipment drops. --- src/engine/gameManager/LootManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 99f780a4..ce6fc899 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -346,13 +346,14 @@ public enum LootManager { if (me.getDropChance() == 0) continue; - float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1; + float equipmentRoll = ThreadLocalRandom.current().nextInt(100); float dropChance = me.getDropChance() * 100; if (equipmentRoll > dropChance) continue; MobLoot ml = new MobLoot(mob, me.getItemBase(), false); + if (ml != null) { ml.setIsID(true); ml.setIsID(true);