audit command for drop rates

This commit is contained in:
FatBoy committed 2024-12-27 20:16:31 -06:00
1 parent 878f05c323
commit a48abc59ce
2 files changed
+6

No files matched your search

+3
View File
@@ -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);