mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 11:40:07 +01:00
* Security Officers can now Download the Plexagon Crew Manifest PDA App (#78678) ## About The Pull Request Despite starting with the Plexagon app, security officers did not have sufficient access to actually download the app onto new machines. Now they do. ## Why It's Good For The Game Its weird and unintuitive to start with an app but not be able to download it if you have to get a new PDA. ## Changelog 🆑 fix: Security officers can now download the crew manifest PDA app that they start with. /🆑 * Security Officers can now Download the Plexagon Crew Manifest PDA App --------- Co-authored-by: GPeckman <21979502+GPeckman@users.noreply.github.com>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
/datum/computer_file/program/crew_manifest
|
|
filename = "plexagoncrew"
|
|
filedesc = "Plexagon Crew List"
|
|
category = PROGRAM_CATEGORY_CREW
|
|
program_icon_state = "id"
|
|
extended_desc = "Program for viewing and printing the current crew manifest"
|
|
transfer_access = list(ACCESS_SECURITY, ACCESS_COMMAND)
|
|
requires_ntnet = TRUE
|
|
size = 4
|
|
tgui_id = "NtosCrewManifest"
|
|
program_icon = "clipboard-list"
|
|
detomatix_resistance = DETOMATIX_RESIST_MAJOR
|
|
|
|
/datum/computer_file/program/crew_manifest/ui_static_data(mob/user)
|
|
var/list/data = list()
|
|
data["manifest"] = GLOB.manifest.get_manifest()
|
|
return data
|
|
|
|
/datum/computer_file/program/crew_manifest/ui_act(action, params, datum/tgui/ui)
|
|
switch(action)
|
|
if("PRG_print")
|
|
if(computer) //This option should never be called if there is no printer
|
|
var/contents = {"<h4>Crew Manifest</h4>
|
|
<br>
|
|
[GLOB.manifest ? GLOB.manifest.get_html(0) : ""]
|
|
"}
|
|
if(!computer.print_text(contents, "crew manifest ([station_time_timestamp()])"))
|
|
to_chat(usr, span_notice("Printer is out of paper."))
|
|
return
|
|
else
|
|
computer.visible_message(span_notice("\The [computer] prints out a paper."))
|