Adds a pref for hearing instrument sounds (#9416)

Suggested here https://forums.aurorastation.org/topic/14618-please-for-the-love-of-god-add-a-preference-toggle-for-musical-instrument-sounds/?_fromLogin=1

Did I miss any instruments?
This commit is contained in:
mikomyazaki
2020-07-26 12:28:26 +03:00
committed by GitHub
parent aa4ffc8959
commit 9a6168e10a
7 changed files with 39 additions and 9 deletions
+1 -1
View File
@@ -209,7 +209,7 @@
//hearers(15, src) << sound(soundfile)
var/turf/source = get_turf(src)
for(var/mob/M in hearers(15, source))
M.playsound_simple(source, file(soundfile), 100, falloff = 5)
M.playsound_simple(source, file(soundfile), 100, falloff = 5, required_asfx_toggles = ASFX_INSTRUMENT)
/obj/structure/device/piano/proc/playsong()
do