audit command for drop rates
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user