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