to_chat()'

This commit is contained in:
davipatury
2017-02-19 22:28:05 -03:00
parent 295f35f29c
commit 6186350ba7
12 changed files with 53 additions and 53 deletions
@@ -11,11 +11,11 @@
/obj/item/weapon/computer_hardware/printer/diagnostics(mob/living/user)
..()
user << "Paper level: [stored_paper]/[max_paper]"
to_chat(user, "Paper level: [stored_paper]/[max_paper]")
/obj/item/weapon/computer_hardware/printer/examine(mob/user)
..()
user << "<span class='notice'>Paper level: [stored_paper]/[max_paper]</span>"
to_chat(user, "<span class='notice'>Paper level: [stored_paper]/[max_paper]</span>")
/obj/item/weapon/computer_hardware/printer/proc/print_text(var/text_to_print, var/paper_title = "")
@@ -41,13 +41,13 @@
/obj/item/weapon/computer_hardware/printer/try_insert(obj/item/I, mob/living/user = null)
if(istype(I, /obj/item/weapon/paper))
if(stored_paper >= max_paper)
user << "<span class='warning'>You try to add \the [I] into [src], but its paper bin is full!</span>"
to_chat(user, "<span class='warning'>You try to add \the [I] into [src], but its paper bin is full!</span>")
return FALSE
if(user && !user.unEquip(I))
return FALSE
user << "<span class='notice'>You insert \the [I] into [src]'s paper recycler.</span>"
to_chat(user, "<span class='notice'>You insert \the [I] into [src]'s paper recycler.</span>")
qdel(I)
stored_paper++
return TRUE