mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 17:11:22 +00:00
Simplifies hearing into handle_hearing() (#9443)
Currently, hearing related stuff is handled in at least three places throughout Life(), and whether a mob is deaf or not is complicated - Handled by an sdisabilities flag, has_hearing_aid() and ear_deaf. This change consolidates everything into handle_hearing(); whether a mob is deaf or not can be determined just by the value of ear_deaf using isdeaf() Fixes #9310 Fixes #8490
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
for(var/obj/item/device/radio/radio in listening_objects)
|
||||
if(radio.on)
|
||||
for(var/mob/living/victim in range(radio.canhear_range, radio.loc))
|
||||
if(isnull(victims[victim]) && victim.stat == CONSCIOUS && !victim.ear_deaf)
|
||||
if(isnull(victims[victim]) && victim.stat == CONSCIOUS && !isdeaf(victim))
|
||||
victims[victim] = radio
|
||||
for(var/thing in victims)
|
||||
var/mob/living/victim = thing
|
||||
|
||||
Reference in New Issue
Block a user