Merge pull request #4898 from Jarcolr/LookAtThis

Attacking with a book/paper while targetting eyes shows the book/paper 's contents
This commit is contained in:
Ccomp5950
2014-05-04 10:08:47 -05:00
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