Refactors sound groups to use decls instead of a massive switch with dozens of global lists. (#9702)

This commit is contained in:
Matt Atlas
2020-08-28 20:47:00 +02:00
committed by GitHub
parent db1b0cece0
commit 0dd08df5b2
125 changed files with 629 additions and 557 deletions
+2 -2
View File
@@ -27,11 +27,11 @@
if (location)
var/obj/effect/visual/sparks/S = new(location, src, 0) //Trigger one on the tile it's on
S.start()
playsound(location, "sparks", 100, 1)
playsound(location, /decl/sound_category/spark_sound, 100, 1)
QUEUE_VISUAL(S) // Queue it.
while (total_sparks <= src.amount)
playsound(location, "sparks", 100, 1)
playsound(location, /decl/sound_category/spark_sound, 100, 1)
var/direction = 0
if (LAZYLEN(src.spread))