mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Converting an AI to Ratvar's cause immediately converts all of its connected cyborgs (#19425)
* Converting an AI to Ratvar's cause immediately converts all of its connected cyborgs * let myself out * let ourselves out
This commit is contained in:
@@ -105,6 +105,12 @@ This file's folder contains:
|
||||
R.UnlinkSelf()
|
||||
R.emagged = 1
|
||||
R << "<span class='boldwarning'>You have been desynced from your master AI. In addition, your onboard camera is no longer active and your safeties have been disabled.</span>"
|
||||
else if(isAI(S))
|
||||
var/mob/living/silicon/ai/A = S
|
||||
for(var/C in A.connected_robots)
|
||||
var/mob/living/silicon/robot/R = C
|
||||
if(R.connected_ai == A)
|
||||
add_servant_of_ratvar(R)
|
||||
S.laws = new/datum/ai_laws/ratvar
|
||||
S.laws.associate(S)
|
||||
S.update_icons()
|
||||
|
||||
Reference in New Issue
Block a user