Browse Source

maintenance completed

lakebane-master
FatBoy-DOTC 5 months ago
parent
commit
4bdc207c37
  1. 1
      src/engine/gameManager/MaintenanceManager.java
  2. 4
      src/engine/gameManager/ZergManager.java

1
src/engine/gameManager/MaintenanceManager.java

@ -183,6 +183,7 @@ public enum MaintenanceManager { @@ -183,6 +183,7 @@ public enum MaintenanceManager {
Logger.error("Maintenance Failed To Find City To Destroy");
for(Building building : city.getParent().zoneBuildingSet){
building.setRank(-1);
DbManager.removeFromCache(building);
}
city.getParent().zoneBuildingSet.clear();
}

4
src/engine/gameManager/ZergManager.java

@ -5,6 +5,10 @@ import engine.objects.Guild; @@ -5,6 +5,10 @@ import engine.objects.Guild;
public class ZergManager {
public static int getBaneCap(Guild guild) {
if(guild.getOwnedCity() == null || guild.getOwnedCity().getTOL() == null)
return 0;
int cityRank = guild.getOwnedCity().getTOL().getRank();
return (cityRank == 8) ? 20 : ((guild.getNation().getSubGuildList().size() + 1 <= 4) ? 10 : 20);
}

Loading…
Cancel
Save