From 98e879dabe48ae88998e09721c806e8b8b9372c7 Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Fri, 11 Sep 2020 21:32:39 -0700 Subject: [PATCH] Random fix: passive gates don't require power --- code/ATMOSPHERICS/components/binary_devices/passive_gate.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm index dd38dae3ca..e960d36fa7 100644 --- a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm +++ b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm @@ -13,6 +13,7 @@ desc = "A one-way air valve that can be used to regulate input or output pressure, and flow rate. Does not require power." use_power = USE_POWER_OFF + interact_offline = TRUE var/unlocked = 0 //If 0, then the valve is locked closed, otherwise it is open(-able, it's a one-way valve so it closes if gas would flow backwards). var/target_pressure = ONE_ATMOSPHERE @@ -216,7 +217,7 @@ tgui_interact(user) /obj/machinery/atmospherics/binary/passive_gate/tgui_interact(mob/user, datum/tgui/ui) - if(stat & (BROKEN|NOPOWER)) + if(stat & BROKEN) return FALSE ui = SStgui.try_update_ui(user, src, ui) if(!ui)