Portals configured in the runegate constructor.

This commit is contained in:
2023-02-15 13:38:13 -05:00
parent 1e0738594a
commit f1a652122c
+4 -1
View File
@@ -27,6 +27,10 @@ public class Runegate {
this._portals = new Portal[8]; this._portals = new Portal[8];
this.gateBuilding = gateBuilding; this.gateBuilding = gateBuilding;
// Load portals for this runegate portals from the database
configurePortals();
// Chaos, Khar and Oblivion are on by default // Chaos, Khar and Oblivion are on by default
_portals[Enum.PortalType.CHAOS.ordinal()].activate(false); _portals[Enum.PortalType.CHAOS.ordinal()].activate(false);
@@ -74,7 +78,6 @@ public class Runegate {
Building gateBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, gateID); Building gateBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, gateID);
Runegate runegate = new Runegate(gateBuilding); Runegate runegate = new Runegate(gateBuilding);
runegate.configurePortals();
_runegates.put(gateID, runegate); _runegates.put(gateID, runegate);
} }