From 9ab7ceb25757a251945b9dfd5740420bbaaeb8bb Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:11:56 +0100 Subject: [PATCH] Moth accent locale --- .../Speech/EntitySystems/MothAccentSystem.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Content.Server/Speech/EntitySystems/MothAccentSystem.cs b/Content.Server/Speech/EntitySystems/MothAccentSystem.cs index 5f712fe9aaa..16fcca7b9f6 100644 --- a/Content.Server/Speech/EntitySystems/MothAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/MothAccentSystem.cs @@ -19,6 +19,33 @@ private void OnAccent(EntityUid uid, MothAccentComponent component, AccentGetEve message = Regex.Replace(message, "z+", "zzz"); // buZZZ message = Regex.Replace(message, "Z+", "ZZZ"); + + // Corvax-Localization-Start + // ж => жжж + message = Regex.Replace( + message, + "ж+", + _random.Pick(new List() { "жж", "жжж" }) + ); + // Ж => ЖЖЖ + message = Regex.Replace( + message, + "Ж+", + _random.Pick(new List() { "ЖЖ", "ЖЖЖ" }) + ); + // з => ссс + message = Regex.Replace( + message, + "з+", + _random.Pick(new List() { "зз", "ззз" }) + ); + // З => CCC + message = Regex.Replace( + message, + "З+", + _random.Pick(new List() { "ЗЗ", "ЗЗЗ" }) + ); + /// Corvax-Localization-End args.Message = message; }