[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
🆑
fix: Kisses and emitters no longer make the SM crystal scream so much.
/🆑

* Don't play SM dusting noise for emitter beams

---------

Co-authored-by: FlufflesTheDog <piecopresident@gmail.com>
This commit is contained in:
SkyratBot
2023-10-21 15:16:53 -04:00
committed by GitHub
co-authored by FlufflesTheDog
parent c3042c63e0
commit 682e4cbdfb
@@ -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