This commit is contained in:
Anuken
2022-05-06 20:20:09 -04:00
parent 62b632758b
commit fb389c9984
3 changed files with 7 additions and 1 deletions

View File

@@ -200,6 +200,8 @@ public class SectorPresets{
three = new SectorPreset("three", erekir, 36){{
difficulty = 5;
captureWave = 9;
}};
four = new SectorPreset("four", erekir, 29){{

View File

@@ -135,7 +135,11 @@ public class SectorInfo{
//if there are infinite waves and no win wave, add a win wave.
if(winWave <= 0 && !attack){
winWave = 30;
if(state.rules.sector != null && state.rules.sector.preset != null && state.rules.sector.preset.captureWave > 0){
winWave = state.rules.sector.preset.captureWave;
}else{
winWave = 30;
}
}
state.wave = wave;