regression calculator usage

This commit is contained in:
FatBoy committed 2023-07-25 21:07:40 -05:00
1 parent 74d92aa671
commit 763971acc6
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -219,9 +219,9 @@ public class LootManager {
return outItem;
}
private static int TableRoll(int mobLevel){
int max = 200 + (mobLevel * 3);
if(max > 320){
max = 320;
int max = (int)(4.882 * mobLevel + 121.0);
if(max > 321){
max = 321;
}
int min = mobLevel * 2;
int roll = ThreadLocalRandom.current().nextInt(max-min) + min;