Skip to content

Commit

Permalink
Changes to pump and valve layering
Browse files Browse the repository at this point in the history
- Pumps and valves will be rendered under catwalks, on the same layer as
other pipes
- Mapped pumps and valves will be physically above the floor
  • Loading branch information
Hubblenaut committed Oct 21, 2024
1 parent 2c26220 commit 1f714d1
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/obj/machinery/atmospherics/binary
dir = SOUTH
initialize_directions = SOUTH|NORTH
layer = ABOVE_CATWALK_LAYER

var/datum/gas_mixture/air1
var/datum/gas_mixture/air2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
icon = 'icons/obj/machines/power/teg.dmi'
icon_state = "circ-unassembled"
anchored = FALSE
layer = ABOVE_CATWALK_LAYER

var/kinetic_efficiency = 0.04 //combined kinetic and kinetic-to-electric efficiency
var/volume_ratio = 0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
construct_state = /singleton/machine_construction/default/panel_closed
uncreated_component_parts = null
stat_immune = 0
layer = ABOVE_CATWALK_LAYER

machine_name = "oxygen regenerator"
machine_desc = "Catalyzes gaseous CO2 to convert it into gaseous oxygen. The excess carbon is condensed and ejected as graphite sheets."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/obj/machinery/atmospherics/binary/passive_gate
icon = 'icons/atmos/passive_gate.dmi'
icon_state = "map_off"
level = ATOM_LEVEL_UNDER_TILE
level = ATOM_LEVEL_OVER_TILE

name = "pressure regulator"
desc = "A one-way air valve that can be used to regulate input or output pressure, and flow rate. Does not require power."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Thus, the two variables affect pump operation are set in New():
/obj/machinery/atmospherics/binary/pump
icon = 'icons/atmos/pump.dmi'
icon_state = "map_off"
level = ATOM_LEVEL_UNDER_TILE
level = ATOM_LEVEL_OVER_TILE

name = "gas pump"
desc = "A pump."
Expand Down
1 change: 1 addition & 0 deletions code/modules/atmospherics/components/shutoff.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
var/shutoff_state = 0
connect_types = CONNECT_TYPE_REGULAR
build_icon_state = "svalve"
level = ATOM_LEVEL_UNDER_TILE

/obj/machinery/atmospherics/valve/shutoff/on_update_icon()
icon_state = "vclamp[icon_connect_type]"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/atmospherics/components/tvalve.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name = "manual switching valve"
desc = "A pipe valve."

level = ATOM_LEVEL_UNDER_TILE
level = ATOM_LEVEL_OVER_TILE
dir = SOUTH
initialize_directions = SOUTH|NORTH|WEST

Expand Down
3 changes: 1 addition & 2 deletions code/modules/atmospherics/components/valve.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
name = "manual valve"
desc = "A pipe valve."

level = ATOM_LEVEL_UNDER_TILE
level = ATOM_LEVEL_OVER_TILE
dir = SOUTH
initialize_directions = SOUTH|NORTH
layer = ABOVE_CATWALK_LAYER

var/open = 0
var/openDuringInit = 0
Expand Down

0 comments on commit 1f714d1

Please sign in to comment.