HZ related stuff

This commit is contained in:
2025-03-16 14:55:46 -05:00
parent a7b9fec032
commit 128f677d0e
+12 -1
View File
@@ -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<Guild, ArrayList<PlayerCharacter>> 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<>();
}
}
}