diff --git a/src/core/execution/TransportShipExecution.ts b/src/core/execution/TransportShipExecution.ts index 3681dbaae..543dac9ea 100644 --- a/src/core/execution/TransportShipExecution.ts +++ b/src/core/execution/TransportShipExecution.ts @@ -64,7 +64,7 @@ export class TransportShipExecution implements Execution { this.lastMove = ticks; this.mg = mg; - this.pathFinder = PathFinder.Mini(mg, 10_000, true, 10); + this.pathFinder = PathFinder.Mini(mg, 10_000, true, 100); if ( this.attacker.unitCount(UnitType.TransportShip) >= diff --git a/src/core/execution/WarshipExecution.ts b/src/core/execution/WarshipExecution.ts index d11e97c57..f573a8a47 100644 --- a/src/core/execution/WarshipExecution.ts +++ b/src/core/execution/WarshipExecution.ts @@ -27,7 +27,7 @@ export class WarshipExecution implements Execution { init(mg: Game, ticks: number): void { this.mg = mg; - this.pathfinder = PathFinder.Mini(mg, 5000); + this.pathfinder = PathFinder.Mini(mg, 10_000, true, 100); this.random = new PseudoRandom(mg.ticks()); if (isUnit(this.input)) { this.warship = this.input; diff --git a/src/core/game/TransportShipUtils.ts b/src/core/game/TransportShipUtils.ts index d9ec739ad..b457ad94a 100644 --- a/src/core/game/TransportShipUtils.ts +++ b/src/core/game/TransportShipUtils.ts @@ -148,7 +148,7 @@ export function bestShoreDeploymentSource( if (t === null) return false; const candidates = candidateShoreTiles(gm, player, t); - const aStar = new MiniAStar(gm, gm.miniMap(), candidates, t, 500_000, 1); + const aStar = new MiniAStar(gm, gm.miniMap(), candidates, t, 1_000_000, 1); const result = aStar.compute(); if (result !== PathFindResultType.Completed) { console.warn(`bestShoreDeploymentSource: path not found: ${result}`);