mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Grav generator, not mapped in yet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user