mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 13:35:10 +00:00
Conflicts: _maps/map_files/tgstation.2.1.3.dmm code/ATMOSPHERICS/atmospherics.dm code/ATMOSPHERICS/components/portables_connector.dm
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
/obj/machinery/atmospherics/pipe
|
|
var/datum/gas_mixture/air_temporary //used when reconstructing a pipeline that broke
|
|
var/datum/pipeline/parent
|
|
var/volume = 0
|
|
layer = 2.4 //under wires with their 2.44
|
|
use_power = 0
|
|
can_unwrench = 1
|
|
var/alert_pressure = 80*ONE_ATMOSPHERE
|
|
//minimum pressure before check_pressure(...) should be called
|
|
|
|
/obj/machinery/atmospherics/proc/pipeline_expansion()
|
|
return null
|
|
|
|
/obj/machinery/atmospherics/pipe/proc/check_pressure(pressure)
|
|
//Return 1 if parent should continue checking other pipes
|
|
//Return null if parent should stop checking other pipes. Recall: del(src) will by default return null
|
|
return 1
|
|
|
|
/obj/machinery/atmospherics/pipe/proc/releaseAirToTurf()
|
|
if(air_temporary)
|
|
var/turf/T = loc
|
|
T.assume_air(air_temporary)
|
|
air_update_turf()
|
|
|
|
/obj/machinery/atmospherics/pipe/return_air()
|
|
return parent.air
|
|
|
|
/obj/machinery/atmospherics/pipe/build_network()
|
|
if(!parent)
|
|
parent = new /datum/pipeline()
|
|
parent.build_pipeline(src)
|
|
|
|
/obj/machinery/atmospherics/pipe/attackby(obj/item/weapon/W, mob/user)
|
|
if(istype(W, /obj/item/device/analyzer))
|
|
atmosanalyzer_scan(parent.air, user)
|
|
|
|
if(istype(W,/obj/item/device/pipe_painter))
|
|
return
|
|
|
|
return ..()
|
|
|
|
/obj/machinery/atmospherics/pipe/setPipenet(datum/pipeline/P)
|
|
parent = P
|