From 4bd158cc789ef34fb5dd398f75e17e8dc49d77b1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 19 Jul 2023 17:18:46 -0500 Subject: [PATCH] hotfix mob roll chance --- src/engine/loot/LootManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index c841f91c..93ffe22d 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -97,7 +97,7 @@ public class LootManager { int roll = ThreadLocalRandom.current().nextInt(101); switch (bse.bootyType) { case "GOLD": - if (roll >= (bse.dropChance * multiplier)) { + if (roll > (bse.dropChance * multiplier)) { //early exit, failed to hit minimum chance roll OR booty was generated from mob's death break; } @@ -109,7 +109,7 @@ public class LootManager { } break; case "LOOT": - if (roll >= (bse.dropChance * multiplier)) { + if (roll > (bse.dropChance * multiplier)) { //early exit, failed to hit minimum chance roll OR booty was generated from mob's death break; }