From 5ce23362c2d8d3e8e57f9b37830bf7559d76a6a0 Mon Sep 17 00:00:00 2001 From: FatFatFat1 <48385210+FatFatFat1@users.noreply.github.com> Date: Tue, 17 Sep 2024 13:52:44 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20IGNORE=5FDISTANTS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/mob/telepathy.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/telepathy.dm b/code/modules/mob/telepathy.dm index 276d664cebf..723f0578080 100644 --- a/code/modules/mob/telepathy.dm +++ b/code/modules/mob/telepathy.dm @@ -63,17 +63,17 @@ telepathy_eavesdrop(source, message, verb, language) show_runechat_message(source, language, capitalize(runechat_message), null, SHOWMSG_AUDIO) -/mob/proc/add_remote_hearer(mob/hearer, IGNORE_DISTANTS) +/mob/proc/add_remote_hearer(mob/hearer, ignore_distants) LAZYADD(remote_hearers, hearer) LAZYADD(hearer.remote_hearing, src) - ignore_telepathy_distants = IGNORE_DISTANTS + ignore_telepathy_distants = ignore_distants -/mob/proc/remove_remote_hearer(mob/hearer, IGNORE_DISTANTS) +/mob/proc/remove_remote_hearer(mob/hearer, ignore_distants) LAZYREMOVE(remote_hearers, hearer) LAZYREMOVE(hearer.remote_hearing, src) - ignore_telepathy_distants = !IGNORE_DISTANTS + ignore_telepathy_distants = !ignore_distants -/mob/proc/toggle_telepathy_hear(mob/M ,IGNORE_DISTANTS) +/mob/proc/toggle_telepathy_hear(mob/M ,ignore_distants) set name = "Toggle Telepathic Eavesdropping" set desc = "Hear anything that mob hears." set category = "Telepathy" @@ -90,11 +90,11 @@ return if(src in M.remote_hearers) - M.remove_remote_hearer(src,IGNORE_DISTANTS) + M.remove_remote_hearer(src,ignore_distants) to_chat(src, "You stop telepathically eavesdropping on [M].") else if(length(remote_hearing) < CLEAR_TELEPATHY_TARGETS) - M.add_remote_hearer(src, IGNORE_DISTANTS) + M.add_remote_hearer(src, ignore_distants) to_chat(src, "You start telepathically eavesdropping on [M].") /mob/proc/telepathy_say()