Modular PDAs: The End of an Era (#10319)

PDAs are dead, long live PDAs. All trace of old PDAs has been scoured from the codebase, and in its place are modular computer PDAs that are feature-equivalent. Essentially every PDA function except the Syndicate detonation feature and Notepad has been ported over, and battery life for handheld computers has been boosted alongside the addition of charging cables to make things easier.
This commit is contained in:
JohnWildkins
2020-11-01 21:09:50 +02:00
committed by GitHub
parent a5d891763c
commit 616776f886
167 changed files with 2017 additions and 3332 deletions
+7 -10
View File
@@ -26,7 +26,7 @@ var/list/admin_departments
var/department = "Unknown" // our department
var/list/obj/item/device/pda/alert_pdas = list() //A list of PDAs to alert upon arrival of the fax.
var/list/obj/item/modular_computer/alert_pdas = list() //A list of PDAs to alert upon arrival of the fax.
/obj/machinery/photocopier/faxmachine/Initialize()
. = ..()
@@ -50,7 +50,7 @@ var/list/admin_departments
VUEUI_SET_CHECK_LIST(newdata["alertpdas"], alert_pdas, ., newdata)
newdata["alertpdas"] = list()
if (alert_pdas && alert_pdas.len)
for (var/obj/item/device/pda/pda in alert_pdas)
for (var/obj/item/modular_computer/pda in alert_pdas)
newdata["alertpdas"] += list(list("name" = "[alert_pdas[pda]]", "ref" = "\ref[pda]"))
newdata["departiments"] = list()
for (var/dept in (alldepartments + admin_departments + broadcast_departments))
@@ -120,7 +120,7 @@ var/list/admin_departments
SSvueui.check_uis_for_change(src)
if(href_list["linkpda"])
var/obj/item/device/pda/pda = usr.get_active_hand()
var/obj/item/modular_computer/pda = usr.get_active_hand()
if (!pda || !istype(pda))
to_chat(usr, "<span class='warning'>You need to be holding a PDA to link it.</span>")
else if (pda in alert_pdas)
@@ -135,7 +135,7 @@ var/list/admin_departments
SSvueui.check_uis_for_change(src)
if(href_list["unlink"])
var/obj/item/device/pda/pda = locate(href_list["unlink"])
var/obj/item/modular_computer/pda = locate(href_list["unlink"])
if (pda && istype(pda))
if (pda in alert_pdas)
to_chat(usr, "<span class='notice'>You unlink [alert_pdas[pda]] from \the [src]. It will no longer be notified of new faxes.</span>")
@@ -309,9 +309,6 @@ var/list/admin_departments
if (!alert_pdas || !alert_pdas.len)
return
for (var/obj/item/device/pda/pda in alert_pdas)
if (pda.toff || pda.message_silent)
continue
var/message = "New fax has arrived at [src.department] fax machine."
pda.new_info(pda.message_silent, pda.ttone, "[icon2html(pda, viewers(get_turf(pda)))] <b>[message]</b>")
for (var/obj/item/modular_computer/pda in alert_pdas)
var/message = "New message has arrived!"
pda.get_notification(message, 1, "[department] [name]")