From 128f677d0e6f2881a269ef76dc21678df661a4b6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Mar 2025 14:55:46 -0500 Subject: [PATCH] HZ related stuff --- src/engine/gameManager/HotzoneManager.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/HotzoneManager.java b/src/engine/gameManager/HotzoneManager.java index 3a81c52d..ad9b3125 100644 --- a/src/engine/gameManager/HotzoneManager.java +++ b/src/engine/gameManager/HotzoneManager.java @@ -9,15 +9,20 @@ import engine.net.client.msg.chat.ChatSystemMsg; import engine.objects.*; import org.pmw.tinylog.Logger; +import java.util.ArrayList; +import java.util.HashMap; import java.util.Random; import java.util.concurrent.ThreadLocalRandom; public class HotzoneManager { - + public static Long lastPulseTime = 0L; + public static HashMap> playersPresent; public static Mob hotzoneMob = null; public static void SelectRandomHotzone(){ if(hotzoneMob != null){ hotzoneMob.killCharacter("Hotzone Over"); + hotzoneMob.despawn(); + hotzoneMob.spawnTime = 1000000000; } Random random = new Random(); Zone newHotzone = null; @@ -162,4 +167,10 @@ public class HotzoneManager { DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); } } + + public static void pulse(){ + if(HotzoneManager.playersPresent == null){ + HotzoneManager.playersPresent = new HashMap<>(); + } + } }