Browse Source

audit command for drop rates

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
878f05c323
  1. 3
      src/engine/devcmd/cmds/SimulateBootyCmd.java
  2. 5
      src/engine/gameManager/LootManager.java

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

@ -145,8 +145,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
} }
int baseBound = 100000; int baseBound = 100000;
int levelPenalty = (int) ((mob.level > 50 ? (mob.level - 50) : (50 - mob.level)) * 0.01 * baseBound); int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000);
// Total range with penalty applied
int totalRange = baseBound + levelPenalty; int totalRange = baseBound + levelPenalty;
output += "TOTAL ROLL POTENTIAL: " + totalRange + newline; output += "TOTAL ROLL POTENTIAL: " + totalRange + newline;
output += "GLASS DROPS: " + GlassItems.size() + newline; output += "GLASS DROPS: " + GlassItems.size() + newline;

5
src/engine/gameManager/LootManager.java

@ -128,10 +128,7 @@ public enum LootManager {
if (!mob.getSafeZone()) { if (!mob.getSafeZone()) {
int baseBound = 100000; int baseBound = 100000;
int levelPenalty = (int) ((mob.level > 50 ? (mob.level - 50) : (50 - mob.level)) * 0.01 * baseBound); int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000);
// Total range with penalty applied
int totalRange = baseBound + levelPenalty; int totalRange = baseBound + levelPenalty;
// Roll within the adjusted range // Roll within the adjusted range

Loading…
Cancel
Save