Increase war ops evac time (#33628)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user