From c5c323a316f59b5401bfe49c7513063ee91303aa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 4 Aug 2023 12:23:55 -0400 Subject: [PATCH] Rework of drop rate usage. --- src/engine/gameManager/LootManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 1abb0a34..796b9a02 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -122,13 +122,13 @@ public enum LootManager { break; case "LOOT": - if (ThreadLocalRandom.current().nextInt(100) > NORMAL_DROP_RATE) + if (ThreadLocalRandom.current().nextInt(100) <= NORMAL_DROP_RATE) GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier, false); //generate normal loot drop // Generate hotzone loot if in hotzone if (inHotzone == true && hotzoneWasRan == false) - if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(100) > HOTZONE_DROP_RATE) { + if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(100) <= HOTZONE_DROP_RATE) { GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance, multiplier, true); //generate loot drop from hotzone table hotzoneWasRan = true; }