mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-14 20:22:42 +00:00
Alter playsound paradigm
This commit is contained in:
@@ -39,11 +39,11 @@
|
||||
else
|
||||
name = ("bookcase ([newname])")
|
||||
else if(O.is_wrench())
|
||||
playsound(loc, O.usesound, 100, 1)
|
||||
playsound(src, O.usesound, 100, 1)
|
||||
to_chat(user, (anchored ? "<span class='notice'>You unfasten \the [src] from the floor.</span>" : "<span class='notice'>You secure \the [src] to the floor.</span>"))
|
||||
anchored = !anchored
|
||||
else if(O.is_screwdriver())
|
||||
playsound(loc, O.usesound, 75, 1)
|
||||
playsound(src, O.usesound, 75, 1)
|
||||
to_chat(user, "<span class='notice'>You begin dismantling \the [src].</span>")
|
||||
if(do_after(user,25 * O.toolspeed))
|
||||
to_chat(user, "<span class='notice'>You dismantle \the [src].</span>")
|
||||
@@ -195,9 +195,9 @@ Book Cart End
|
||||
if(src.dat)
|
||||
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
|
||||
user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.")
|
||||
playsound(loc, 'sound/bureaucracy/bookopen.ogg', 50, 1)
|
||||
playsound(src, 'sound/bureaucracy/bookopen.ogg', 50, 1)
|
||||
onclose(user, "book")
|
||||
playsound(loc, 'sound/bureaucracy/bookclose.ogg', 50, 1)
|
||||
playsound(src, 'sound/bureaucracy/bookclose.ogg', 50, 1)
|
||||
else
|
||||
to_chat(user, "This book is completely blank!")
|
||||
|
||||
@@ -280,7 +280,7 @@ Book Cart End
|
||||
to_chat(user, "<span class='notice'>You begin to carve out [title].</span>")
|
||||
if(do_after(user, 30))
|
||||
to_chat(user, "<span class='notice'>You carve out the pages from [title]! You didn't want to read it anyway.</span>")
|
||||
playsound(loc, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
|
||||
playsound(src, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
|
||||
new /obj/item/weapon/shreddedp(get_turf(src))
|
||||
carved = 1
|
||||
return
|
||||
@@ -353,11 +353,11 @@ Book Cart End
|
||||
if(href_list["next_page"])
|
||||
if(page != pages.len)
|
||||
page++
|
||||
playsound(src.loc, "pageturn", 50, 1)
|
||||
playsound(src, "pageturn", 50, 1)
|
||||
if(href_list["prev_page"])
|
||||
if(page > 1)
|
||||
page--
|
||||
playsound(src.loc, "pageturn", 50, 1)
|
||||
playsound(src, "pageturn", 50, 1)
|
||||
src.attack_self(usr)
|
||||
updateUsrDialog()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user