Browse Source

regression formula for min mob loot roll

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

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

@ -495,7 +495,7 @@ public class InfoCmd extends AbstractDevCmd {
if(max > 321){ if(max > 321){
max = 321; max = 321;
} }
int min = targetMob.level * 2; int min = (int)(4.469 * targetMob.level - 3.469);
output += "Min Loot Roll = " + min; output += "Min Loot Roll = " + min;
output += "Max Loot Roll = " + max; output += "Max Loot Roll = " + max;
break; break;

2
src/engine/loot/LootManager.java

@ -223,7 +223,7 @@ public class LootManager {
if(max > 321){ if(max > 321){
max = 321; max = 321;
} }
int min = mobLevel * 2; int min = (int)(4.469 * mobLevel - 3.469);
int roll = ThreadLocalRandom.current().nextInt(max-min) + min; int roll = ThreadLocalRandom.current().nextInt(max-min) + min;
return roll; return roll;
} }

Loading…
Cancel
Save