/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
scrubbingThe mode of the scrubber (ATMOS_DIRECTION_SCRUBBING or ATMOS_DIRECTION_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.
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

scrubbing

The mode of the scrubber (ATMOS_DIRECTION_SCRUBBING or ATMOS_DIRECTION_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.

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.