Guard bell (#1242)

* add Guard Bell

* revert vanila changes, add same functionality

* revert more vanila changes, replace .ogg, fix locale and locale usage

* Update GuardBell.yml

* Update base.yml

* add attributions.yml for alerts

* try changing to proper license

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
This commit is contained in:
Militore
2025-05-09 15:07:05 +03:00
committed by GitHub
parent d9c2bd8e09
commit aa2e080e31
17 changed files with 278 additions and 4 deletions

View File

@@ -18,7 +18,8 @@ public sealed class AlertLevelSystem : EntitySystem
[Dependency] private readonly StationSystem _stationSystem = default!;
// Until stations are a prototype, this is how it's going to have to be.
public const string DefaultAlertLevelSet = "stationAlerts";
// public const string DefaultAlertLevelSet = "stationAlerts"; // OLD VANILA. Changed by CP14.
public const string DefaultAlertLevelSet = "CP14TownAlerts";
public override void Initialize()
{
@@ -184,7 +185,8 @@ public sealed class AlertLevelSystem : EntitySystem
}
// The full announcement to be spat out into chat.
var announcementFull = Loc.GetString("alert-level-announcement", ("name", name), ("announcement", announcement));
// var announcementFull = Loc.GetString("alert-level-announcement", ("name", name), ("announcement", announcement)); // OLD VANILA. Changed by CP14.
var announcementFull = Loc.GetString("cp14-alert-level-announcement", ("name", name), ("announcement", announcement));
var playDefault = false;
if (playSound)