Refactored caching of drop rates. Whittling away at MBServerStatics.

This commit is contained in:
2023-02-19 08:25:58 -05:00
parent 3fd2f519eb
commit 70ca0a1df3
7 changed files with 55 additions and 43 deletions
+3 -3
View File
@@ -1508,15 +1508,15 @@ public class Mob extends AbstractIntelligenceAgent {
//server specific gold multiplier
double goldMod = MBServerStatics.GOLD_RATE_MOD;
double goldMod = DropRateType.GOLD_RATE_MOD.rate;
gold *= goldMod;
//modify for hotzone
if (ZoneManager.inHotZone(mob.getLoc()))
gold *= MBServerStatics.HOT_GOLD_RATE_MOD;
gold *= DropRateType.HOT_GOLD_RATE_MOD.rate;
gold *= MBServerStatics.GOLD_RATE_MOD;
gold *= DropRateType.GOLD_RATE_MOD.rate;
return (int) gold;
}