|
|
|
@ -119,6 +119,7 @@ public class Mine extends AbstractGameObject {
@@ -119,6 +119,7 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void SetTimes(){ |
|
|
|
|
try { |
|
|
|
|
EuroMines.get(0).liveTime = 16; |
|
|
|
|
EuroMines.get(1).liveTime = 16; |
|
|
|
|
EuroMines.get(2).liveTime = 16; |
|
|
|
@ -126,6 +127,10 @@ public class Mine extends AbstractGameObject {
@@ -126,6 +127,10 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
EuroMines.get(4).liveTime = 16; |
|
|
|
|
EuroMines.get(5).liveTime = 16; |
|
|
|
|
EuroMines.get(6).liveTime = 16; |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
try{ |
|
|
|
|
ChinaMines.get(0).liveTime = 10; |
|
|
|
|
ChinaMines.get(1).liveTime = 10; |
|
|
|
|
ChinaMines.get(2).liveTime = 10; |
|
|
|
@ -140,6 +145,10 @@ public class Mine extends AbstractGameObject {
@@ -140,6 +145,10 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
ChinaMines.get(11).liveTime = 12; |
|
|
|
|
ChinaMines.get(12).liveTime = 12; |
|
|
|
|
ChinaMines.get(13).liveTime = 12; |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
try{ |
|
|
|
|
AmericaMines.get(0).liveTime = 23; |
|
|
|
|
AmericaMines.get(1).liveTime = 23; |
|
|
|
|
AmericaMines.get(2).liveTime = 23; |
|
|
|
@ -153,8 +162,10 @@ public class Mine extends AbstractGameObject {
@@ -153,8 +162,10 @@ 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; |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int count = 1; |
|
|
|
|
for(Mine mine : EuroMines){ |
|
|
|
@ -175,13 +186,14 @@ public class Mine extends AbstractGameObject {
@@ -175,13 +186,14 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
count ++; |
|
|
|
|
if(count == 5) |
|
|
|
|
count = 1; |
|
|
|
|
|
|
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
|
if(mineTower != null){ |
|
|
|
|
if (mineTower != null) { |
|
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(Mine mine : ChinaMines){ |
|
|
|
|
switch(count){ |
|
|
|
@ -202,12 +214,14 @@ public class Mine extends AbstractGameObject {
@@ -202,12 +214,14 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
if(count == 5) |
|
|
|
|
count = 1; |
|
|
|
|
|
|
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
|
if(mineTower != null){ |
|
|
|
|
if (mineTower != null) { |
|
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(Mine mine : AmericaMines){ |
|
|
|
|
switch(count){ |
|
|
|
@ -228,13 +242,15 @@ public class Mine extends AbstractGameObject {
@@ -228,13 +242,15 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
if(count == 5) |
|
|
|
|
count = 1; |
|
|
|
|
|
|
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
|
if(mineTower != null){ |
|
|
|
|
if (mineTower != null) { |
|
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public static void releaseMineClaims(PlayerCharacter playerCharacter) { |
|
|
|
|
|
|
|
|
|
if (playerCharacter == null) |
|
|
|
|