Added a transfer_ai() proc to easily transfer AIs between objects, provided the mobile object has a flush variable.

Probably fixed AI-ninja suit transfer.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1559 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
noisomehollow@lycos.com
2011-05-09 20:50:39 +00:00
parent ab87c76da1
commit cc12a2f08b
7 changed files with 249 additions and 163 deletions

View File

@@ -287,7 +287,7 @@
if(ishuman(M))//Checks to see if they are ninja
if(istype(M:gloves, /obj/item/clothing/gloves/space_ninja)&&M:gloves:candrain&&!M:gloves:draining)
if(M:wear_suit:control)
M:wear_suit:aicard.attack(src,M)
M:wear_suit:transfer_ai("AICORE", "NINJASUIT", src, M)
else
M << "\red <b>ERROR</b>: \black Remote access channel disabled."
return