Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
бугурт
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxIV committed Feb 14, 2022
1 parent 067ce90 commit 1ba1f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/mob_say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

//queue this message because verbs are scheduled to process after SendMaps in the tick and speech is pretty expensive when it happens.
//by queuing this for next tick the mc can compensate for its cost instead of having speech delay the start of the next tick
message = "*[fix_brainrot(message)]"
message = fix_brainrot(message, TRUE)

if(message && proverka_na_detey(message, src))
SSspeech_controller.queue_say_for_mob(src, message, SPEECH_CONTROLLER_QUEUE_SAY_VERB)
Expand All @@ -27,7 +27,7 @@
to_chat(usr, span_danger("Не могу шептать."))
return

message = "*[fix_brainrot(message)]"
message = fix_brainrot(message)
if(message && proverka_na_detey(message, src))
SSspeech_controller.queue_say_for_mob(src, message, SPEECH_CONTROLLER_QUEUE_WHISPER_VERB)

Expand Down
4 changes: 2 additions & 2 deletions white/hule/wordlist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GLOBAL_LIST_INIT(exc_full, world.file2list("cfg/autoeban/exc_full.fackuobema"))
var/bad_word_counter = 0


/proc/fix_brainrot(var/word)
/proc/fix_brainrot(var/word, make_into_emote = FALSE)
var/static/list/simple = list( ")" = "smile", "(" = "frown", \
"))" = "laugh", "((" = "cry", \
"лол" = "laugh", "lol" = "laugh", \
Expand All @@ -49,4 +49,4 @@ GLOBAL_LIST_INIT(exc_full, world.file2list("cfg/autoeban/exc_full.fackuobema"))

. = word
if(simple[word])
return simple[word]
return "[make_into_emote ? "*" : ""][simple[word]]"

0 comments on commit 1ba1f11

Please sign in to comment.