Add current player count to lobby (#7402)

This commit is contained in:
Radosvik
2022-04-04 05:39:42 +00:00
committed by GitHub
parent babb279dd1
commit cef0c67511
2 changed files with 3 additions and 1 deletions

View File

@@ -45,11 +45,12 @@ namespace Content.Server.GameTicking
return string.Empty;
}
var playerCount = $"{_playerManager.PlayerCount}";
var map = _gameMapManager.GetSelectedMap();
var mapName = map?.MapName ?? Loc.GetString("game-ticker-no-map-selected");
var gmTitle = Loc.GetString(_preset.ModeTitle);
var desc = Loc.GetString(_preset.Description);
return Loc.GetString("game-ticker-get-info-text",("mapName", mapName),("gmTitle", gmTitle),("desc", desc));
return Loc.GetString("game-ticker-get-info-text",("playerCount", playerCount),("mapName", mapName),("gmTitle", gmTitle),("desc", desc));
}
private TickerLobbyReadyEvent GetStatusSingle(ICommonSession player, LobbyPlayerStatus status)

View File

@@ -10,6 +10,7 @@ game-ticker-pause-start = Round start has been paused.
game-ticker-pause-start-resumed = Round start countdown is now resumed.
game-ticker-player-join-game-message = Welcome to Space Station 14! If this is your first time playing, be sure to press F1 on your keyboard and read the game rules, and don't be afraid to ask for help in OOC.
game-ticker-get-info-text = Hi and welcome to [color=white]Space Station 14![/color]
The current player count is: [color=white]{$playerCount}[/color]
The current map is: [color=white]{$mapName}[/color]
The current game mode is: [color=white]{$gmTitle}[/color].
>[color=yellow]{$desc}[/color]