mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
Refactors sound groups to use decls instead of a massive switch with dozens of global lists. (#9702)
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user