have core/ directory use consolex for remote logging

This commit is contained in:
evanpelle
2024-12-18 12:00:00 -08:00
parent 642d5dc4ca
commit ff02d9d8b6
31 changed files with 91 additions and 66 deletions
+2 -1
View File
@@ -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
}