Fixed waves spawning on blocks

This commit is contained in:
Anuken
2021-12-26 16:09:49 -05:00
parent 4fbeae1afc
commit f788fa31ed
2 changed files with 5 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
erase(spawnX, spawnY, 15);
brush(pathfind(spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 300f : 0f) + maxd - tile.dst(width/2f, height/2f)/10f, Astar.manhattan), 7);
erase(endX, endY, 12);
//arkycite
pass((x, y) -> {
@@ -177,6 +178,9 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
inverseFloodFill(tiles.getn(spawnX, spawnY));
//make sure enemies have room
erase(endX, endY, 6);
tiles.getn(endX, endY).setOverlay(Blocks.spawn);
//TODO tech is lazy and boring