forked from MagicBane/Server
enable r8 hotzone
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user