* - 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:
Aviu00
2024-04-02 23:19:33 +09:00
committed by GitHub
parent fa00c5f528
commit 9f00a90f24
14 changed files with 213 additions and 33 deletions

View File

@@ -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");
}