forked from MagicBane/Server
maintenance completed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user