Adds shutoff valve monitor

This commit is contained in:
Atermonera
2019-07-30 20:04:51 -04:00
committed by VirgoBot
parent df9e5f59a2
commit 60c415cf64
9 changed files with 165 additions and 3 deletions
+7
View File
@@ -1,3 +1,5 @@
GLOBAL_LIST_EMPTY(shutoff_valves)
/obj/machinery/atmospherics/valve/shutoff
icon = 'icons/atmos/clamp.dmi'
icon_state = "map_vclamp0"
@@ -18,8 +20,13 @@
/obj/machinery/atmospherics/valve/shutoff/Initialize()
. = ..()
open()
GLOB.shutoff_valves += src
hide(1)
/obj/machinery/atmospherics/valve/shutoff/Destroy()
GLOB.shutoff_valves -= src
..()
/obj/machinery/atmospherics/valve/shutoff/attack_ai(mob/user as mob)
return src.attack_hand(user)