Bugfixes
This commit is contained in:
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){{
|
||||||
|
|||||||
@@ -135,7 +135,11 @@ 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){
|
||||||
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;
|
state.wave = wave;
|
||||||
|
|||||||
Reference in New Issue
Block a user