Skip to content

Commit

Permalink
Moth accent locale
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 authored Nov 29, 2023
1 parent 83218b7 commit 9ab7ceb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Content.Server/Speech/EntitySystems/MothAccentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>() { "жж", "жжж" })
);
// Ж => ЖЖЖ
message = Regex.Replace(
message,
"Ж+",
_random.Pick(new List<string>() { "ЖЖ", "ЖЖЖ" })
);
// з => ссс
message = Regex.Replace(
message,
"з+",
_random.Pick(new List<string>() { "зз", "ззз" })
);
// З => CCC
message = Regex.Replace(
message,
"З+",
_random.Pick(new List<string>() { "ЗЗ", "ЗЗЗ" })
);
/// Corvax-Localization-End

args.Message = message;
}
Expand Down

0 comments on commit 9ab7ceb

Please sign in to comment.