Refactored caching of drop rates. Whittling away at MBServerStatics.

This commit is contained in:
MagicBot committed 2023-02-19 08:25:58 -05:00
1 parent 3fd2f519eb
commit 70ca0a1df3
7 files changed
+55 -43

No files matched your search

+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;
}