Added a preference toggle for hearing musical instruments

This commit is contained in:
MrPerson
2015-03-22 01:54:30 -07:00
parent fa7a89b25b
commit 2fa6457130
4 changed files with 19 additions and 2 deletions
+2
View File
@@ -59,6 +59,8 @@
// and play
var/turf/source = get_turf(instrumentObj)
for(var/mob/M in get_hearers_in_view(15, source))
if(!M.client || !(M.client.prefs.toggles & SOUND_INSTRUMENTS))
continue
M.playsound_local(source, soundfile, 100, falloff = 5)
/datum/song/proc/updateDialog(mob/user as mob)