AI can now ctrl-click APCs to turn them off.

Purge module no longer gives robocop laws.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3524 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-04-28 02:29:28 +00:00
parent 2a22963c90
commit 73837b0c4f
3 changed files with 16 additions and 4 deletions
+5 -2
View File
@@ -758,7 +758,7 @@
return 0
return 1
/obj/machinery/power/apc/Topic(href, href_list)
/obj/machinery/power/apc/Topic(href, href_list, var/usingUI = 1)
if (!can_use(usr))
return
src.add_fingerprint(usr)
@@ -791,6 +791,7 @@
if (ticker.mode.config_tag == "malfunction")
if (src.z == 1) //if (is_type_in_list(get_area(src), the_station_areas))
operating ? ticker.mode:apcs++ : ticker.mode:apcs--
src.update()
updateicon()
@@ -866,7 +867,9 @@
else if (href_list["deoccupyapc"])
malfvacate()
src.updateDialog()
if(usingUI)
src.updateDialog()
return
/obj/machinery/power/apc/proc/malfoccupy(var/mob/living/silicon/ai/malf)