Browse Source

Cleanup work.

magicbox-1.5.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 { @@ -121,8 +121,8 @@ public enum ZoneManager {
public static void resetHotZones() {
for (Zone zone : ZoneManager.macroZones)
if (zone.hasBeenHotzone)
zone.hasBeenHotzone = false;
if (zone.wasHotzonw)
zone.wasHotzonw = false;
}
@ -150,7 +150,7 @@ public enum ZoneManager { @@ -150,7 +150,7 @@ public enum ZoneManager {
ZoneManager.hotZone = zone;
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();
}
@ -242,7 +242,7 @@ public enum ZoneManager { @@ -242,7 +242,7 @@ public enum ZoneManager {
//no duplicate hotZones
if (zone.hasBeenHotzone == true)
if (zone.wasHotzonw == true)
return false;
// Enforce min level

2
src/engine/objects/Zone.java

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

Loading…
Cancel
Save