diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index 83aa75c5f..9170ca22c 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -2,6 +2,7 @@ import { LitElement, html } from "lit"; import { customElement, state } from "lit/decorators.js"; import { translateText } from "../client/Utils"; import { consolex } from "../core/Consolex"; +import { GameMode } from "../core/game/Game"; import { GameID, GameInfo } from "../core/Schemas"; import { generateID } from "../core/Util"; import { JoinLobbyEvent } from "./Main"; @@ -115,26 +116,26 @@ export class PublicLobby extends LitElement { style="border: 1px solid rgba(255, 255, 255, 0.5)" />
-
-
+
+
${translateText( `map.${lobby.gameConfig.gameMap.toLowerCase().replace(/\s+/g, "")}`, )}
-
-
- ${lobby.numClients} / ${lobby.gameConfig.maxPlayers} - ${translateText("public_lobby.waiting")} + ${lobby.gameConfig.gameMode == GameMode.Team + ? translateText("game_mode.teams") + : translateText("game_mode.ffa")}
-
-
+
+
+ ${lobby.numClients} / ${lobby.gameConfig.maxPlayers} +
+
${timeDisplay}
diff --git a/src/server/Master.ts b/src/server/Master.ts index 140f40578..c2a00d42b 100644 --- a/src/server/Master.ts +++ b/src/server/Master.ts @@ -5,7 +5,7 @@ import http from "http"; import path from "path"; import { fileURLToPath } from "url"; import { getServerConfigFromServer } from "../core/configuration/ConfigLoader"; -import { Difficulty, GameMapType, GameType } from "../core/game/Game"; +import { Difficulty, GameMapType, GameMode, GameType } from "../core/game/Game"; import { PseudoRandom } from "../core/PseudoRandom"; import { GameConfig, GameInfo } from "../core/Schemas"; import { generateID } from "../core/Util"; @@ -237,6 +237,7 @@ async function schedulePublicGame() { instantBuild: false, disableNPCs: false, disableNukes: false, + gameMode: Math.random() < 0.7 ? GameMode.FFA : GameMode.Team, bots: 400, } as GameConfig;