Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e197981

Browse files
eeeee
1 parent f136c19 commit e197981

File tree

1 file changed

+4
-7
lines changed
  • code/modules/atmospherics/machinery/components/unary_devices

1 file changed

+4
-7
lines changed

code/modules/atmospherics/machinery/components/unary_devices/tank.dm

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,14 @@
3838
set_piping_layer(piping_layer)
3939

4040
/obj/machinery/atmospherics/components/unary/tank/attackby(obj/item/I, mob/user, params)
41-
if(I.tool_behaviour == TOOL_SCREWDRIVER)
42-
panel_open = !panel_open
43-
user.visible_message(span_notice("\The [user] [panel_open ? "opens" : "closes"] the hatch on \the [src]."), span_notice("You [panel_open ? "open" : "close"] the hatch on \the [src]."))
44-
I.play_tool_sound(src, 50)
45-
return
46-
if(panel_open)
41+
var/datum/gas_mixture/air_contents = airs[1]
42+
default_deconstruction_screwdriver(user, icon_state, icon_state, I)
43+
if(panel_open || air_contents.total_moles() < 1000)
4744
if(default_unfasten_wrench(user, I, 10))
4845
change_pipe_connection(!anchored)
4946
return
5047
else
51-
to_chat(user, span_warning("Open the panel first."))
48+
to_chat(user, span_warning("[panel_open? "Open the panel first!" : "Too much gas inside, make sure it's below 1000 moles!"]"))
5249
return
5350
return ..()
5451

0 commit comments

Comments
 (0)