Fixed tests
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user