/tg/ Station 13 - Modules - TypesVar Details - Proc Details

vent_scrubber

Vars

adjacent_turfsList of the turfs near the scrubber, used for widenet
filter_typesThe list of gases we are filtering
frequencyFrequency id for connecting to the NTNet
radio_connectionReference to the radio datum
radio_filter_inRadio connection from the air alarm
radio_filter_outRadio connection to the air alarm
scrubbingThe mode of the scrubber (SCRUBBING or SIPHONING)
volume_rateRate of the scrubber to remove gases from the air
widenetis this scrubber acting on the 3x3 area around it.

Procs

add_filtersadds a gas or list of gases to our filter_types. used so that the scrubber can check if its supposed to be processing after each change
check_turfscontains all of the gas we're sucking out of the tile, gets put into our parent pipenet maximum percentage of the turfs gas we can filter we populate a list of turfs with nonatmos-blocked cardinal turfs AND diagonal turfs that can share atmos with both of the cardinal turfs
clogSets "clogged" to TRUE.
power_changewhether we should attempt to start processing due to settings allowing us to take gas out of our environment
produce_mobProduces a mob based on the input given by scrubber clog event.
remove_filtersremove a gas or list of gases from our filter_types.used so that the scrubber can check if its supposed to be processing after each change
unclogSets "clogged" to FALSE.

Var Details

adjacent_turfs

List of the turfs near the scrubber, used for widenet

filter_types

The list of gases we are filtering

frequency

Frequency id for connecting to the NTNet

radio_connection

Reference to the radio datum

radio_filter_in

Radio connection from the air alarm

radio_filter_out

Radio connection to the air alarm

scrubbing

The mode of the scrubber (SCRUBBING or SIPHONING)

volume_rate

Rate of the scrubber to remove gases from the air

widenet

is this scrubber acting on the 3x3 area around it.

Proc Details

add_filters

adds a gas or list of gases to our filter_types. used so that the scrubber can check if its supposed to be processing after each change

check_turfs

contains all of the gas we're sucking out of the tile, gets put into our parent pipenet maximum percentage of the turfs gas we can filter we populate a list of turfs with nonatmos-blocked cardinal turfs AND diagonal turfs that can share atmos with both of the cardinal turfs

clog

Sets "clogged" to TRUE.

Sets the clogged value to be true. Called during the scrubber clog event to begin the production of mobs, and allows for the plunger_act to run.

power_change

whether we should attempt to start processing due to settings allowing us to take gas out of our environment

produce_mob

Produces a mob based on the input given by scrubber clog event.

Used by the scrubber clog random event to handle the spawning of mobs. The proc recieves the mob that will be spawned, and the event's current list of living mobs produced by the event so far. After checking if the vent is welded, the new mob is created on the scrubber's turf, then added to the living_mobs list.

Arguments:

remove_filters

remove a gas or list of gases from our filter_types.used so that the scrubber can check if its supposed to be processing after each change

unclog

Sets "clogged" to FALSE.

Changes the clogged value to be false. Called during the scrubber clog event to stop the production of mobs and prevent further plunger use.