mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-12 04:33:53 +00:00
have core/ directory use consolex for remote logging
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { consolex } from "../Consolex";
|
||||
import { Execution, MutableGame, MutablePlayer, PlayerID } from "../game/Game";
|
||||
|
||||
export class SetTargetTroopRatioExecution implements Execution {
|
||||
@@ -15,7 +16,7 @@ export class SetTargetTroopRatioExecution implements Execution {
|
||||
|
||||
tick(ticks: number): void {
|
||||
if (this.targetTroopsRatio < 0 || this.targetTroopsRatio > 1) {
|
||||
console.warn(`target troop ratio of ${this.targetTroopsRatio} for player ${this.player} invalid`)
|
||||
consolex.warn(`target troop ratio of ${this.targetTroopsRatio} for player ${this.player} invalid`)
|
||||
} else {
|
||||
this.player.setTargetTroopRatio(this.targetTroopsRatio)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user