Fixes the manifest not having a header (#16621)

* fix the manifest

* cl

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-07-03 23:18:13 +02:00
committed by GitHub
parent d74f40ffe6
commit b4a85c06f6
3 changed files with 46 additions and 20 deletions
@@ -11,27 +11,12 @@
requires_ntnet = TRUE
available_on_ntnet = TRUE
/datum/computer_file/program/manifest/ui_data(mob/user)
var/list/data = initial_data()
return data
/datum/computer_file/program/manifest/ui_static_data(mob/user)
var/list/data = list()
data["manifest"] = SSrecords.get_manifest_list()
data["allow_follow"] = isobserver(usr)
return data
// /datum/computer_file/program/manifest/Topic(href, href_list)
// . = ..()
// if(href_list["action"] == "print" && can_run(usr, 1) && !isnull(computer?.nano_printer))
// 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 might be out of paper."))
// return
// else
// computer.visible_message(SPAN_NOTICE("\The [computer] prints out a paper."))
// if(!istype(computer, /obj/item/modular_computer/silicon))
// return
// var/obj/item/modular_computer/silicon/true_computer = computer
// if(!istype(true_computer.computer_host, /mob/living/silicon/pai))
// return
// var/mob/living/silicon/pai/host = true_computer.computer_host
// host.radio.Topic(href, href_list)