This commit is contained in:
evanpelle
2025-12-04 11:41:48 -08:00
committed by Trajkov Dimitar
parent b569e682e8
commit c145403afd
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -198,12 +198,13 @@ export class LocalServer {
});
}
public endGame() {
public async endGame() {
console.log("local server ending game");
clearInterval(this.turnCheckInterval);
if (this.isReplay) {
return;
}
const players: PlayerRecord[] = [
{
persistentID: getPersistentID(),
+10
View File
@@ -292,4 +292,14 @@ export class TerritoryPatternsModal extends LitElement {
render(preview, this.previewButton);
this.requestUpdate();
}
private isLoggedIn(): boolean {
if (this.userMeResponse === false) {
return false;
}
return (
this.userMeResponse.user.discord !== undefined ||
this.userMeResponse.user.email !== undefined
);
}
}