Nuke Timer MinimumTime (#34734)

* Implemented the thing

* Made requested changes
This commit is contained in:
Southbridge
2025-01-29 04:04:45 -05:00
committed by GitHub
parent 1f57f0566e
commit 55bffa864a
2 changed files with 10 additions and 0 deletions

View File

@@ -522,6 +522,9 @@ public sealed class NukeSystem : EntitySystem
_sound.PlayGlobalOnStation(uid, _audio.GetSound(component.DisarmSound));
_sound.StopStationEventMusic(uid, StationEventMusicType.Nuke);
// reset nuke remaining time to either itself or the minimum time, whichever is higher
component.RemainingTime = Math.Max(component.RemainingTime, component.MinimumTime);
// disable sound and reset it
component.PlayedAlertSound = false;
component.AlertAudioStream = _audio.Stop(component.AlertAudioStream);