]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Increase war ops evac time (#33628)
authorlzk <124214523+lzk228@users.noreply.github.com>
Fri, 13 Dec 2024 03:10:20 +0000 (04:10 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Dec 2024 03:10:20 +0000 (21:10 -0600)
Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs
Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs

index 14a837aab732f5293d6f5d1379e0e2e8049ac471..5626f11e0e35cf089bbe29cceec2ca91d0749dd9 100644 (file)
@@ -71,6 +71,12 @@ public sealed partial class NukeopsRuleComponent : Component
     [DataField]
     public TimeSpan WarNukieArriveDelay = TimeSpan.FromMinutes(15);
 
+    /// <summary>
+    ///     Time crew can't call emergency shuttle after war declaration.
+    /// </summary>
+    [DataField]
+    public TimeSpan WarEvacShuttleDisabled = TimeSpan.FromMinutes(25);
+
     /// <summary>
     ///     Minimal operatives count for war declaration
     /// </summary>
index ca6548301a7ee43a24aa90d06ff2ad949844a958..e22626594f6c20da6efb353a8bdaf00559ff54bb 100644 (file)
@@ -312,7 +312,7 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
             {
                 // Nukies must wait some time after declaration of war to get on the station
                 var warTime = Timing.CurTime.Subtract(nukeops.WarDeclaredTime.Value);
-                if (warTime < nukeops.WarNukieArriveDelay)
+                if (warTime < nukeops.WarEvacShuttleDisabled)
                 {
                     ev.Cancelled = true;
                     ev.Reason = Loc.GetString("war-ops-shuttle-call-unavailable");