mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 09:14:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user