Эпсилон - конечная
This commit is contained in:
parent
3f7ad1cf6a
commit
43ae68d795
3 changed files with 14 additions and 0 deletions
|
|
@ -71,5 +71,9 @@ public sealed partial class AlertLevelDetail
|
|||
/// How long it takes for the shuttle to arrive when called.
|
||||
/// </summary>
|
||||
[DataField("shuttleTime")] public TimeSpan ShuttleTime { get; private set; } = TimeSpan.FromMinutes(5);
|
||||
|
||||
// Sunrise-Start
|
||||
[DataField("forceEndRound")] public bool ForceEndRound { get; private set; } = false;
|
||||
// Sunrise-End
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Linq;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Server.RoundEnd;
|
||||
using Content.Server.Station.Systems;
|
||||
using Content.Shared.CCVar;
|
||||
using Robust.Shared.Audio;
|
||||
|
|
@ -16,6 +17,7 @@ public sealed class AlertLevelSystem : EntitySystem
|
|||
[Dependency] private readonly ChatSystem _chatSystem = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly StationSystem _stationSystem = default!;
|
||||
[Dependency] private readonly RoundEndSystem _roundEnd = default!;
|
||||
|
||||
// Until stations are a prototype, this is how it's going to have to be.
|
||||
public const string DefaultAlertLevelSet = "stationAlerts";
|
||||
|
|
@ -189,6 +191,13 @@ public sealed class AlertLevelSystem : EntitySystem
|
|||
sender: stationName);
|
||||
}
|
||||
|
||||
// Sunrise-Start
|
||||
if (detail.ForceEndRound)
|
||||
{
|
||||
_roundEnd.EndRound();
|
||||
}
|
||||
// Sunrise-End
|
||||
|
||||
RaiseLocalEvent(new AlertLevelChangedEvent(station, level));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,3 +70,4 @@
|
|||
emergencyLightColor: DarkViolet
|
||||
forceEnableEmergencyLights: true
|
||||
shuttleTime: 1200
|
||||
forceEndRound: true # Sunrise_Edit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue