Fixed tests

This commit is contained in:
Anuken
2022-07-14 15:40:21 -04:00
parent 67da71b0f0
commit cd67e70ada
3 changed files with 41 additions and 39 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ public class Control implements ApplicationListener, Loadable{
if(!(build instanceof CoreBuild) && !build.block.privileged){ if(!(build instanceof CoreBuild) && !build.block.privileged){
var ccore = build.closestCore(); var ccore = build.closestCore();
if(ccore != null && build.within(ccore, buildRadius)){ if(ccore != null){
anyBuilds = true; anyBuilds = true;
if(!net.active()){ if(!net.active()){
@@ -893,6 +893,7 @@ public class ApplicationTests{
} }
} }
if(state.rules.waves){
Seq<SpawnGroup> spawns = state.rules.spawns; Seq<SpawnGroup> spawns = state.rules.spawns;
int bossWave = 0; int bossWave = 0;
@@ -929,6 +930,7 @@ public class ApplicationTests{
//TODO this is flawed and needs to be changed later //TODO this is flawed and needs to be changed later
//assertTrue(total < 75, "Sector spawns too many enemies at wave " + i + " (" + total + ")"); //assertTrue(total < 75, "Sector spawns too many enemies at wave " + i + " (" + total + ")");
} }
}
assertEquals(1, Team.sharded.cores().size, "Sector must have one core: " + zone); assertEquals(1, Team.sharded.cores().size, "Sector must have one core: " + zone);
assertTrue(Team.sharded.core().items.total() < 1000, "Sector must not have starting resources: " + zone); assertTrue(Team.sharded.core().items.total() < 1000, "Sector must not have starting resources: " + zone);