Admins transforming a humanoid into an AI can now choose to not move them to the satellite. (#56075)

Adds a Yes/No/Cancel button to the AI transform proc that admins use on whether the new AI should be moved to the satellite or not.

Sometimes admins want to make an AI somewhere off-station for whatever reason. Also makes testing things with AIs less of a hassle.
This commit is contained in:
zxaber
2021-01-21 12:04:31 -08:00
committed by GitHub
parent 9ebc207b50
commit 50357cb9d6
2 changed files with 25 additions and 12 deletions
+10 -1
View File
@@ -1099,9 +1099,18 @@
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human.", confidential = TRUE)
return
var/move = TRUE
switch(alert(usr,"Move new AI to AI spawn location?","Move AI?", "Yes", "No","Cancel"))
if("Cancel")
return
if("No")
move = FALSE
if(QDELETED(H))
to_chat(usr, "<span class='danger'>Subject was deleted already. Transform canceled.</span>")
return
message_admins("<span class='danger'>Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!</span>")
log_admin("[key_name(usr)] AIized [key_name(H)].")
H.AIize(TRUE, H.client)
H.AIize(TRUE, H.client, move)
else if(href_list["makealien"])
if(!check_rights(R_SPAWN))