use terrain tile for search

This commit is contained in:
evanpelle
2025-01-13 17:00:15 -08:00
committed by Evan
parent bf52754fb7
commit f0d9477e56
8 changed files with 67 additions and 58 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export class PortExecution implements Execution {
const pf = new MiniAStar(
this.mg.terrainMap(),
this.mg.terrainMiniMap(),
this.port.tile(), port.tile(),
this.port.tile().terrain(), port.tile().terrain(),
sn => sn.type() == TerrainType.Ocean,
10_000,
25