|
|
|
@ -81,9 +81,11 @@ public class Mine extends AbstractGameObject {
@@ -81,9 +81,11 @@ 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()) { |
|
|
|
|
|
|
|
|
|
for (Zone zone : ZoneManager.getAllZonesIn(tower.loc)) { |
|
|
|
|
if (zone.isMacroZone()) { |
|
|
|
|
this.parentZone = zone; |
|
|
|
|
this.zoneName = this.parentZone.getParent().getName(); |
|
|
|
|
} |
|
|
|
@ -114,6 +116,7 @@ public class Mine extends AbstractGameObject {
@@ -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 {
@@ -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; |
|
|
|
|