vent_scrubber

Vars | |
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. |
Procs | |
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. |
produce_mob | Produces a mob based on the input given by scrubber clog event. |
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. |
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:
- spawned_mob - Stores which mob will be spawned and added to the living_mobs list.
- living_mobs - Used to add the spawned mob to the list of currently living mobs produced by this vent. Relevant code for how the list is handled is in the scrubber_clog.dm file.
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.