Cantt suck in air if the fan is covered! (#22357)

This commit is contained in:
1080pCat
2023-09-19 18:58:29 +01:00
committed by GitHub
parent 9fdf2992be
commit 22620e77f7
3 changed files with 10 additions and 2 deletions
@@ -148,6 +148,8 @@
if(connect(possible_port))
to_chat(user, "<span class='notice'>You connect [src] to the port.</span>")
update_icon()
if(on)
on = !on
return
else
to_chat(user, "<span class='notice'>[src] failed to connect to the port.</span>")
@@ -141,12 +141,15 @@
return data
/obj/machinery/atmospherics/portable/pump/ui_act(action, list/params)
/obj/machinery/atmospherics/portable/pump/ui_act(action, list/params, datum/tgui/ui)
if(..())
return
switch(action)
if("power")
if(connected_port)
to_chat(ui.user, "<span class='warning'>[src] fails to turn on, the port is covered!</span>")
return
on = !on
if(on && direction == DIRECTION_OUT)
investigate_log("[key_name(usr)] started a transfer into [holding_tank].<br>", "atmos")
@@ -136,12 +136,15 @@
return data
/obj/machinery/atmospherics/portable/scrubber/ui_act(action, list/params)
/obj/machinery/atmospherics/portable/scrubber/ui_act(action, list/params, datum/tgui/ui)
if(..())
return
switch(action)
if("power")
if(connected_port)
to_chat(ui.user, "<span class='warning'>[src] fails to turn on, the port is covered!</span>")
return
on = !on
update_icon()
return TRUE