From e1f96a009beb11741f8ab043859ccba4ef2e7f5e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 5 Aug 2023 19:46:29 -0400 Subject: [PATCH] Display effective drop rate. --- src/engine/devcmd/cmds/SimulateBootyCmd.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/engine/devcmd/cmds/SimulateBootyCmd.java b/src/engine/devcmd/cmds/SimulateBootyCmd.java index 37c3e398..bd17dea2 100644 --- a/src/engine/devcmd/cmds/SimulateBootyCmd.java +++ b/src/engine/devcmd/cmds/SimulateBootyCmd.java @@ -110,13 +110,19 @@ public class SimulateBootyCmd extends AbstractDevCmd { output += "Tables Rolled On: " + newline; boolean hotZoneRan = false; + float dropRate = 1.0f; + + if (ZoneManager.inHotZone(mob.getLoc())) + dropRate = LootManager.HOTZONE_DROP_RATE; + else + dropRate = LootManager.NORMAL_DROP_RATE; 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 * dropRate + 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; + output += "HOTZONE TABLE [" + entry.bootyType + "] " + (entry.lootTable + 1) + ": " + entry.dropChance * dropRate + newline; hotZoneRan = true; } }