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
Binary file not shown.
@@ -200,6 +200,8 @@ public class SectorPresets{
three = new SectorPreset("three", erekir, 36){{ three = new SectorPreset("three", erekir, 36){{
difficulty = 5; difficulty = 5;
captureWave = 9;
}}; }};
four = new SectorPreset("four", erekir, 29){{ four = new SectorPreset("four", erekir, 29){{
+4
View File
@@ -135,8 +135,12 @@ public class SectorInfo{
//if there are infinite waves and no win wave, add a win wave. //if there are infinite waves and no win wave, add a win wave.
if(winWave <= 0 && !attack){ if(winWave <= 0 && !attack){
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; winWave = 30;
} }
}
state.wave = wave; state.wave = wave;
state.rules.waves = waves; state.rules.waves = waves;