Browse Source

hard set mine windows

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
71b7fd5c1b
  1. 25
      src/engine/objects/Mine.java

25
src/engine/objects/Mine.java

@ -208,6 +208,25 @@ public class Mine extends AbstractGameObject { @@ -208,6 +208,25 @@ public class Mine extends AbstractGameObject {
//pre-load all building sets
ArrayList<Mine> serverMines = MineQueries.GET_ALL_MINES_FOR_SERVER();
for (Mine mine : serverMines) {
Mine.mineMap.put(mine, mine.buildingID);
Mine.towerMap.put(mine.buildingID, mine);
if(mine.capSize == 5){
mine.liveLength = 1800;
}
if(mine.capSize == 10){
if(ThreadLocalRandom.current().nextInt(0,100) > 50){
mine.liveLength = 1800;
} else{
mine.liveLength = 3600;
}
}
if(mine.capSize == 20){
mine.liveLength = 3600;
}
}
ChinaMines.add(serverMines.get(0));
AmericaMines.add(serverMines.get(1));
EuroMines.add(serverMines.get(2));
@ -244,12 +263,6 @@ public class Mine extends AbstractGameObject { @@ -244,12 +263,6 @@ public class Mine extends AbstractGameObject {
ChinaMines.add(serverMines.get(33));
AmericaMines.add(serverMines.get(34));
SetTimes();
for (Mine mine : serverMines) {
Mine.mineMap.put(mine, mine.buildingID);
Mine.towerMap.put(mine.buildingID, mine);
}
} catch (Exception e) {
e.printStackTrace();
}

Loading…
Cancel
Save