Miscellaneous Synthetic Changes (#1386)

changes:

imageadd: "Some AI displays now have special icons used when the AI is dead."
rscadd: "Added an admin verb that allows force-storaging of SSD AIs."
imageadd: "The AI's icon now changes when it is EMPed."
other:

Gave a name to borgs' internal radio so it doesn't show as "station bounced radio".
Disabled rejuvinate() for AIs as it didn't actually work anyways.
Fixed a potential bug where an engiborg's welder might've been able to be attached to things.
Added a code helper to check if an item is a borg tool.
This commit is contained in:
Lohikar
2017-01-04 03:15:11 +02:00
committed by skull132
parent 75b540c061
commit 730a77aab5
9 changed files with 71 additions and 22 deletions
+19 -1
View File
@@ -97,7 +97,8 @@ var/list/admin_verbs_admin = list(
/client/proc/cmd_dev_say,
/client/proc/view_duty_log,
/client/proc/cmd_dev_bst,
/client/proc/clear_toxins
/client/proc/clear_toxins,
/client/proc/wipe_ai // allow admins to force-wipe AIs
)
var/list/admin_verbs_ban = list(
/client/proc/unban_panel,
@@ -1017,3 +1018,20 @@ var/list/admin_verbs_cciaa = list(
log_and_message_admins("has toggled explosions to be [config.use_recursive_explosions ? "recursive" : "non-recursive"].")
feedback_add_details("admin_verb", "TRE")
/client/proc/wipe_ai()
set category = "Admin"
set name = "Wipe AI"
set desc = "Forces an AI to wipe its own core, ghosting them and freeing their job slot."
if (!check_rights(R_ADMIN))
return
var/mob/living/silicon/ai/target = input("Choose the AI to force-wipe:", "AI Termination") as null|anything in ai_list
if (alert("Are you sure you want to wipe [target.name]? They will be ghosted and their job slot freed.", "Confirm AI Termination", "No", "No", "Yes") != "Yes")
return
log_and_message_admins("admin-wiped [key_name_admin(target)]'s core.")
target.do_wipe_core()