Adds Earmuffs providing immunity to Changeling shriek (#14033)

* Adds Earmuff immunity to shriek

* Refactors hearing protection and adds deafness

* Update human.dm

* Removed implicit src
This commit is contained in:
Ryal
2020-09-20 15:32:27 -07:00
committed by GitHub
parent 01da8413de
commit 08c05a4814
6 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ GLOBAL_DATUM_INIT(multispin_words, /regex, regex("like a record baby"))
if(L.can_hear() && !L.null_rod_check() && L != owner && L.stat != DEAD)
if(ishuman(L))
var/mob/living/carbon/human/H = L
if(istype(H.l_ear, /obj/item/clothing/ears/earmuffs) || istype(H.r_ear, /obj/item/clothing/ears/earmuffs))
if(H.check_ear_prot() >= HEARING_PROTECTION_TOTAL)
continue
listeners += L