mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
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:
@@ -237,6 +237,12 @@
|
|||||||
else
|
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
|
* Barcode Scanner
|
||||||
|
|||||||
@@ -108,6 +108,12 @@
|
|||||||
onclose(usr, "[name]")
|
onclose(usr, "[name]")
|
||||||
return
|
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)
|
/obj/item/weapon/paper/proc/addtofield(var/id, var/text, var/links = 0)
|
||||||
var/locid = 0
|
var/locid = 0
|
||||||
var/laststart = 1
|
var/laststart = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user