Robot code clean up and fixes.

Fixes runtime when a borg is reset.
Fixes issue where /proc/select_active_ai_with_fewest_borgs() would not always return the intended AI.
Fixes issues with new borgs spamming the master AI with creation messages under some circumstances.
This commit is contained in:
PsiOmega
2015-03-10 13:37:20 +01:00
parent d3d9e0b2ed
commit 533ccef0ab
11 changed files with 43 additions and 37 deletions
@@ -24,7 +24,6 @@
if(istype(M, /mob/living/silicon/robot))
var/mob/living/silicon/robot/Robot = M
if(Robot.mmi) del(Robot.mmi)
Robot.notify_ai(1)
else
for(var/obj/item/W in M)
if(istype(W, /obj/item/weapon/implant)) //TODO: Carn. give implants a dropped() or something