From 98b956730295e1197b1db1fba2661a613b300e3a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 5 Aug 2023 18:49:48 -0400 Subject: [PATCH] Hotzone table only ran once. --- src/engine/devcmd/cmds/SimulateBootyCmd.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/engine/devcmd/cmds/SimulateBootyCmd.java b/src/engine/devcmd/cmds/SimulateBootyCmd.java index d9eb2341..479834e5 100644 --- a/src/engine/devcmd/cmds/SimulateBootyCmd.java +++ b/src/engine/devcmd/cmds/SimulateBootyCmd.java @@ -131,13 +131,17 @@ public class SimulateBootyCmd extends AbstractDevCmd { output += "Mob BootySet: " + mob.bootySet + newline; output += "Tables Rolled On: " + newline; - for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) + boolean hotZoneRan = false; + + for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) { + output += "NORMAL TABLE [" + entry.bootyType + "] " + entry.lootTable + ": " + entry.dropChance * LootManager.NORMAL_DROP_RATE + newline; - if (ZoneManager.inHotZone(mob.getLoc())) - for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) - if (LootManager.generalItemTables.containsKey(entry.lootTable + 1) == true) - output += "HOTZONE TABLE [" + entry.bootyType + "] " + (entry.lootTable + 1) + ": " + entry.dropChance * LootManager.HOTZONE_DROP_RATE + newline; + if (hotZoneRan == false && ZoneManager.inHotZone(mob.getLoc()) && LootManager.generalItemTables.containsKey(entry.lootTable + 1)) { + output += "HOTZONE TABLE [" + entry.bootyType + "] " + (entry.lootTable + 1) + ": " + entry.dropChance * LootManager.HOTZONE_DROP_RATE + newline; + hotZoneRan = true; + } + } output += "GLASS DROPS: " + GlassItems.size() + newline; output += "RUNE DROPS: " + Runes.size() + newline;