From ffe0ecd488a9d5ce1c0836d591dcbfd790e419f6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 Feb 2023 14:02:35 -0600 Subject: [PATCH] name change --- src/engine/gameManager/ConfigManager.java | 4 ++-- src/engine/server/world/WorldServer.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/engine/gameManager/ConfigManager.java b/src/engine/gameManager/ConfigManager.java index 833fdeec..722d0731 100644 --- a/src/engine/gameManager/ConfigManager.java +++ b/src/engine/gameManager/ConfigManager.java @@ -83,8 +83,8 @@ public enum ConfigManager { MB_MAGICBOT_BOTVERSION, MB_MAGICBOT_GAMEVERSION, //drop rates - MB_STUFF_ACQUIRED_NORMALLY, - MB_STUFF_ACQUIRED_FROM_HOTZONE; + MB_NORMAL_RATE, + MB_HOTZONE_RATE; // Map to hold our config pulled in from the environment // We also use the config to point to the current message pump // and determine the server type at runtime. diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 1eaa33e8..d261cb25 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -485,12 +485,12 @@ public class WorldServer { //set rates from config file Logger.info("Setting rates based on conf file..."); - MBServerStatics.EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); - MBServerStatics.GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); - MBServerStatics.DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); - MBServerStatics.HOT_EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); - MBServerStatics.HOT_GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); - MBServerStatics.HOT_DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); + MBServerStatics.EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue()); + MBServerStatics.GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue()); + MBServerStatics.DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue()); + MBServerStatics.HOT_EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue()); + MBServerStatics.HOT_GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue()); + MBServerStatics.HOT_DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue()); return true; }