zone loading
This commit is contained in:
@@ -81,7 +81,9 @@ public class Mine extends AbstractGameObject {
|
||||
this.buildingID = rs.getInt("mine_buildingUID");
|
||||
this.flags = rs.getInt("flags");
|
||||
//int parent = rs.getInt("parent");
|
||||
if(BuildingManager.getBuildingFromCache(rs.getInt("mine_buildingUID")) != null) {
|
||||
Building tower = BuildingManager.getBuildingFromCache(rs.getInt("mine_buildingUID"));
|
||||
|
||||
for (Zone zone : ZoneManager.getAllZonesIn(tower.loc)) {
|
||||
if (zone.isMacroZone()) {
|
||||
this.parentZone = zone;
|
||||
@@ -114,6 +116,7 @@ public class Mine extends AbstractGameObject {
|
||||
this.production = Resource.valueOf(rs.getString("mine_resource"));
|
||||
this.lastClaimer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetTimes(){
|
||||
EuroMines.get(0).liveTime = 16;
|
||||
@@ -150,7 +153,7 @@ public class Mine extends AbstractGameObject {
|
||||
AmericaMines.get(10).liveTime = 1;
|
||||
AmericaMines.get(11).liveTime = 1;
|
||||
AmericaMines.get(12).liveTime = 1;
|
||||
AmericaMines.get(13).liveTime = 1;
|
||||
//AmericaMines.get(13).liveTime = 1;
|
||||
|
||||
|
||||
int count = 1;
|
||||
|
||||
Reference in New Issue
Block a user