Increase war ops evac time (#33628)

This commit is contained in:
lzk
2024-12-13 04:10:20 +01:00
committed by GitHub
parent 9d7846ed72
commit 115b3e0519
2 changed files with 7 additions and 1 deletions

View File

@@ -71,6 +71,12 @@ public sealed partial class NukeopsRuleComponent : Component
[DataField] [DataField]
public TimeSpan WarNukieArriveDelay = TimeSpan.FromMinutes(15); 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> /// <summary>
/// Minimal operatives count for war declaration /// Minimal operatives count for war declaration
/// </summary> /// </summary>

View 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 // Nukies must wait some time after declaration of war to get on the station
var warTime = Timing.CurTime.Subtract(nukeops.WarDeclaredTime.Value); var warTime = Timing.CurTime.Subtract(nukeops.WarDeclaredTime.Value);
if (warTime < nukeops.WarNukieArriveDelay) if (warTime < nukeops.WarEvacShuttleDisabled)
{ {
ev.Cancelled = true; ev.Cancelled = true;
ev.Reason = Loc.GetString("war-ops-shuttle-call-unavailable"); ev.Reason = Loc.GetString("war-ops-shuttle-call-unavailable");