From f47f39e8a90fa0536e2610a637e85b5ac14b1e1a Mon Sep 17 00:00:00 2001 From: Bm0n <92271472+Bm0n@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:13:45 -0500 Subject: [PATCH] Stethoscope Cracking Sounds Fix (#27823) * stethosco * Update code/game/objects/structures/safe.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> * Update code/game/objects/structures/safe.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> --------- Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> Co-authored-by: Bmon Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --- code/game/objects/structures/safe.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index 0ee1015e25d..38a9aa0796a 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -268,14 +268,11 @@ GLOBAL_LIST_EMPTY(safes) var/canhear = FALSE if(ishuman(usr)) var/mob/living/carbon/human/H = usr - var/list/accessories = H.w_uniform?.accessories if(H.can_hear()) // This is cursed but is_type_in_list somehow fails if(H.is_in_hands(/obj/item/clothing/neck/stethoscope)) canhear = TRUE - else - for(var/obj/item/clothing/neck/stethoscope/S in accessories) - canhear = TRUE - break + if(istype(H.neck, /obj/item/clothing/neck/stethoscope)) + canhear = TRUE . = TRUE switch(action)