mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Refactors use_sound and changes the way tools play sounds (#35521)
* Adds list support to usesound, ports drills to usesound * Adds more tool sounds, changes usesound usage to play_tool_sound * fix
This commit is contained in:
committed by
vuonojenmustaturska
parent
6389825e39
commit
c6e607dc17
@@ -24,7 +24,7 @@
|
||||
/obj/structure/table_frame/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/wrench))
|
||||
to_chat(user, "<span class='notice'>You start disassembling [src]...</span>")
|
||||
playsound(src.loc, I.usesound, 50, 1)
|
||||
I.play_tool_sound(src)
|
||||
if(I.use_tool(src, user, 30))
|
||||
playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
|
||||
deconstruct(TRUE)
|
||||
|
||||
Reference in New Issue
Block a user