frontend
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
|
||||
/obj/item/computer_hardware/printer/diagnostics(mob/living/user)
|
||||
..()
|
||||
to_chat(user, "<span class='notice'>Paper level: [stored_paper]/[max_paper].</span>")
|
||||
to_chat(user, span_notice("Paper level: [stored_paper]/[max_paper]."))
|
||||
|
||||
/obj/item/computer_hardware/printer/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>Paper level: [stored_paper]/[max_paper].</span>"
|
||||
. += span_notice("Paper level: [stored_paper]/[max_paper].")
|
||||
|
||||
|
||||
/obj/item/computer_hardware/printer/proc/print_text(text_to_print, paper_title = "")
|
||||
@@ -33,7 +33,7 @@
|
||||
P.info = text_to_print
|
||||
if(paper_title)
|
||||
P.name = paper_title
|
||||
P.update_icon()
|
||||
P.update_appearance()
|
||||
stored_paper--
|
||||
P = null
|
||||
return TRUE
|
||||
@@ -41,12 +41,12 @@
|
||||
/obj/item/computer_hardware/printer/try_insert(obj/item/I, mob/living/user = null)
|
||||
if(istype(I, /obj/item/paper))
|
||||
if(stored_paper >= max_paper)
|
||||
to_chat(user, "<span class='warning'>You try to add \the [I] into [src], but its paper bin is full!</span>")
|
||||
to_chat(user, span_warning("You try to add \the [I] into [src], but its paper bin is full!"))
|
||||
return FALSE
|
||||
|
||||
if(user && !user.temporarilyRemoveItemFromInventory(I))
|
||||
return FALSE
|
||||
to_chat(user, "<span class='notice'>You insert \the [I] into [src]'s paper recycler.</span>")
|
||||
to_chat(user, span_notice("You insert \the [I] into [src]'s paper recycler."))
|
||||
qdel(I)
|
||||
stored_paper++
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user