main cult

This commit is contained in:
EnefFlow
2024-01-27 15:19:52 +03:00
committed by Aviu00
parent 6310813ce6
commit 4fab8188f0
429 changed files with 12281 additions and 9 deletions

View File

@@ -424,6 +424,34 @@ namespace Content.Server.RoundEnd
SetAutoCallTime();
}
}
//WD start
public void DelayCursedShuttle(TimeSpan delay)
{
if (_gameTicker.RunLevel != GameRunLevel.InRound)
return;
if (_countdownTokenSource == null)
return;
var countdown = ExpectedCountdownEnd - _gameTiming.CurTime + delay;
ExpectedCountdownEnd = _gameTiming.CurTime + countdown;
_countdownTokenSource.Cancel();
_countdownTokenSource = new ();
if (countdown != null)
Timer.Spawn(countdown.Value, _shuttle.CallEmergencyShuttle, _countdownTokenSource.Token);
_chatSystem.DispatchGlobalAnnouncement(Loc.GetString("round-end-system-shuttle-curse-delayed-announcement"),
Loc.GetString("Station"), colorOverride: Color.Gold);
}
public bool ShuttleCalled()
{
return ExpectedCountdownEnd != null;
}
//WD end
}
public sealed class RoundEndSystemChangedEvent : EntityEventArgs