Slight mobster accent fixes (#9017)

This commit is contained in:
Kara
2022-06-22 16:39:29 -07:00
committed by GitHub
parent d4fb1c379e
commit bdf6920f4c

View File

@@ -14,13 +14,19 @@ public sealed class MobsterAccentSystem : EntitySystem
{ "let me", "lemme" }, { "let me", "lemme" },
{ "should", "oughta" }, { "should", "oughta" },
{ "the", "da" }, { "the", "da" },
{ "them", "dem" },
{ "attack", "whack" },
{ "kill", "whack" }, { "kill", "whack" },
{ "murder", "whack" }, { "murder", "whack" },
{ "dead", "sleepin' with da fishies"}, { "dead", "sleepin' with da fishies"},
{ "hey", "ey'o" }, { "hey", "ey'o" },
{ "hi", "ey'o"},
{ "hello", "ey'o"},
{ "rules", "roolz" }, { "rules", "roolz" },
{ "you", "yous" }, { "you", "yous" },
{ "have to", "gotta" }, { "have to", "gotta" },
{ "going to", "boutta" },
{ "about to", "boutta" },
{ "here", "'ere" } { "here", "'ere" }
}; };
@@ -45,7 +51,8 @@ public sealed class MobsterAccentSystem : EntitySystem
} }
// thinking -> thinkin' // 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) // or -> uh and ar -> ah in the middle of words (fuhget, tahget)
msg = Regex.Replace(msg, @"(?<=\w)or(?=\w)", "uh", RegexOptions.IgnoreCase); msg = Regex.Replace(msg, @"(?<=\w)or(?=\w)", "uh", RegexOptions.IgnoreCase);