From bdf6920f4cc25d8090f57a786f9dc450b66c134f Mon Sep 17 00:00:00 2001 From: Kara Date: Wed, 22 Jun 2022 16:39:29 -0700 Subject: [PATCH] Slight mobster accent fixes (#9017) --- .../Speech/EntitySystems/MobsterAccentSystem.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Content.Server/Speech/EntitySystems/MobsterAccentSystem.cs b/Content.Server/Speech/EntitySystems/MobsterAccentSystem.cs index aeaf898fb1..5d68f3f37a 100644 --- a/Content.Server/Speech/EntitySystems/MobsterAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/MobsterAccentSystem.cs @@ -14,13 +14,19 @@ public sealed class MobsterAccentSystem : EntitySystem { "let me", "lemme" }, { "should", "oughta" }, { "the", "da" }, + { "them", "dem" }, + { "attack", "whack" }, { "kill", "whack" }, { "murder", "whack" }, { "dead", "sleepin' with da fishies"}, { "hey", "ey'o" }, + { "hi", "ey'o"}, + { "hello", "ey'o"}, { "rules", "roolz" }, { "you", "yous" }, { "have to", "gotta" }, + { "going to", "boutta" }, + { "about to", "boutta" }, { "here", "'ere" } }; @@ -45,7 +51,8 @@ public sealed class MobsterAccentSystem : EntitySystem } // thinking -> thinkin' - msg = Regex.Replace(msg, @"ing(?!\w)", "in'", RegexOptions.IgnoreCase); + // king -> king + msg = Regex.Replace(msg, @"(?<=\w\w)ing(?!\w)", "in'", RegexOptions.IgnoreCase); // or -> uh and ar -> ah in the middle of words (fuhget, tahget) msg = Regex.Replace(msg, @"(?<=\w)or(?=\w)", "uh", RegexOptions.IgnoreCase);