From e8a948c767ec4d3521804d45635f0bb948767d72 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 21 Oct 2023 21:16:53 +0200 Subject: [PATCH] [MIRROR] Don't play SM dusting noise for emitter beams [MDB IGNORE] (#24496) * Don't play SM dusting noise for emitter beams (#79140) ## About The Pull Request Shifts the dusting sound to not happen for EVERY projectile, to instead only projectiles which would deal damage to the supermatter. Introduced by #79024. ## Why It's Good For The Game I assume this wasn't intentional in which case bugs bad, I squash bug ## Changelog :cl: fix: Kisses and emitters no longer make the SM crystal scream so much. /:cl: * Don't play SM dusting noise for emitter beams --------- Co-authored-by: FlufflesTheDog --- code/modules/power/supermatter/supermatter_hit_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/supermatter/supermatter_hit_procs.dm b/code/modules/power/supermatter/supermatter_hit_procs.dm index 9d5b0d1067b..6f01b5ff7e3 100644 --- a/code/modules/power/supermatter/supermatter_hit_procs.dm +++ b/code/modules/power/supermatter/supermatter_hit_procs.dm @@ -33,8 +33,8 @@ var/damage_to_be = damage + external_damage_immediate * clamp((emergency_point - damage) / emergency_point, 0, 1) if(damage_to_be > danger_point) visible_message(span_notice("[src] compresses under stress, resisting further impacts!")) + playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE) - playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE) qdel(projectile) return COMPONENT_BULLET_BLOCKED