mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 05:22:40 +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:
@@ -328,6 +328,6 @@
|
||||
var/mob/M = A
|
||||
var/turf/mobloc = get_turf(M)
|
||||
if(mobloc && mobloc.z == T.z)
|
||||
if(M.ear_deaf <= 0 || !M.ear_deaf)
|
||||
if(!isdeaf(M))
|
||||
M.playsound_simple(T, 'sound/effects/meteorimpact.ogg', range, use_random_freq = TRUE, use_pressure = FALSE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user