mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Optimizes some functions (#24049)
* Optimizes some functions * Update code/__HELPERS/unsorted.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * Cached per AI now * no more 80k character jumpscares * parent functions exist * I need a new keyboard * Update code/modules/surgery/organs/vocal_cords.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/silicon/ai/ai_say.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/__HELPERS/game.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Update code/__HELPERS/game.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --------- Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
Burzah
Contrabang
S34N
parent
176e12ff04
commit
cc0eee4b4d
@@ -83,7 +83,7 @@
|
||||
for(var/obj/O in view(14, get_turf(src)))
|
||||
O.hear_talk(user, message_to_multilingual("<span class='[span]'>[message]</span>"))
|
||||
|
||||
for(var/mob/M in get_mobs_in_view(7, src))
|
||||
for(var/mob/M as anything in get_mobs_in_view(7, src))
|
||||
if((M.client?.prefs.toggles2 & PREFTOGGLE_2_RUNECHAT) && M.can_hear())
|
||||
M.create_chat_message(user, message, FALSE, "big")
|
||||
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
/obj/item/radio/beacon/hear_talk()
|
||||
return
|
||||
|
||||
|
||||
/obj/item/radio/beacon/send_hear()
|
||||
return null
|
||||
|
||||
/// Probably a better way of doing this, I'm lazy.
|
||||
/obj/item/radio/beacon/bacon
|
||||
|
||||
|
||||
@@ -542,11 +542,6 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems)
|
||||
return -1
|
||||
return canhear_range
|
||||
|
||||
/obj/item/radio/proc/send_hear(freq, level)
|
||||
var/range = receive_range(freq, level)
|
||||
if(range > -1)
|
||||
return get_mobs_in_view(canhear_range, src)
|
||||
|
||||
/obj/item/radio/proc/is_listening()
|
||||
var/is_listening = TRUE
|
||||
if(!on)
|
||||
|
||||
Reference in New Issue
Block a user