From dfd0d7e66837469414dd9da2484bc440ab1d4814 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Apr 2023 20:10:42 -0500 Subject: [PATCH] new loot system --- src/engine/loot/LootManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index a2014346..6680f449 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -11,6 +11,7 @@ package engine.loot; import engine.Enum; import engine.gameManager.ConfigManager; import engine.gameManager.DbManager; +import engine.gameManager.NPCManager; import engine.gameManager.ZoneManager; import engine.net.DispatchMessage; import engine.net.client.msg.chat.ChatSystemMsg; @@ -51,7 +52,7 @@ public class LootManager { multiplier = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue()); } //iterate the booty sets - for(BootySetEntry bse : mob.getMobBase().bootySets) { + for(BootySetEntry bse : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) { //check if chance roll is good if (ThreadLocalRandom.current().nextInt(100) <= (bse.dropChance * multiplier)) { //early exit, failed to hit minimum chance roll