From 16be41dc48ef28accb2665493b8e0709901cf0eb Mon Sep 17 00:00:00 2001 From: Morbo <14136326+Morb0@users.noreply.github.com> Date: Tue, 8 Feb 2022 11:43:24 +0300 Subject: [PATCH] Add Gas Leak & Meteor Swarm events locale files (#6552) --- Content.Server/StationEvents/Events/GasLeak.cs | 5 ++--- Content.Server/StationEvents/Events/MeteorSwarm.cs | 4 ++-- Resources/Locale/en-US/station-events/events/gas-leak.ftl | 2 ++ .../Locale/en-US/station-events/events/meteor-swarm.ftl | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 Resources/Locale/en-US/station-events/events/gas-leak.ftl create mode 100644 Resources/Locale/en-US/station-events/events/meteor-swarm.ftl diff --git a/Content.Server/StationEvents/Events/GasLeak.cs b/Content.Server/StationEvents/Events/GasLeak.cs index 5a225c399d..eb7ef73676 100644 --- a/Content.Server/StationEvents/Events/GasLeak.cs +++ b/Content.Server/StationEvents/Events/GasLeak.cs @@ -19,13 +19,12 @@ namespace Content.Server.StationEvents.Events public override string Name => "GasLeak"; - public override string StartAnnouncement => - "Attention crew, there is a gas leak on the station. We advise you to avoid the area and wear suit internals in the meantime."; + public override string StartAnnouncement => Loc.GetString("station-event-gas-leak-start-announcement"); // Sourced from https://github.com/vgstation-coders/vgstation13/blob/2c5a491446ab824a8fbbf39bcf656b590e0228df/sound/misc/bloblarm.ogg public override string StartAudio => "/Audio/Announcements/bloblarm.ogg"; - protected override string EndAnnouncement => "The source of the gas leak has been fixed. Please be cautious around areas with gas remaining."; + protected override string EndAnnouncement => Loc.GetString("station-event-gas-leak-end-announcement"); private static readonly Gas[] LeakableGases = { Gas.Plasma, diff --git a/Content.Server/StationEvents/Events/MeteorSwarm.cs b/Content.Server/StationEvents/Events/MeteorSwarm.cs index 6ff7124c49..823cbe042e 100644 --- a/Content.Server/StationEvents/Events/MeteorSwarm.cs +++ b/Content.Server/StationEvents/Events/MeteorSwarm.cs @@ -24,8 +24,8 @@ namespace Content.Server.StationEvents.Events public override int? MaxOccurrences => 2; public override int MinimumPlayers => 20; - public override string StartAnnouncement => "Meteors are on a collision course with the station. Brace for impact."; - protected override string EndAnnouncement => "The meteor swarm has passed. Please return to your stations."; + public override string StartAnnouncement => Loc.GetString("station-event-meteor-swarm-start-announcement"); + protected override string EndAnnouncement => Loc.GetString("station-event-meteor-swarm-ebd-announcement"); public override string? StartAudio => "/Audio/Announcements/bloblarm.ogg"; diff --git a/Resources/Locale/en-US/station-events/events/gas-leak.ftl b/Resources/Locale/en-US/station-events/events/gas-leak.ftl new file mode 100644 index 0000000000..18429fa58d --- /dev/null +++ b/Resources/Locale/en-US/station-events/events/gas-leak.ftl @@ -0,0 +1,2 @@ +station-event-gas-leak-start-announcement = Attention crew, there is a gas leak on the station. We advise you to avoid the area and wear suit internals in the meantime. +station-event-gas-leak-end-announcement = The source of the gas leak has been fixed. Please be cautious around areas with gas remaining. diff --git a/Resources/Locale/en-US/station-events/events/meteor-swarm.ftl b/Resources/Locale/en-US/station-events/events/meteor-swarm.ftl new file mode 100644 index 0000000000..8a6e11dffa --- /dev/null +++ b/Resources/Locale/en-US/station-events/events/meteor-swarm.ftl @@ -0,0 +1,2 @@ +station-event-meteor-swarm-start-announcement = Meteors are on a collision course with the station. Brace for impact. +station-event-meteor-swarm-ebd-announcement = The meteor swarm has passed. Please return to your stations.