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-04 09:22:17 -07:00
committed by GitHub
parent a02037ae1c
commit 77f57207be
42 changed files with 104 additions and 197 deletions
+3 -4
View File
@@ -1,5 +1,4 @@
import { Config } from "../configuration/Config";
import { consolex } from "../Consolex";
import { AllPlayersStats, ClientID } from "../Schemas";
import { simpleHash } from "../Util";
import { AllianceImpl } from "./AllianceImpl";
@@ -196,7 +195,7 @@ export class GameImpl implements Game {
recipient: Player,
): AllianceRequest | null {
if (requestor.isAlliedWith(recipient)) {
consolex.log("cannot request alliance, already allied");
console.log("cannot request alliance, already allied");
return null;
}
if (
@@ -204,14 +203,14 @@ export class GameImpl implements Game {
.incomingAllianceRequests()
.find((ar) => ar.requestor() === requestor) !== undefined
) {
consolex.log(`duplicate alliance request from ${requestor.name()}`);
console.log(`duplicate alliance request from ${requestor.name()}`);
return null;
}
const correspondingReq = requestor
.incomingAllianceRequests()
.find((ar) => ar.requestor() === recipient);
if (correspondingReq !== undefined) {
consolex.log(`got corresponding alliance requests, accepting`);
console.log(`got corresponding alliance requests, accepting`);
correspondingReq.accept();
return null;
}