Grav generator, not mapped in yet

This commit is contained in:
ZomgPonies
2014-05-05 03:03:22 -04:00
parent 4b2deebec6
commit 48aea00e33
3 changed files with 369 additions and 120 deletions
+3 -2
View File
@@ -113,6 +113,7 @@ Class Procs:
var/custom_aghost_alerts=0
var/panel_open = 0
var/myArea
var/interact_offline = 0 // Can the machine be interacted with while de-powered.
/obj/machinery/New()
addAtProcessing()
@@ -185,7 +186,7 @@ Class Procs:
/obj/machinery/Topic(href, href_list)
..()
if(stat & (NOPOWER|BROKEN))
if(!interact_offline && stat & (NOPOWER|BROKEN))
return 1
if(usr.restrained() || usr.lying || usr.stat)
return 1
@@ -230,7 +231,7 @@ Class Procs:
return src.attack_hand(user)
/obj/machinery/attack_hand(mob/user as mob)
if(stat & (NOPOWER|BROKEN|MAINT))
if(!interact_offline && stat & (NOPOWER|BROKEN|MAINT))
return 1
if(user.lying || user.stat)
return 1