Fixed book titles not showing up properly in some instances, Death alarm is now labeled as such, robot lighter works right.

This commit is contained in:
SkyMarshal
2012-01-20 16:40:55 -07:00
parent 722bbee324
commit 94c38b8206
4 changed files with 44 additions and 8 deletions

View File

@@ -204,7 +204,10 @@
attack_self(var/mob/user as mob)
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.")
if(title)
user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.")
else
user.visible_message("[user] opens a book titled \"[src.name]\" and begins reading intently.")
onclose(user, "book")
else
user << "This book is completely blank!"