Browse Source

tweak

lakebane-master
FatBoy-DOTC 11 months ago
parent
commit
3f303e1c9e
  1. 8
      src/engine/gameManager/LootManager.java

8
src/engine/gameManager/LootManager.java

@ -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);

Loading…
Cancel
Save