From 6b92225a5fc4c2fb947ae85d2d7edf4f54c2f21d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 19 Mar 2025 12:30:49 -0500 Subject: [PATCH] enable r8 hotzone --- src/engine/gameManager/HotzoneManager.java | 4 ++-- src/engine/gameManager/SimulationManager.java | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/engine/gameManager/HotzoneManager.java b/src/engine/gameManager/HotzoneManager.java index 7d8fe229..0af35344 100644 --- a/src/engine/gameManager/HotzoneManager.java +++ b/src/engine/gameManager/HotzoneManager.java @@ -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); diff --git a/src/engine/gameManager/SimulationManager.java b/src/engine/gameManager/SimulationManager.java index f02d8e4a..80622e04 100644 --- a/src/engine/gameManager/SimulationManager.java +++ b/src/engine/gameManager/SimulationManager.java @@ -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)