Made it impossible for non-malfunctioning AIs to disable the malf AI's APC.

Made malf AIs uncardable.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@292 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-10-16 17:50:22 +00:00
parent fee3f3db16
commit a310b6ddd4
2 changed files with 26 additions and 1 deletions
+11
View File
@@ -49,6 +49,12 @@
return
else
if (M.real_name != "Inactive AI")
if (ticker.mode.name == "AI malfunction")
var/datum/game_mode/malfunction/malf = ticker.mode
for (var/datum/mind/malfai in malf.malf_ai)
if (M.mind == malfai)
user << "This AI's download interface has been disabled."
return
var/mob/living/silicon/ai/O = new /mob/living/silicon/ai( src )
O.invisibility = 0
O.canmove = 0
@@ -88,6 +94,10 @@
Topic(href, href_list)
if (href_list["close"])
usr << browse(null, "window=aicard")
usr.machine = null
if (href_list["wipe"])
var/confirm = alert("Are you sure you want to wipe this card's memory? This cannot be undone once started.", "Confirm Wipe", "Yes", "No")
if(confirm == "Yes")
@@ -146,6 +156,7 @@
else
dat += "<b>Wipe in progress</b>"
dat += {" <A href='byond://?src=\ref[src];wireless=1'>[A.control_disabled ? "Enable" : "Disable"] Wireless Activity</A>"}
dat += {"<a href='byond://?src=\ref[src];close=1'> Close</a>"}
user << browse(dat, "window=aicard")
onclose(user, "aicard")
return