Browse Source

mob max roll audit

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

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

@ -489,8 +489,15 @@ public class InfoCmd extends AbstractDevCmd { @@ -489,8 +489,15 @@ public class InfoCmd extends AbstractDevCmd {
output += "Curr Loc : " + targetMob.getLoc() + newline;
} else {
output += newline;
output += "No building found.";
output += "No building found." + newline;
}
int max = 200 + (targetMob.level * 3);
if(max > 320){
max = 320;
}
int min = targetMob.level * 2;
output += "Min Loot Roll = " + min;
output += "Max Loot Roll = " + max;
break;
case Item: //intentional passthrough
case MobLoot:

4
src/engine/loot/LootManager.java

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

Loading…
Cancel
Save