Rewrite examine() to pass a list around

This commit is contained in:
Aronai Sieyes
2020-04-29 16:42:50 -04:00
committed by VirgoBot
parent 8c5c0a7cfb
commit 6ebd249748
214 changed files with 2021 additions and 1120 deletions
+4 -4
View File
@@ -96,11 +96,11 @@
to_chat(user, "<font color='red'>You must hold \the [P] steady to burn \the [src].</font>")
/obj/item/weapon/paper_bundle/examine(mob/user)
if(..(user, 1))
src.show_content(user)
. = ..()
if(Adjacent(user))
show_content(user)
else
to_chat(user, "<span class='notice'>It is too far away.</span>")
return
. += "<span class='notice'>It is too far away.</span>"
/obj/item/weapon/paper_bundle/proc/show_content(mob/user as mob)
var/dat