[MIRROR] Beepsky refactor and Bot code improvement [MDB IGNORE] (#9304)

* Beepsky refactor and Bot code improvement

* Feex

* Fixing the maps so they work :)

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
SkyratBot
2021-11-08 21:28:35 -05:00
committed by GitHub
co-authored by John Willard GoldenAlpharex
parent f0ddca7aea
commit e598a0dd33
42 changed files with 483 additions and 531 deletions
+2 -2
View File
@@ -195,7 +195,7 @@
if ("slavetoai")
var/mob/living/silicon/ai/newai = locate(params["slavetoai"]) in GLOB.ai_list
if (newai && newai != borg.connected_ai)
borg.notify_ai(DISCONNECT)
borg.notify_ai(AI_NOTIFICATION_CYBORG_DISCONNECTED)
if(borg.shell)
borg.undeploy()
borg.set_connected_ai(newai)
@@ -203,7 +203,7 @@
message_admins("[key_name_admin(user)] slaved [ADMIN_LOOKUPFLW(borg)] to the AI [ADMIN_LOOKUPFLW(newai)].")
log_admin("[key_name(user)] slaved [key_name(borg)] to the AI [key_name(newai)].")
else if (params["slavetoai"] == "null")
borg.notify_ai(DISCONNECT)
borg.notify_ai(AI_NOTIFICATION_CYBORG_DISCONNECTED)
if(borg.shell)
borg.undeploy()
borg.set_connected_ai(null)