Browse Source

fixed HZ loot issue

master
FatBoy-DOTC 1 year ago
parent
commit
99fc4b8671
  1. 8
      src/engine/loot/LootManager.java

8
src/engine/loot/LootManager.java

@ -47,6 +47,7 @@ public class LootManager { @@ -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 { @@ -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 { @@ -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;

Loading…
Cancel
Save