diff --git a/resources/lang/en.json b/resources/lang/en.json index c11ce34d9..9240303c8 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -139,6 +139,7 @@ "options_title": "Options", "bots": "Bots: ", "bots_disabled": "Disabled", + "nations": "Nations: ", "disable_nations": "Disable Nations", "instant_build": "Instant build", "infinite_gold": "Infinite gold", @@ -146,6 +147,7 @@ "compact_map": "Mini Map", "max_timer": "Game length (minutes)", "disable_nukes": "Disable Nukes", + "automatic_difficulty": "Automatic Difficulty", "enables_title": "Enable Settings", "start": "Start Game" }, @@ -222,6 +224,7 @@ "teams_Duos": "Duos (teams of 2)", "teams_Trios": "Trios (teams of 3)", "teams_Quads": "Quads (teams of 4)", + "teams_hvn": "Humans Vs Nations", "teams": "{num} teams" }, "matchmaking_modal": { @@ -244,6 +247,7 @@ "options_title": "Options", "bots": "Bots: ", "bots_disabled": "Disabled", + "nations": "Nations: ", "disable_nations": "Disable Nations", "max_timer": "Game length (minutes)", "instant_build": "Instant build", @@ -252,6 +256,7 @@ "infinite_troops": "Infinite troops", "donate_troops": "Donate troops", "compact_map": "Mini Map", + "automatic_difficulty": "Automatic Difficulty", "enables_title": "Enable Settings", "player": "Player", "players": "Players", diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index a7a743ff1..4da086791 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -9,6 +9,7 @@ import { GameMapSize, GameMapType, GameMode, + HumansVsNations, Quads, Trios, UnitType, @@ -284,7 +285,18 @@ export class HostLobbyModal extends LitElement { ${translateText("host_modal.team_count")}
- ${[2, 3, 4, 5, 6, 7, Quads, Trios, Duos].map( + ${[ + 2, + 3, + 4, + 5, + 6, + 7, + Quads, + Trios, + Duos, + HumansVsNations, + ].map( (o) => html`
${typeof o === "string" - ? translateText(`public_lobby.teams_${o}`) + ? o === HumansVsNations + ? translateText("public_lobby.teams_hvn") + : translateText(`public_lobby.teams_${o}`) : translateText("public_lobby.teams", { num: o, })} @@ -313,42 +327,53 @@ export class HostLobbyModal extends LitElement { ${translateText("host_modal.options_title")}
- - -
- ${[2, 3, 4, 5, 6, 7, Quads, Trios, Duos].map( + ${[ + 2, + 3, + 4, + 5, + 6, + 7, + Quads, + Trios, + Duos, + HumansVsNations, + ].map( (o) => html`
${typeof o === "string" - ? translateText(`public_lobby.teams_${o}`) + ? o === HumansVsNations + ? translateText("public_lobby.teams_hvn") + : translateText(`public_lobby.teams_${o}`) : translateText(`public_lobby.teams`, { num: o })}
@@ -240,21 +254,29 @@ export class SinglePlayerModal extends LitElement {
- + ${!( + this.gameMode === GameMode.Team && + this.teamCount === HumansVsNations + ) + ? html` + + ` + : ""} +