Skip to content

Commit

Permalink
Update RussianAccentSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kipdotnet committed Jan 6, 2025
1 parent 7d7ec74 commit 98c3196
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions Content.Server/Speech/EntitySystems/RussianAccentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 98c3196

Please sign in to comment.