Browse Source

Hotzone table only ran once.

master
MagicBot 1 year ago
parent
commit
98b9567302
  1. 14
      src/engine/devcmd/cmds/SimulateBootyCmd.java

14
src/engine/devcmd/cmds/SimulateBootyCmd.java

@ -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;

Loading…
Cancel
Save