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

* 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.

* Admins transforming a humanoid into an AI can now choose to not move them to the satellite.

Co-authored-by: zxaber <37497534+zxaber@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-01-22 04:06:50 +00:00
committed by GitHub
co-authored by zxaber
parent d0b9f9d399
commit e8fde9de6d
2 changed files with 25 additions and 12 deletions
+10 -1
View File
@@ -1105,9 +1105,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))