Merge remote-tracking branch 'origin/post-wipe-merge' into new-mob-ai

This commit is contained in:
FatBoy committed 2023-02-27 18:53:49 -06:00
commit e640a5064c
49 files changed
+1467 -1834

No files matched your search

+3 -6
View File
@@ -1508,17 +1508,14 @@ public class Mob extends AbstractIntelligenceAgent {
double gold = (ThreadLocalRandom.current().nextDouble() * (maxGold - minGold) + minGold);
//server specific gold multiplier
double goldMod = MBServerStatics.GOLD_RATE_MOD;
gold *= goldMod;
gold *= Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue());
//modify for hotzone
if (ZoneManager.inHotZone(mob.getLoc()))
gold *= MBServerStatics.HOT_GOLD_RATE_MOD;
gold *= MBServerStatics.GOLD_RATE_MOD;
gold *= Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue());
return (int) gold;
}