Fixed up AI Malfunction

This commit is contained in:
ZomgPonies
2013-09-17 23:06:51 -04:00
parent 0a0c2c79f9
commit 420bb6f506
10 changed files with 753 additions and 270 deletions
+7 -4
View File
@@ -903,24 +903,27 @@
malfai << "Hack complete. The APC is now under your exclusive control."
update_icon()
/*else if (href_list["occupyapc"])
else if (href_list["occupyapc"])
malfoccupy(usr)
else if (href_list["deoccupyapc"])
malfvacate()*/
malfvacate()
if(usingUI)
src.updateDialog()
return
/*/obj/machinery/power/apc/proc/malfoccupy(var/mob/living/silicon/ai/malf)
/obj/machinery/power/apc/proc/malfoccupy(var/mob/living/silicon/ai/malf)
if(!istype(malf))
return
if(istype(malf.loc, /obj/machinery/power/apc)) // Already in an APC
malf << "<span class='warning'>You must evacuate your current apc first.</span>"
return
if(!malf.can_shunt)
malf << "<span class='warning'>You cannot shunt.</span>"
return
if(src.z != 1)
return
src.occupant = new /mob/living/silicon/ai(src,malf.laws,null,1)
@@ -953,7 +956,7 @@
if(forced)
src.occupant.loc = src.loc
src.occupant.death()
src.occupant.gib()*/
src.occupant.gib()
/obj/machinery/power/apc/proc/ion_act()