Browse Source

Cleanup work.

combat-2
MagicBot 1 year ago
parent
commit
1aef82f422
  1. 8
      src/engine/gameManager/ZoneManager.java
  2. 2
      src/engine/objects/Zone.java

8
src/engine/gameManager/ZoneManager.java

@ -121,8 +121,8 @@ public enum ZoneManager {
public static void resetHotZones() { public static void resetHotZones() {
for (Zone zone : ZoneManager.macroZones) for (Zone zone : ZoneManager.macroZones)
if (zone.hasBeenHotzone) if (zone.wasHotzonw)
zone.hasBeenHotzone = false; zone.wasHotzonw = false;
} }
@ -150,7 +150,7 @@ public enum ZoneManager {
ZoneManager.hotZone = zone; ZoneManager.hotZone = zone;
ZoneManager.hotZoneCycle = 1; // Used with HOTZONE_DURATION from config. ZoneManager.hotZoneCycle = 1; // Used with HOTZONE_DURATION from config.
zone.hasBeenHotzone = true; zone.wasHotzonw = true;
ZoneManager.hotZoneLastUpdate = LocalDateTime.now().withMinute(0).withSecond(0).atZone(ZoneId.systemDefault()).toInstant(); ZoneManager.hotZoneLastUpdate = LocalDateTime.now().withMinute(0).withSecond(0).atZone(ZoneId.systemDefault()).toInstant();
} }
@ -242,7 +242,7 @@ public enum ZoneManager {
//no duplicate hotZones //no duplicate hotZones
if (zone.hasBeenHotzone == true) if (zone.wasHotzonw == true)
return false; return false;
// Enforce min level // Enforce min level

2
src/engine/objects/Zone.java

@ -52,7 +52,7 @@ public class Zone extends AbstractWorldObject {
public float absZ = 0.0f; public float absZ = 0.0f;
public int min_level; public int min_level;
public int max_level; public int max_level;
public boolean hasBeenHotzone = false; public boolean wasHotzonw = false;
public ArrayList<Zone> nodes = new ArrayList<>(); public ArrayList<Zone> nodes = new ArrayList<>();
public int parentZoneID; public int parentZoneID;
public Zone parent = null; public Zone parent = null;

Loading…
Cancel
Save