From efa4ce91fa76bf4d1ef69748b755bf8b58e12b9a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 9 May 2024 20:19:05 -0500 Subject: [PATCH] adjusted rates properly --- src/engine/gameManager/LootManager.java | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 747196b3..f795fe59 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -63,20 +63,13 @@ public enum LootManager { // Cache drop rate values from Config manager. - //NORMAL_DROP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue()); - //NORMAL_EXP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue()); - //NORMAL_GOLD_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_RATE.getValue()); - //HOTZONE_DROP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue()); - //HOTZONE_EXP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_EXP_RATE.getValue()); - //HOTZONE_GOLD_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_RATE.getValue()); - - //hardcoded drop rates - NORMAL_DROP_RATE = 5.0f; - NORMAL_EXP_RATE = 5.0f; - NORMAL_GOLD_RATE = 5.0f; - HOTZONE_DROP_RATE = 10.0f; - HOTZONE_EXP_RATE = 10.0f; - HOTZONE_GOLD_RATE = 10.0f; + NORMAL_DROP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue()); + NORMAL_EXP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue()); + NORMAL_GOLD_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_RATE.getValue()); + HOTZONE_DROP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue()); + HOTZONE_EXP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_EXP_RATE.getValue()); + HOTZONE_GOLD_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_RATE.getValue()); + } public static void GenerateMobLoot(Mob mob) {