Merge pull request #5541 from VOREStation/upstream-merge-6353

[MIRROR] Adds shutoff valve monitor
This commit is contained in:
Novacat
2019-07-30 20:22:26 -04:00
committed by GitHub
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)