[MIRROR] Removes network cards and printers from tablets [MDB IGNORE] (#16451)

* Removes network cards and printers from tablets

* merge tablet_presets

* printer.dm should have been deleted, missed change

* update contractor tablet

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-09-27 23:16:32 -04:00
committed by GitHub
co-authored by John Willard tastyfish
parent a827c3d01b
commit 0339798a42
40 changed files with 300 additions and 708 deletions
@@ -80,11 +80,9 @@
var/obj/item/computer_hardware/card_slot/card_slot
var/obj/item/computer_hardware/card_slot/card_slot2
var/obj/item/computer_hardware/printer/printer
if(computer)
card_slot = computer.all_components[MC_CARD]
card_slot2 = computer.all_components[MC_CARD2]
printer = computer.all_components[MC_PRINT]
if(!card_slot || !card_slot2)
return
@@ -109,7 +107,7 @@
return TRUE
// Print a report.
if("PRG_print")
if(!computer || !printer)
if(!computer)
return TRUE
if(!authenticated_card)
return TRUE
@@ -126,7 +124,7 @@
if(A in known_access_rights)
contents += " [SSid_access.get_access_desc(A)]"
if(!printer.print_text(contents,"access report - [target_id_card.registered_name ? target_id_card.registered_name : "Unregistered"]"))
if(!computer.print_text(contents, "access report - [target_id_card.registered_name ? target_id_card.registered_name : "Unregistered"]"))
to_chat(usr, span_notice("Hardware error: Printer was unable to print the file. It may be out of paper."))
return TRUE
else
@@ -308,18 +306,14 @@
var/obj/item/computer_hardware/card_slot/card_slot
var/obj/item/computer_hardware/card_slot/card_slot2
var/obj/item/computer_hardware/printer/printer
if(computer)
card_slot = computer.all_components[MC_CARD]
card_slot2 = computer.all_components[MC_CARD2]
printer = computer.all_components[MC_PRINT]
data["have_auth_card"] = !!(card_slot)
data["have_id_slot"] = !!(card_slot2)
data["have_printer"] = !!(printer)
else
data["have_id_slot"] = FALSE
data["have_printer"] = FALSE
if(!card_slot2)
return data //We're just gonna error out on the js side at this point anyway