From a48abc59cef1fcf64235dae8108d3bea28fd0179 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 27 Dec 2024 20:16:31 -0600 Subject: [PATCH] audit command for drop rates --- src/engine/devcmd/cmds/SimulateBootyCmd.java | 3 +++ src/engine/gameManager/LootManager.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/engine/devcmd/cmds/SimulateBootyCmd.java b/src/engine/devcmd/cmds/SimulateBootyCmd.java index 98b56126..f5234b45 100644 --- a/src/engine/devcmd/cmds/SimulateBootyCmd.java +++ b/src/engine/devcmd/cmds/SimulateBootyCmd.java @@ -147,6 +147,9 @@ public class SimulateBootyCmd extends AbstractDevCmd { int baseBound = 100000; int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000); int totalRange = baseBound + levelPenalty; + if(mob.level >= 50){ + totalRange = baseBound; + } output += "TOTAL ROLL POTENTIAL: " + totalRange + newline; output += "GLASS DROPS: " + GlassItems.size() + newline; output += "RUNE DROPS: " + Runes.size() + newline; diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 3d9fc2d3..11e11f8e 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -130,6 +130,9 @@ public enum LootManager { int baseBound = 100000; int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000); int totalRange = baseBound + levelPenalty; + if(mob.level >= 50){ + totalRange = baseBound; + } // Roll within the adjusted range int specialCaseRoll = ThreadLocalRandom.current().nextInt(1, totalRange + 1);