forked from MagicBane/Server
enable r8 hotzone
This commit is contained in:
@@ -98,7 +98,7 @@ public class HotzoneManager {
|
|||||||
if (rune != null)
|
if (rune != null)
|
||||||
mob.getCharItemManager().addItemToInventory(rune);
|
mob.getCharItemManager().addItemToInventory(rune);
|
||||||
}
|
}
|
||||||
} else if (roll >= 50 && roll <= 89) {
|
} else if (roll >= 65 && roll <= 89) {
|
||||||
//30,35 or 40
|
//30,35 or 40
|
||||||
roll = ThreadLocalRandom.current().nextInt(HellgateManager.static_rune_ids_mid.size() + 1);
|
roll = ThreadLocalRandom.current().nextInt(HellgateManager.static_rune_ids_mid.size() + 1);
|
||||||
itemId = HellgateManager.static_rune_ids_mid.get(0);
|
itemId = HellgateManager.static_rune_ids_mid.get(0);
|
||||||
@@ -120,7 +120,7 @@ public class HotzoneManager {
|
|||||||
itemId = HellgateManager.static_rune_ids_low.get(0);
|
itemId = HellgateManager.static_rune_ids_low.get(0);
|
||||||
try {
|
try {
|
||||||
itemId = HellgateManager.static_rune_ids_low.get(roll);
|
itemId = HellgateManager.static_rune_ids_low.get(roll);
|
||||||
} catch (Exception e) {
|
} catch (Exception ignored) {
|
||||||
|
|
||||||
}
|
}
|
||||||
runeBase = ItemBase.getItemBase(itemId);
|
runeBase = ItemBase.getItemBase(itemId);
|
||||||
|
|||||||
@@ -137,18 +137,18 @@ public enum SimulationManager {
|
|||||||
// Logger.error(e.getMessage());
|
// Logger.error(e.getMessage());
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//try{
|
try{
|
||||||
//if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){
|
if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){
|
||||||
// HotzoneManager.ClearHotzone();
|
HotzoneManager.ClearHotzone();
|
||||||
//}
|
}
|
||||||
//}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|
||||||
//}
|
}
|
||||||
//try{
|
try{
|
||||||
// HotzoneManager.pulse();
|
HotzoneManager.pulse();
|
||||||
//}catch(Exception e){
|
}catch(Exception e){
|
||||||
//
|
//
|
||||||
//}
|
}
|
||||||
SimulationManager.executionTime = Duration.between(startTime, Instant.now());
|
SimulationManager.executionTime = Duration.between(startTime, Instant.now());
|
||||||
|
|
||||||
if (executionTime.compareTo(executionMax) > 0)
|
if (executionTime.compareTo(executionMax) > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user