Targeting eyes with book/paper shows book/paper

This is a way to show other players papers without giving them the
paper/book.
This commit is contained in:
Jarcolr
2014-05-03 19:56:55 +03:00
parent 751b1269f5
commit 76b65f59a9
2 changed files with 12 additions and 0 deletions

View File

@@ -237,6 +237,12 @@
else
..()
/obj/item/weapon/book/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
if(user.zone_sel.selecting == "eyes")
user.visible_message("<span class='notice'>You open up the book and show it to [M]. </span>", \
"<span class='notice'> [user] opens up a book and shows it to [M]. </span>")
M << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
/*
* Barcode Scanner

View File

@@ -108,6 +108,12 @@
onclose(usr, "[name]")
return
/obj/item/weapon/paper/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
if(user.zone_sel.selecting == "eyes")
user.visible_message("<span class='notice'>You show the paper to [M]. </span>", \
"<span class='notice'> [user] holds up a paper and shows it to [M]. </span>")
M << examine()
/obj/item/weapon/paper/proc/addtofield(var/id, var/text, var/links = 0)
var/locid = 0
var/laststart = 1