From 7d7ec74604b706577473bd12b2901bb2fbd80287 Mon Sep 17 00:00:00 2001 From: Kip Date: Sat, 4 Jan 2025 19:00:35 +1100 Subject: [PATCH 1/3] begone --- .../EntitySystems/RussianAccentSystem.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs index 49aab38e2b75..922c2e309e24 100644 --- a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs @@ -21,20 +21,20 @@ public string Accentuate(string message) accentedMessage[i] = c switch { - 'A' => 'Д', - 'b' => 'в', - 'N' => 'И', - 'n' => 'и', - 'K' => 'К', - 'k' => 'к', - 'm' => 'м', - 'h' => 'н', - 't' => 'т', - 'R' => 'Я', - 'r' => 'я', - 'Y' => 'У', - 'W' => 'Ш', - 'w' => 'ш', + // 'A' => 'Д', //im not sure how to cleanly excise this from the code so im ripping it out at the roots like a caveman + // 'b' => 'в', + // 'N' => 'И', + // 'n' => 'и', + // 'K' => 'К', + // 'k' => 'к', + // 'm' => 'м', + // 'h' => 'н', + // 't' => 'т', + // 'R' => 'Я', + // 'r' => 'я', + // 'Y' => 'У', + // 'W' => 'Ш', + // 'w' => 'ш', _ => accentedMessage[i] }; } @@ -44,6 +44,6 @@ public string Accentuate(string message) private void OnAccent(EntityUid uid, RussianAccentComponent component, AccentGetEvent args) { - args.Message = Accentuate(args.Message); + args.Message = Accentuate(args.Message); } } From 98c3196bb0a775d9186cfeb1e647922cd9502243 Mon Sep 17 00:00:00 2001 From: Kip Date: Tue, 7 Jan 2025 10:29:55 +1100 Subject: [PATCH 2/3] Update RussianAccentSystem.cs --- .../EntitySystems/RussianAccentSystem.cs | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs index 922c2e309e24..83d6033ff3e9 100644 --- a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs @@ -13,32 +13,7 @@ public override void Initialize() public string Accentuate(string message) { - var accentedMessage = new StringBuilder(_replacement.ApplyReplacements(message, "russian")); - - for (var i = 0; i < accentedMessage.Length; i++) - { - var c = accentedMessage[i]; - - accentedMessage[i] = c switch - { - // 'A' => 'Д', //im not sure how to cleanly excise this from the code so im ripping it out at the roots like a caveman - // 'b' => 'в', - // 'N' => 'И', - // 'n' => 'и', - // 'K' => 'К', - // 'k' => 'к', - // 'm' => 'м', - // 'h' => 'н', - // 't' => 'т', - // 'R' => 'Я', - // 'r' => 'я', - // 'Y' => 'У', - // 'W' => 'Ш', - // 'w' => 'ш', - _ => accentedMessage[i] - }; - } - + var accentedMessage = _replacement.ApplyReplacements(message, "russian"); //imp change. die return accentedMessage.ToString(); } From 8df409fe5e622115f5f8e992ec80d6f67d4111bd Mon Sep 17 00:00:00 2001 From: Kip Date: Tue, 7 Jan 2025 10:30:11 +1100 Subject: [PATCH 3/3] Update RussianAccentSystem.cs --- Content.Server/Speech/EntitySystems/RussianAccentSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs index 83d6033ff3e9..5992d3a19197 100644 --- a/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/RussianAccentSystem.cs @@ -19,6 +19,6 @@ public string Accentuate(string message) private void OnAccent(EntityUid uid, RussianAccentComponent component, AccentGetEvent args) { - args.Message = Accentuate(args.Message); + args.Message = Accentuate(args.Message); } }