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