From 115b3e0519928843e81e71b928d4e80fcd5c1e69 Mon Sep 17 00:00:00 2001
From: lzk <124214523+lzk228@users.noreply.github.com>
Date: Fri, 13 Dec 2024 04:10:20 +0100
Subject: [PATCH] Increase war ops evac time (#33628)
---
.../GameTicking/Rules/Components/NukeopsRuleComponent.cs | 6 ++++++
Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs
index 14a837aab7..5626f11e0e 100644
--- a/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs
+++ b/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs
@@ -71,6 +71,12 @@ public sealed partial class NukeopsRuleComponent : Component
[DataField]
public TimeSpan WarNukieArriveDelay = TimeSpan.FromMinutes(15);
+ ///
+ /// Time crew can't call emergency shuttle after war declaration.
+ ///
+ [DataField]
+ public TimeSpan WarEvacShuttleDisabled = TimeSpan.FromMinutes(25);
+
///
/// Minimal operatives count for war declaration
///
diff --git a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
index ca6548301a..e22626594f 100644
--- a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
+++ b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
@@ -312,7 +312,7 @@ public sealed class NukeopsRuleSystem : GameRuleSystem
{
// 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");