mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 22:48:25 +00:00
AStar returns cell instead of path
This commit is contained in:
@@ -16,7 +16,7 @@ export class NukeExecution implements Execution {
|
||||
private nuke: MutableUnit
|
||||
private dst: Tile
|
||||
|
||||
private pathFinder: PathFinder = PathFinder.Serial(10_000, () => true)
|
||||
private pathFinder: PathFinder
|
||||
constructor(
|
||||
private type: UnitType.AtomBomb | UnitType.HydrogenBomb,
|
||||
private senderID: PlayerID,
|
||||
@@ -26,6 +26,7 @@ export class NukeExecution implements Execution {
|
||||
|
||||
init(mg: MutableGame, ticks: number): void {
|
||||
this.mg = mg
|
||||
this.pathFinder = PathFinder.Serial(mg, 10_000, () => true)
|
||||
this.player = mg.player(this.senderID)
|
||||
this.dst = this.mg.tile(this.cell)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user