From 15a167905cb5dad4bb1e67fc20ec25d36bb090b2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 5 Aug 2023 17:46:34 -0400 Subject: [PATCH] Config drop rates modify chance. --- 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 1e846dcd..119960bc 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -113,14 +113,14 @@ public enum LootManager { break; case "LOOT": - if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < bse.dropChance) + if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * NORMAL_DROP_RATE)) GenerateLootDrop(mob, bse.lootTable, false); //generate normal loot drop // Generate hotzone loot if in hotzone // Only one bite at the hotzone apple per bootyset. if (inHotzone == true && hotzoneWasRan == false) - if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(1, 100 + 1) < bse.dropChance) { + if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * HOTZONE_DROP_RATE)) { GenerateLootDrop(mob, bse.lootTable + 1, true); //generate loot drop from hotzone table hotzoneWasRan = true; }