Browse Source

audit command for drop rates

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

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

@ -147,6 +147,9 @@ public class SimulateBootyCmd extends AbstractDevCmd { @@ -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;

3
src/engine/gameManager/LootManager.java

@ -130,6 +130,9 @@ public enum LootManager { @@ -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);

Loading…
Cancel
Save