From 2cbb112f09e85f7ae9ddfa7f8c22a6c8cc685f30 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 4 Aug 2023 13:04:57 -0400 Subject: [PATCH] Drop rate not used for equipment drops. --- src/engine/gameManager/LootManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 796b9a02..99f780a4 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -109,7 +109,7 @@ public enum LootManager { boolean hotzoneWasRan = false; if (fromDeath) { - GenerateEquipmentDrop(mob, multiplier); + GenerateEquipmentDrop(mob); return; } @@ -336,7 +336,7 @@ public enum LootManager { } } - public static void GenerateEquipmentDrop(Mob mob, float multiplier) { + public static void GenerateEquipmentDrop(Mob mob) { //do equipment here @@ -349,8 +349,9 @@ public enum LootManager { float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1; float dropChance = me.getDropChance() * 100; - if (equipmentRoll > (dropChance * multiplier)) + if (equipmentRoll > dropChance) continue; + MobLoot ml = new MobLoot(mob, me.getItemBase(), false); if (ml != null) { ml.setIsID(true);