[feat]enableShuttleCall command and button to admin menu

This commit is contained in:
rhailrake
2023-04-27 22:45:07 +06:00
committed by Remuchi
parent 2fc83dce19
commit 6202617b8c
6 changed files with 78 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ using Content.Shared.Communications;
using Content.Shared.Database;
using Content.Shared.Emag.Components;
using Content.Shared.Popups;
using Content.Shared.White;
using Robust.Server.GameObjects;
using Robust.Shared.Configuration;
@@ -188,6 +189,10 @@ namespace Content.Server.Communications
if (_emergency.EmergencyShuttleArrived || !_roundEndSystem.CanCallOrRecall())
return false;
var shuttleCallEnabled = _cfg.GetCVar(WhiteCVars.EmergencyShuttleCallEnabled);
if (!shuttleCallEnabled)
return false;
// Calling shuttle checks
if (_roundEndSystem.ExpectedCountdownEnd is null)
return comp.CanShuttle;