mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Cantt suck in air if the fan is covered! (#22357)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user