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:
Joan Lung
2016-07-25 09:54:17 +02:00
committed by AnturK
parent 26b1ad64f9
commit e7171ed2b1
@@ -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()