Skip to content

Commit

Permalink
Begone combat paper stun! (#28195)
Browse files Browse the repository at this point in the history
* Begone combat paper stun!

* Removes do_after

* Update code/modules/paperwork/paper.dm

Signed-off-by: Burzah <[email protected]>

---------

Signed-off-by: Burzah <[email protected]>
Co-authored-by: Burzah <[email protected]>
  • Loading branch information
Spaghetti-bit and Burzah authored Jan 31, 2025
1 parent f5e5183 commit 6df1982
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/modules/paperwork/paper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
if(user.zone_selected == "eyes")
user.visible_message("<span class='notice'>[user] holds up a paper and shows it to [H].</span>",
"<span class='notice'>You show the paper to [H].</span>")
H.examinate(src)
to_chat(H, "<a href='byond://?src=[UID()];show_content=1'>Read \the [src]</a>")

else if(user.zone_selected == "mouth")
if(H == user)
Expand Down Expand Up @@ -392,6 +392,12 @@
var/id = href_list["write"]
var/input_element = input("Enter what you want to write:", "Write") as message
topic_href_write(id, input_element)
if(href_list["show_content"])
var/dist = get_dist(src, usr)
if(dist < 2)
show_content(usr)
else
to_chat(usr, "<span class='notice'>I'm too far away from \the [src] to read it.</span>")

/obj/item/paper/attackby__legacy__attackchain(obj/item/P, mob/living/user, params)
..()
Expand Down

0 comments on commit 6df1982

Please sign in to comment.