|
|
@ -286,11 +286,9 @@ public enum LootManager { |
|
|
|
|
|
|
|
|
|
|
|
//determine and add gold to mob inventory
|
|
|
|
//determine and add gold to mob inventory
|
|
|
|
|
|
|
|
|
|
|
|
int high = bse.highGold; |
|
|
|
int high = (int)(bse.highGold * NORMAL_GOLD_RATE); |
|
|
|
int low = bse.lowGold; |
|
|
|
int low = (int)(bse.lowGold * NORMAL_GOLD_RATE); |
|
|
|
int gold = ThreadLocalRandom.current().nextInt(low, high + 1); |
|
|
|
int gold = ThreadLocalRandom.current().nextInt(low, high); |
|
|
|
|
|
|
|
|
|
|
|
gold = (int) (gold * NORMAL_GOLD_RATE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (gold > 0) { |
|
|
|
if (gold > 0) { |
|
|
|
MobLoot goldAmount = new MobLoot(mob, gold); |
|
|
|
MobLoot goldAmount = new MobLoot(mob, gold); |
|
|
|