mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user