Skip to content

Commit

Permalink
Update BarkAccentSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShuEd authored Dec 17, 2023
1 parent e6dfd39 commit aa20755
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Content.Server/Speech/EntitySystems/BarkAccentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ public sealed class BarkAccentSystem : EntitySystem
[Dependency] private readonly IRobustRandom _random = default!;

private static readonly IReadOnlyList<string> Barks = new List<string>{
" Гав!", " ГАВ", " вуф-вуф" //Corvax localization
//Corvax-localization-start
" Гав!", " ГАВ", " вуф-вуф"
//Corvax-localization-end
}.AsReadOnly();

private static readonly IReadOnlyDictionary<string, string> SpecialWords = new Dictionary<string, string>()
Expand All @@ -17,11 +19,12 @@ public sealed class BarkAccentSystem : EntitySystem
{ "Ah", "Arf" },
{ "oh", "oof" },
{ "Oh", "Oof" },
//Corvax localization
//Corvax-localization-start
{ "ага", "агаф" },
{ "Ага", "Агаф" },
{ "угу", "вуф" },
{ "Угу", "Вуф" },
//Corvax-localization-end
};

public override void Initialize()
Expand All @@ -38,8 +41,9 @@ public string Accentuate(string message)

return message.Replace("!", _random.Pick(Barks))
.Replace("l", "r").Replace("L", "R")
//Corvax localisation
//Corvax-localisation-start
.Replace("л", "р").Replace("Л", "Р");
//Corvax-localization-end
}

private void OnAccent(EntityUid uid, BarkAccentComponent component, AccentGetEvent args)
Expand Down

0 comments on commit aa20755

Please sign in to comment.