mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 05:08:00 +00:00
have core/ directory use consolex for remote logging
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Execution, MutableGame, MutablePlayer, MutableUnit, Tile, Unit, UnitType } from "../game/Game";
|
||||
import { PathFinder } from "../pathfinding/PathFinding";
|
||||
import { PathFindResultType } from "../pathfinding/AStar";
|
||||
import { consolex } from "../Consolex";
|
||||
|
||||
export class ShellExecution implements Execution {
|
||||
|
||||
@@ -43,7 +44,7 @@ export class ShellExecution implements Execution {
|
||||
case PathFindResultType.Pending:
|
||||
return
|
||||
case PathFindResultType.PathNotFound:
|
||||
console.log(`Shell ${this.shell} could not find target`)
|
||||
consolex.log(`Shell ${this.shell} could not find target`)
|
||||
this.active = false
|
||||
this.shell.delete(false)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user