Skip to content

Commit

Permalink
переименовал IGNORE_DISTANTS
Browse files Browse the repository at this point in the history
  • Loading branch information
FatFatFat1 committed Sep 17, 2024
1 parent f062671 commit 5ce2336
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/modules/mob/telepathy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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, "<span class='notice'>You stop telepathically eavesdropping on [M].</span>")

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, "<span class='notice'>You start telepathically eavesdropping on [M].</span>")

/mob/proc/telepathy_say()
Expand Down

0 comments on commit 5ce2336

Please sign in to comment.