Don't display hear_sleep to deaf people (#13366)

This commit is contained in:
Sierra Brown
2022-03-13 21:00:21 +01:00
committed by GitHub
parent 84cec1ea75
commit b32e9fc896
2 changed files with 43 additions and 0 deletions
+2
View File
@@ -294,6 +294,8 @@
src.show_message(message)
/mob/proc/hear_sleep(var/message)
if (isdeaf(src))
return
var/heard = ""
if(prob(15))
var/list/punctuation = list(",", "!", ".", ";", "?")