Aspects (#266)
* - add: Revive fast and furious aspect. * - add: Update accents. * - add: More buzzing for moth. * - tweak: Change desc. * - fix: Fixes. * - add: RandomItemAspect. * - fix: Fix arachnid socks. * - tweak: Update desc part 2.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Content.Server.Speech.Components;
|
||||
using Robust.Shared.Random;
|
||||
|
||||
@@ -8,7 +9,7 @@ namespace Content.Server.Speech.EntitySystems
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
private static readonly IReadOnlyList<string> Barks = new List<string>{
|
||||
" Woof!", " WOOF", " wof-wof"
|
||||
" Гав!", " ГАВ", " гав-гав" // WD EDIT
|
||||
}.AsReadOnly();
|
||||
|
||||
private static readonly IReadOnlyDictionary<string, string> SpecialWords = new Dictionary<string, string>()
|
||||
@@ -31,6 +32,12 @@ namespace Content.Server.Speech.EntitySystems
|
||||
message = message.Replace(word, repl);
|
||||
}
|
||||
|
||||
// WD EDIT START
|
||||
message = Regex.Replace(message, "р{1,3}", "ррр");
|
||||
|
||||
message = Regex.Replace(message, "Р{1,3}", "РРР");
|
||||
// WD EDIT END
|
||||
|
||||
return message.Replace("!", _random.Pick(Barks))
|
||||
.Replace("l", "r").Replace("L", "R");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user