Skip to content

Commit

Permalink
Comms Console Announcer Fixes (#610)
Browse files Browse the repository at this point in the history
# Description

Cherry-Picks Fansana/floofstation1#50

This fixes some mistakes in the code for Michael's announcements.

---------

Co-authored-by: Fansana <[email protected]>
  • Loading branch information
VMSolidus and Fansana authored Jul 31, 2024
1 parent b15d096 commit 80eb456
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Content.Server/AlertLevel/AlertLevelSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void SetLevel(EntityUid station, string level, bool playSound, bool annou
if (Loc.TryGetString(detail.Announcement, out var locAnnouncement))
announcement = locAnnouncement;

var alert = _announcer.GetAnnouncementId($"Alert{level}");
var alert = $"alert{char.ToUpperInvariant(level[0]) + level[1..]}";
if (playSound)
_announcer.SendAnnouncementAudio(alert, _stationSystem.GetInOwningStation(station));
if (announce)
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions Resources/Prototypes/Announcers/michael.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
path: alerts/red.ogg
- id: alertGamma # There is a massive immediate threat to the station, listen to Central Command
path: alerts/gamma.ogg
# - id: alertDelta # The station is being or about to be massively destroyed, run for your life
# path: alerts/delta.ogg
- id: alertDelta # The station is being or about to be massively destroyed, run for your life
path: alerts/delta.ogg
- id: alertEpsilon # The station has been terminated, good luck survivors!
path: alerts/epsilon.ogg
audioParams:
Expand Down

0 comments on commit 80eb456

Please sign in to comment.