Fixed default campaign core spawning units in blocks

This commit is contained in:
Anuken
2020-09-06 13:26:23 -04:00
parent cbce04f70f
commit 2a995efa2a
4 changed files with 16 additions and 4 deletions

View File

@@ -83,10 +83,22 @@ public class BaseGenerator{
}
});
//replace walls with the correct type
pass(tile -> {
if(tile.block() instanceof Wall && tile.team() == team && tile.block() != wall && tile.block() != wallLarge){
tile.setBlock(tile.block().size == 2 ? wallLarge : wall, team);
}
});
if(wallAngle > 0){
//small walls
pass(tile -> {
//no walls around cores
if(cores.contains(t -> t.within(tile, (3 + 4) * tilesize))){
return;
}
if(tile.block().alwaysReplace){
boolean any = false;