Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
fix govno system
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemirda committed Apr 12, 2024
1 parent 2bc9593 commit 949fbe0
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,16 @@ private void UpdateEmergencyConsole(float frameTime)
if (!EarlyLaunchAuthorized)
AnnounceLaunch();
}

// Andromeda Emergency
if (!_launchedShuttles && _consoleAccumulator <= _AndromedaEmergency60 && trashcheck60 == 0)
// Andromeda Emergency start
if (!_launchedShuttles && !_announced && _consoleAccumulator <= _AndromedaEmergency60 && trashcheck60 == 0)
{
if (_announced == false)
{
_chatSystem.DispatchGlobalAnnouncement(
Loc.GetString("emergency-shuttle-andromeda-60", ("AndromedaEmergency60", $"{_AndromedaEmergency60:0}")),
playSound: false,
colorOverride: DangerColor);
_audio.PlayGlobal("/Audio/Announcements/announce.ogg", Filter.Broadcast(), recordReplay: true);
trashcheck60++;
}
_chatSystem.DispatchGlobalAnnouncement(
Loc.GetString("emergency-shuttle-andromeda-60", ("AndromedaEmergency60", $"{_AndromedaEmergency60:0}")),
playSound: false,
colorOverride: DangerColor);
_audio.PlayGlobal("/Audio/Announcements/announce.ogg", Filter.Broadcast(), recordReplay: true);
trashcheck60++;
}

// Andromeda Emergency
if (!_launchedShuttles && _consoleAccumulator <= _AndromedaEmergency30 && trashcheck30 == 0)
{
if (_announced == false)
Expand All @@ -188,6 +182,7 @@ private void UpdateEmergencyConsole(float frameTime)
trashcheck30++;
}
}
// Andromeda Emergency end

// Imminent departure
if (!_launchedShuttles && _consoleAccumulator <= ShuttleSystem.DefaultStartupTime)
Expand Down

0 comments on commit 949fbe0

Please sign in to comment.