mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Big Bastard Incidental Sound Port
This commit is contained in:
@@ -180,6 +180,7 @@ Book Cart End
|
||||
var/title // The real name of the book.
|
||||
var/carved = 0 // Has the book been hollowed out for use as a secret storage item?
|
||||
var/obj/item/store //What's in the book?
|
||||
drop_sound = 'sound/bureaucracy/bookclose.ogg'
|
||||
|
||||
/obj/item/weapon/book/attack_self(var/mob/user as mob)
|
||||
if(carved)
|
||||
@@ -194,7 +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)
|
||||
onclose(user, "book")
|
||||
playsound(loc, 'sound/bureaucracy/bookclose.ogg', 50, 1)
|
||||
else
|
||||
to_chat(user, "This book is completely blank!")
|
||||
|
||||
@@ -277,6 +280,8 @@ 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)
|
||||
new /obj/item/weapon/shreddedp(get_turf(src))
|
||||
carved = 1
|
||||
return
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user