use center eucl dist on spawn tiles, looks nicer (#202)

This commit is contained in:
evanpelle
2025-03-10 06:37:43 -07:00
committed by GitHub
parent 3ca4bb4dad
commit e2f18df426
+1 -1
View File
@@ -1,7 +1,7 @@
import { euclDistFN, GameMap, TileRef } from "../game/GameMap";
export function getSpawnTiles(gm: GameMap, tile: TileRef): TileRef[] {
return Array.from(gm.bfs(tile, euclDistFN(tile, 4, false))).filter(
return Array.from(gm.bfs(tile, euclDistFN(tile, 4, true))).filter(
(t) => !gm.hasOwner(t) && gm.isLand(t),
);
}