Various pAI Fixes (#18222)

* Change various PAI abilities from proc to verb, init their verbs on creation

* Provide exit button on notFound and missingExport page

* Prevent programs with no ID from populating. Will still show in services. Things like pAI Flashlight

* allows pAIs to use PDAs they are inserted into

* prevent RTE for admin created pAIs

* adds error message when trying to download incompatible software

* fixes not being able to open pAI computer UIs if the client is closed with the UIs open

* changelog

* test fix?

* Revert "Provide exit button on notFound and missingExport page"

This reverts commit 77168da050.

* changelog change

* to_chat

* don't code 30s after waking up
This commit is contained in:
AlaunusLux
2024-01-19 11:33:21 +00:00
committed by GitHub
parent 7007c46389
commit 8336549284
13 changed files with 83 additions and 24 deletions
@@ -78,7 +78,7 @@
for(var/datum/computer_file/program/P in hard_drive.stored_files)
if(P.program_hidden())
continue
if(!istype(P, /datum/computer_file/program/scanner))
if(!istype(P, /datum/computer_file/program/scanner) && !isnull(P.tgui_id))
data["programs"] += list(list(
"filename" = P.filename,
"desc" = P.filedesc,
@@ -180,8 +180,11 @@
register_account()
. = TRUE
if(action == "PC_toggleservice")
toggle_service(params["service_to_toggle"], usr)
. = TRUE
if(params["service_to_toggle"] == "pai_access_lock" && istype(usr, /mob/living/silicon/pai))
to_chat(usr, SPAN_WARNING("Access denied."))
else
toggle_service(params["service_to_toggle"], usr)
. = TRUE
playsound(src, click_sound)
update_icon()