Makes crew manifest pop-up use a single proc, makes it prettier (#10275)

This commit is contained in:
Jiří Barouš
2020-10-23 15:24:38 +02:00
committed by GitHub
parent a79e048f10
commit 5f52e411a9
10 changed files with 56 additions and 53 deletions
@@ -149,11 +149,7 @@
else
computer.visible_message(SPAN_NOTICE("\The [computer] prints out paper."))
else
var/contents = {"<h4>Crew Manifest</h4>
<br>
[SSrecords.get_manifest(1)]
"}
if(!computer.nano_printer.print_text(contents,text("crew manifest ([])", worldtime2text())))
if(!computer.nano_printer.print_text(SSrecords.get_manifest_text(), text("crew manifest ([])", worldtime2text())))
to_chat(usr, SPAN_WARNING(">Hardware error: Printer was unable to print the file. It may be out of paper."))
return
else
@@ -239,4 +235,4 @@
id_card.access -= get_access_ids(ACCESS_TYPE_STATION|ACCESS_TYPE_CENTCOM)
/datum/computer_file/program/card_mod/proc/apply_access(var/obj/item/card/id/id_card, var/list/accesses)
id_card.access |= accesses
id_card.access |= accesses