mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
no build network on every process
scrubbers by default will scrub toxins.
This commit is contained in:
@@ -77,7 +77,8 @@ Pipelines + Other Objects -> Pipe network
|
|||||||
// I asked /tg/ and bay and they have no idea why this is here, so into the trash it goes. - N3X
|
// I asked /tg/ and bay and they have no idea why this is here, so into the trash it goes. - N3X
|
||||||
// Re-enabled for debugging.
|
// Re-enabled for debugging.
|
||||||
/obj/machinery/atmospherics/process()
|
/obj/machinery/atmospherics/process()
|
||||||
build_network()
|
//build_network()
|
||||||
|
//testing("[src] called parent process to build_network()")
|
||||||
|
|
||||||
/obj/machinery/atmospherics/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
/obj/machinery/atmospherics/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
||||||
// Check to see if should be added to network. Add self if so and adjust variables appropriately.
|
// Check to see if should be added to network. Add self if so and adjust variables appropriately.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
var/on = 0
|
var/on = 0
|
||||||
var/scrubbing = 1 //0 = siphoning, 1 = scrubbing
|
var/scrubbing = 1 //0 = siphoning, 1 = scrubbing
|
||||||
var/scrub_CO2 = 1
|
var/scrub_CO2 = 1
|
||||||
var/scrub_Toxins = 0
|
var/scrub_Toxins = 1
|
||||||
var/scrub_N2O = 0
|
var/scrub_N2O = 0
|
||||||
var/scrub_O2 = 0
|
var/scrub_O2 = 0
|
||||||
var/scrub_N2 = 0
|
var/scrub_N2 = 0
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
var/radio_filter_out
|
var/radio_filter_out
|
||||||
var/radio_filter_in
|
var/radio_filter_in
|
||||||
New()
|
New()
|
||||||
..()
|
..()s
|
||||||
area_uid = areaMaster.uid
|
area_uid = areaMaster.uid
|
||||||
if (!id_tag)
|
if (!id_tag)
|
||||||
assign_uid()
|
assign_uid()
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
|
|
||||||
/obj/machinery/atmospherics/pipe/simple/process()
|
/obj/machinery/atmospherics/pipe/simple/process()
|
||||||
if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle
|
if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle
|
||||||
..()
|
build_network()
|
||||||
else
|
else
|
||||||
. = PROCESS_KILL
|
. = PROCESS_KILL
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user