mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 04:01:36 +00:00
have core/ directory use consolex for remote logging
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { consolex } from "../Consolex";
|
||||
import {AllPlayers, Execution, MutableGame, MutablePlayer, PlayerID} from "../game/Game";
|
||||
|
||||
export class DonateExecution implements Execution {
|
||||
@@ -26,7 +27,7 @@ export class DonateExecution implements Execution {
|
||||
if (this.sender.canDonate(this.recipient)) {
|
||||
this.sender.donate(this.recipient, this.troops)
|
||||
} else {
|
||||
console.warn(`cannot send tropps from ${this.sender} to ${this.recipient}`)
|
||||
consolex.warn(`cannot send tropps from ${this.sender} to ${this.recipient}`)
|
||||
}
|
||||
this.active = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user