Hotzone table only ran once.

This commit is contained in:
2023-08-05 18:49:48 -04:00
parent 820eeaee72
commit 98b9567302
+9 -5
View File
@@ -131,13 +131,17 @@ public class SimulateBootyCmd extends AbstractDevCmd {
output += "Mob BootySet: " + mob.bootySet + newline; output += "Mob BootySet: " + mob.bootySet + newline;
output += "Tables Rolled On: " + 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; output += "NORMAL TABLE [" + entry.bootyType + "] " + entry.lootTable + ": " + entry.dropChance * LootManager.NORMAL_DROP_RATE + newline;
if (ZoneManager.inHotZone(mob.getLoc())) if (hotZoneRan == false && ZoneManager.inHotZone(mob.getLoc()) && LootManager.generalItemTables.containsKey(entry.lootTable + 1)) {
for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) output += "HOTZONE TABLE [" + entry.bootyType + "] " + (entry.lootTable + 1) + ": " + entry.dropChance * LootManager.HOTZONE_DROP_RATE + newline;
if (LootManager.generalItemTables.containsKey(entry.lootTable + 1) == true) hotZoneRan = true;
output += "HOTZONE TABLE [" + entry.bootyType + "] " + (entry.lootTable + 1) + ": " + entry.dropChance * LootManager.HOTZONE_DROP_RATE + newline; }
}
output += "GLASS DROPS: " + GlassItems.size() + newline; output += "GLASS DROPS: " + GlassItems.size() + newline;
output += "RUNE DROPS: " + Runes.size() + newline; output += "RUNE DROPS: " + Runes.size() + newline;