Browse Source

regression calculator usage

master
FatBoy-DOTC 1 year ago
parent
commit
763971acc6
  1. 6
      src/engine/devcmd/cmds/InfoCmd.java
  2. 6
      src/engine/loot/LootManager.java

6
src/engine/devcmd/cmds/InfoCmd.java

@ -491,9 +491,9 @@ public class InfoCmd extends AbstractDevCmd {
output += newline; output += newline;
output += "No building found." + newline; output += "No building found." + newline;
} }
int max = 200 + (targetMob.level * 3); int max = (int)(4.882 * targetMob.level + 121.0);
if(max > 320){ if(max > 321){
max = 320; max = 321;
} }
int min = targetMob.level * 2; int min = targetMob.level * 2;
output += "Min Loot Roll = " + min; output += "Min Loot Roll = " + min;

6
src/engine/loot/LootManager.java

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

Loading…
Cancel
Save