Changed consolex to console logging (#1036)

## Description:
Changed from consolex to console
## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

@qqkedsi
This commit is contained in:
falc
2025-06-05 16:14:27 +02:00
committed by 1brucben
parent 410d9a1909
commit 07916d46bf
41 changed files with 91 additions and 183 deletions
+3 -4
View File
@@ -1,4 +1,3 @@
import { consolex } from "../Consolex";
import { Execution, Game, Player, PlayerID } from "../game/Game";
export class QuickChatExecution implements Execution {
@@ -18,12 +17,12 @@ export class QuickChatExecution implements Execution {
init(mg: Game, ticks: number): void {
this.mg = mg;
if (!mg.hasPlayer(this.senderID)) {
consolex.warn(`QuickChatExecution: sender ${this.senderID} not found`);
console.warn(`QuickChatExecution: sender ${this.senderID} not found`);
this.active = false;
return;
}
if (!mg.hasPlayer(this.recipientID)) {
consolex.warn(
console.warn(
`QuickChatExecution: recipient ${this.recipientID} not found`,
);
this.active = false;
@@ -55,7 +54,7 @@ export class QuickChatExecution implements Execution {
this.recipient.name(),
);
consolex.log(
console.log(
`[QuickChat] ${this.sender.name}${this.recipient.name}: ${message}`,
);