From d7c3f2a6ce8056546215d2ac41fef68d62218261 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 18 Aug 2023 12:00:28 -0400 Subject: [PATCH] Newbie Island excluded from server drop rates. Newbie tables having a baseline roll of 44. --- src/engine/gameManager/LootManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 154e578e..1e2da274 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -100,7 +100,7 @@ public enum LootManager { private static void RunBootySet(ArrayList entries, Mob mob, boolean inHotzone, boolean fromDeath) { boolean hotzoneWasRan = false; - float dropRate = LootManager.NORMAL_DROP_RATE; + float dropRate = 1.0f; if (fromDeath) { GenerateEquipmentDrop(mob); @@ -116,10 +116,11 @@ public enum LootManager { break; case "LOOT": + if (mob.getSafeZone() == false) + dropRate = LootManager.NORMAL_DROP_RATE; + if (inHotzone == true) dropRate = LootManager.HOTZONE_DROP_RATE; - else - dropRate = LootManager.NORMAL_DROP_RATE; if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) GenerateLootDrop(mob, bse.genTable, false); //generate normal loot drop