fixed HZ loot issue

This commit is contained in:
2023-07-27 23:39:14 -05:00
parent e9913a66a7
commit 99fc4b8671
+6 -2
View File
@@ -47,6 +47,7 @@ public class LootManager {
}
public static void GenerateMobLoot(Mob mob, boolean fromDeath) {
try{
//determine if mob is in hotzone
boolean inHotzone = ZoneManager.inHotZone(mob.getLoc());
//get multiplier form config manager
@@ -75,6 +76,9 @@ public class LootManager {
}
}
} catch(Exception e){
//TODO catch whatever went wrong
}
}
private static void RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone, boolean fromDeath) {
@@ -239,8 +243,8 @@ public class LootManager {
}
private static int TableRoll(int mobLevel){
int max = (int)(4.882 * mobLevel + 121.0);
if(max > 321){
max = 321;
if(max > 320){
max = 320;
}
int min = (int)(4.469 * mobLevel - 3.469);
int roll = ThreadLocalRandom.current().nextInt(max-min) + min;