Creates a Preference toggle for Drop Sounds (#6397)

This commit is contained in:
Conspiir
2019-05-19 15:49:14 +02:00
committed by Werner
parent 744a74390b
commit f659fa096c
10 changed files with 71 additions and 17 deletions
+1 -1
View File
@@ -245,7 +245,7 @@
/obj/item/throw_impact(atom/hit_atom)
..()
if(drop_sound)
playsound(src, drop_sound, 50, 0)
playsound(src, drop_sound, 50, 0, required_asfx_toggles = ASFX_DROPSOUND)
//Apparently called whenever an item is dropped on the floor, thrown, or placed into a container.
//It is called after loc is set, so if placed in a container its loc will be that container.