audit command for drop rates

This commit is contained in:
2024-12-27 20:10:39 -06:00
parent d462711d25
commit 878f05c323
2 changed files with 2 additions and 6 deletions
+1 -2
View File
@@ -145,8 +145,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
}
int baseBound = 100000;
int levelPenalty = (int) ((mob.level > 50 ? (mob.level - 50) : (50 - mob.level)) * 0.01 * baseBound);
// Total range with penalty applied
int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000);
int totalRange = baseBound + levelPenalty;
output += "TOTAL ROLL POTENTIAL: " + totalRange + newline;
output += "GLASS DROPS: " + GlassItems.size() + newline;
+1 -4
View File
@@ -128,10 +128,7 @@ public enum LootManager {
if (!mob.getSafeZone()) {
int baseBound = 100000;
int levelPenalty = (int) ((mob.level > 50 ? (mob.level - 50) : (50 - mob.level)) * 0.01 * baseBound);
// Total range with penalty applied
int levelPenalty = (int) (Math.max(0, Math.abs(50 - mob.level)) * 0.01 * 100000);
int totalRange = baseBound + levelPenalty;
// Roll within the adjusted range