mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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:
co-authored by
John Willard
GoldenAlpharex
parent
f0ddca7aea
commit
e598a0dd33
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user