From e2f18df42687c5767f599ada2b4d963369595310 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Mon, 10 Mar 2025 06:37:43 -0700 Subject: [PATCH] use center eucl dist on spawn tiles, looks nicer (#202) --- src/core/execution/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execution/Util.ts b/src/core/execution/Util.ts index f3a912b2f..bd04d7ee3 100644 --- a/src/core/execution/Util.ts +++ b/src/core/execution/Util.ts @@ -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), ); }