From 3f303e1c9ecf597a38ee82eb272493a837824138 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 11 Feb 2024 17:37:01 -0600 Subject: [PATCH] tweak --- src/engine/gameManager/LootManager.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index eebeda23..a3ae1427 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -286,11 +286,9 @@ public enum LootManager { //determine and add gold to mob inventory - int high = bse.highGold; - int low = bse.lowGold; - int gold = ThreadLocalRandom.current().nextInt(low, high + 1); - - gold = (int) (gold * NORMAL_GOLD_RATE); + int high = (int)(bse.highGold * NORMAL_GOLD_RATE); + int low = (int)(bse.lowGold * NORMAL_GOLD_RATE); + int gold = ThreadLocalRandom.current().nextInt(low, high); if (gold > 0) { MobLoot goldAmount = new MobLoot(mob, gold);