Merge pull request #4589 from MisterLayne/check_mention_fix

No longer emphasizes basic words.
This commit is contained in:
Anewbe
2018-01-23 12:03:59 -06:00
committed by GitHub
+2
View File
@@ -87,7 +87,9 @@
// Checks if the mob's own name is included inside message. Handles both first and last names.
/mob/proc/check_mentioned(var/message)
var/not_included = list("a", "the", "of", "in", "for", "through", "throughout", "therefore", "here", "there", "then", "now", "I", "you", "they", "he", "she", "by")
var/list/valid_names = splittext(real_name, " ") // Should output list("John", "Doe") as an example.
valid_names -= not_included
var/list/nicknames = splittext(nickname, " ")
valid_names += nicknames
valid_names += special_mentions()