enable r8 hotzone

This commit is contained in:
2025-03-19 12:30:49 -05:00
parent bbdc58c217
commit 6b92225a5f
2 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ public class HotzoneManager {
if (rune != null)
mob.getCharItemManager().addItemToInventory(rune);
}
} else if (roll >= 50 && roll <= 89) {
} else if (roll >= 65 && roll <= 89) {
//30,35 or 40
roll = ThreadLocalRandom.current().nextInt(HellgateManager.static_rune_ids_mid.size() + 1);
itemId = HellgateManager.static_rune_ids_mid.get(0);
@@ -120,7 +120,7 @@ public class HotzoneManager {
itemId = HellgateManager.static_rune_ids_low.get(0);
try {
itemId = HellgateManager.static_rune_ids_low.get(roll);
} catch (Exception e) {
} catch (Exception ignored) {
}
runeBase = ItemBase.getItemBase(itemId);
+10 -10
View File
@@ -137,18 +137,18 @@ public enum SimulationManager {
// Logger.error(e.getMessage());
//}
//try{
//if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){
// HotzoneManager.ClearHotzone();
//}
//}catch(Exception e){
try{
if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){
HotzoneManager.ClearHotzone();
}
}catch(Exception e){
//}
//try{
// HotzoneManager.pulse();
//}catch(Exception e){
}
try{
HotzoneManager.pulse();
}catch(Exception e){
//
//}
}
SimulationManager.executionTime = Duration.between(startTime, Instant.now());
if (executionTime.compareTo(executionMax) > 0)