Browse Source

name change

master
FatBoy-DOTC 2 years ago
parent
commit
ffe0ecd488
  1. 4
      src/engine/gameManager/ConfigManager.java
  2. 12
      src/engine/server/world/WorldServer.java

4
src/engine/gameManager/ConfigManager.java

@ -83,8 +83,8 @@ public enum ConfigManager {
MB_MAGICBOT_BOTVERSION, MB_MAGICBOT_BOTVERSION,
MB_MAGICBOT_GAMEVERSION, MB_MAGICBOT_GAMEVERSION,
//drop rates //drop rates
MB_STUFF_ACQUIRED_NORMALLY, MB_NORMAL_RATE,
MB_STUFF_ACQUIRED_FROM_HOTZONE; MB_HOTZONE_RATE;
// Map to hold our config pulled in from the environment // Map to hold our config pulled in from the environment
// We also use the config to point to the current message pump // We also use the config to point to the current message pump
// and determine the server type at runtime. // and determine the server type at runtime.

12
src/engine/server/world/WorldServer.java

@ -485,12 +485,12 @@ public class WorldServer {
//set rates from config file //set rates from config file
Logger.info("Setting rates based on conf file..."); Logger.info("Setting rates based on conf file...");
MBServerStatics.EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); MBServerStatics.EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue());
MBServerStatics.GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); MBServerStatics.GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue());
MBServerStatics.DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_NORMALLY.getValue()); MBServerStatics.DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_NORMAL_RATE.getValue());
MBServerStatics.HOT_EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); MBServerStatics.HOT_EXP_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue());
MBServerStatics.HOT_GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); MBServerStatics.HOT_GOLD_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue());
MBServerStatics.HOT_DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_STUFF_ACQUIRED_FROM_HOTZONE.getValue()); MBServerStatics.HOT_DROP_RATE_MOD = Float.parseFloat(ConfigManager.MB_HOTZONE_RATE.getValue());
return true; return true;
} }

Loading…
Cancel
Save