[MIRROR] makes get_hearers_in_view() faster AGAIN, fixes issue with previous optimization (#6979)

* makes get_hearers_in_view() faster AGAIN, fixes issue with previous optimization

* Mirror!

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
Co-authored-by: Funce <funce.973@gmail.com>
This commit is contained in:
SkyratBot
2021-07-19 20:15:59 +12:00
committed by GitHub
co-authored by Kylerace Funce
parent 536cc0f793
commit f593849ce5
27 changed files with 128 additions and 109 deletions
+4 -1
View File
@@ -8,7 +8,6 @@
desc = "A small electronic device able to record a voice sample, and send a signal when that sample is repeated."
icon_state = "voice"
custom_materials = list(/datum/material/iron=500, /datum/material/glass=50)
flags_1 = HEAR_1
attachable = TRUE
verb_say = "beeps"
verb_ask = "beeps"
@@ -25,6 +24,10 @@
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/voice/Initialize()
. = ..()
become_hearing_sensitive(ROUNDSTART_TRAIT)
/obj/item/assembly/voice/examine(mob/user)
. = ..()
. += span_notice("Use a multitool to swap between \"inclusive\", \"exclusive\", \"recognizer\", and \"voice sensor\" mode.")