forked from MagicBane/Server
Merge branch 'bugfix-roll-ranges' into merge-mob-fixes
This commit is contained in:
@@ -489,8 +489,15 @@ public class InfoCmd extends AbstractDevCmd {
|
|||||||
output += "Curr Loc : " + targetMob.getLoc() + newline;
|
output += "Curr Loc : " + targetMob.getLoc() + newline;
|
||||||
} else {
|
} else {
|
||||||
output += newline;
|
output += newline;
|
||||||
output += "No building found.";
|
output += "No building found." + newline;
|
||||||
}
|
}
|
||||||
|
int max = (int)(4.882 * targetMob.level + 121.0);
|
||||||
|
if(max > 321){
|
||||||
|
max = 321;
|
||||||
|
}
|
||||||
|
int min = targetMob.level * 2;
|
||||||
|
output += "Min Loot Roll = " + min;
|
||||||
|
output += "Max Loot Roll = " + max;
|
||||||
break;
|
break;
|
||||||
case Item: //intentional passthrough
|
case Item: //intentional passthrough
|
||||||
case MobLoot:
|
case MobLoot:
|
||||||
|
|||||||
@@ -219,11 +219,11 @@ public class LootManager {
|
|||||||
return outItem;
|
return outItem;
|
||||||
}
|
}
|
||||||
private static int TableRoll(int mobLevel){
|
private static int TableRoll(int mobLevel){
|
||||||
int max = 210 + (mobLevel * 2);
|
int max = (int)(4.882 * mobLevel + 121.0);
|
||||||
if(max > 320){
|
if(max > 321){
|
||||||
max = 320;
|
max = 321;
|
||||||
}
|
}
|
||||||
int min = (int)(mobLevel * 2.5f);
|
int min = mobLevel * 2;
|
||||||
int roll = ThreadLocalRandom.current().nextInt(max-min) + min;
|
int roll = ThreadLocalRandom.current().nextInt(max-min) + min;
|
||||||
return roll;
|
return roll;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user