HZ related stuff

This commit is contained in:
2025-03-16 14:48:36 -05:00
parent d25109fcf6
commit a7b9fec032
2 changed files with 17 additions and 1 deletions
+10 -1
View File
@@ -58,7 +58,7 @@ public class HotzoneManager {
created.teleport(created.bindLoc);
created.BehaviourType = Enum.MobBehaviourType.Aggro;
hotzoneMob = created;
HellgateManager.SpecialLootHandler(created,true,true);
GenerateHotzoneEpicLoot(created);
for(PlayerCharacter player : SessionManager.getAllActivePlayerCharacters()) {
HotzoneChangeMsg hcm = new HotzoneChangeMsg(Enum.GameObjectType.Zone.ordinal(), ZoneManager.hotZone.getObjectUUID());
@@ -153,4 +153,13 @@ public class HotzoneManager {
mob.getCharItemManager().addItemToInventory(rune);
}
}
public static void ClearHotzone(){
ZoneManager.hotZone = null;
for(PlayerCharacter player : SessionManager.getAllActivePlayerCharacters()) {
HotzoneChangeMsg hcm = new HotzoneChangeMsg(Enum.GameObjectType.Zone.ordinal(), 0);
Dispatch dispatch = Dispatch.borrow(player, hcm);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
}
}
}