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
@@ -38,7 +38,7 @@
installed_gun = gun
size += gun.w_class
to_chat(user, "<span class='notice'>You slide \the [gun] into the firing mechanism.</span>")
playsound(src.loc, "crowbar", 50, 1)
playsound(src.loc, /decl/sound_category/crowbar_sound, 50, 1)
else
..()
@@ -47,7 +47,7 @@
installed_gun.forceMove(get_turf(src))
to_chat(user, "<span class='notice'>You slide \the [installed_gun] out of the firing mechanism.</span>")
size = initial(size)
playsound(loc, "crowbar", 50, 1)
playsound(loc, /decl/sound_category/crowbar_sound, 50, 1)
installed_gun = null
else
to_chat(user, "<span class='notice'>There's no weapon to remove from the mechanism.</span>")