]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Adds current panic bunker status to the server's /status API (#23330)
authordeathride58 <deathride58@users.noreply.github.com>
Tue, 2 Jan 2024 00:16:03 +0000 (19:16 -0500)
committerGitHub <noreply@github.com>
Tue, 2 Jan 2024 00:16:03 +0000 (17:16 -0700)
allows the server to advertise its current panic bunker status

Content.Server/GameTicking/GameTicker.StatusShell.cs

index 7d16f2ede2e63980b2e22e17f870407883a08d40..61173b6f9a7acd075e0eed53312ae1455bb56289 100644 (file)
@@ -43,6 +43,7 @@ namespace Content.Server.GameTicking
                 jObject["round_id"] = _gameTicker.RoundId;
                 jObject["players"] = _playerManager.PlayerCount;
                 jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers);
+                jObject["panic_bunker"] = _cfg.GetCVar(CCVars.PanicBunkerEnabled);
                 jObject["run_level"] = (int) _runLevel;
                 if (_runLevel >= GameRunLevel.InRound)
                 {