Browse Source

enable r8 hotzone

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
6b92225a5f
  1. 4
      src/engine/gameManager/HotzoneManager.java
  2. 20
      src/engine/gameManager/SimulationManager.java

4
src/engine/gameManager/HotzoneManager.java

@ -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);

20
src/engine/gameManager/SimulationManager.java

@ -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)

Loading…
Cancel
Save