Browse Source

new maintenance completed

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
094a7a9498
  1. 5
      src/engine/gameManager/MaintenanceManager.java

5
src/engine/gameManager/MaintenanceManager.java

@ -172,8 +172,11 @@ public enum MaintenanceManager { @@ -172,8 +172,11 @@ public enum MaintenanceManager {
setMaintDateTime(tol, tol.maintDateTime.plusDays(1)); //failed to pay maintenance, set next date for tomorrow
if(tol.getRank() == 1)
destroyAllCityAssets(tol.getCity());
try {
tol.destroyOrDerank(null);
}catch(Exception e){
tol.destroyOrDerank(null);
}
}
public static void destroyAllCityAssets(City city){
if(city == null)

Loading…
Cancel
Save