Kaze's Req : inactive AIs are wrenchable.

Wrench an inactive AI core, and you can drag it around.
Tested it, AI can be carded in when you are dragging the core, or carded
out.
This commit is contained in:
Laharl Montogmmery
2013-11-21 16:34:20 +01:00
parent c9649138e6
commit 55387d293d
+15 -4
View File
@@ -175,10 +175,21 @@
anchored = 1
state = 20//So it doesn't interact based on the above. Not really necessary.
attackby(var/obj/item/device/aicard/A as obj, var/mob/user as mob)
if(istype(A, /obj/item/device/aicard))//Is it?
A.transfer_ai("INACTIVE","AICARD",src,user)
return
/obj/structure/AIcore/deactivated/attackby(var/obj/item/A as obj, var/mob/user as mob)
if(istype(A, /obj/item/device/aicard))//Is it?
A.transfer_ai("INACTIVE","AICARD",src,user)
if(istype(A, /obj/item/weapon/wrench))
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
switch(anchored)
if(0)
if(do_after(user, 20))
user << "\blue You wrench the core into place."
anchored = 1
if(1)
if(do_after(user, 20))
user << "\blue You unfasten the core."
anchored = 0
return
/*
This is a good place for AI-related object verbs so I'm sticking it here.