Misc balance / Fixed cross-planet sector 'lock'

This commit is contained in:
Anuken
2022-10-26 09:53:51 -04:00
parent cc4ea7af5e
commit 4e856bee90
3 changed files with 13 additions and 10 deletions

View File

@@ -146,10 +146,16 @@ public class Universe{
turn++;
int newSecondsPassed = (int)(turnDuration / 60);
Planet current = state.getPlanet();
//update relevant sectors
for(Planet planet : content.planets()){
//planets with different wave simulation status are not updated
if(current != null && current.allowWaveSimulation != planet.allowWaveSimulation){
continue;
}
//first pass: clear import stats
for(Sector sector : planet.sectors){
if(sector.hasBase() && !sector.isBeingPlayed()){