portable_atmospherics
Vars | |
air_contents | Stores the gas mixture of the portable component. Don't access this directly, use return_air() so you support the temporary processing it provides |
---|---|
connected_port | Stores the reference of the connecting port |
excited | Used to track if anything of note has happen while running process_atmos(). Treat it as a process_atmos() scope var, we just declare it here to pass it between parent calls. Should be false on start of every process_atmos() proc, since true means we'll process again next tick. |
holding | Stores the reference of the tank the machine is holding |
nob_crystal_inserted | Is there a hypernoblium crystal inserted into this |
pressure_limit | Max amount of pressure allowed inside of the canister before it starts to break. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune. |
suppress_reactions | Should reactions inside the object be suppressed |
temp_limit | Max amount of heat allowed inside the machine before it starts to melt. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune. |
volume | Volume (in L) of the inside of the machine |
Procs | |
connect | Allow the portable machine to be connected to a connector Arguments: |
disconnect | Allow the portable machine to be disconnected from the connector |
insert_nob_crystal | Insert Hypernob crystal into the machine |
replace_tank | Allow the player to place a tank inside the machine. Arguments: |
take_atmos_damage | Take damage if a variable is exceeded. Damage is equal to temp/limit * heat/limit. The damage multiplier is treated as 1 if something is being ignored while the other one is exceeded. On most cases only one will be exceeded, so the other one is scaled down. |
unregister_holding | Holding tanks can get to zero integrity and be destroyed without other warnings due to pressure change. This checks for that case and removes our reference to it. |
Var Details
air_contents
Stores the gas mixture of the portable component. Don't access this directly, use return_air() so you support the temporary processing it provides
connected_port
Stores the reference of the connecting port
excited
Used to track if anything of note has happen while running process_atmos(). Treat it as a process_atmos() scope var, we just declare it here to pass it between parent calls. Should be false on start of every process_atmos() proc, since true means we'll process again next tick.
holding
Stores the reference of the tank the machine is holding
nob_crystal_inserted
Is there a hypernoblium crystal inserted into this
pressure_limit
Max amount of pressure allowed inside of the canister before it starts to break. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.
suppress_reactions
Should reactions inside the object be suppressed
temp_limit
Max amount of heat allowed inside the machine before it starts to melt. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.
volume
Volume (in L) of the inside of the machine
Proc Details
connect
Allow the portable machine to be connected to a connector Arguments:
- new_port - the connector that we trying to connect to
disconnect
Allow the portable machine to be disconnected from the connector
insert_nob_crystal
Insert Hypernob crystal into the machine
replace_tank
Allow the player to place a tank inside the machine. Arguments:
- User: the player doing the act
- close_valve: used in the canister.dm file, check if the valve is open or not
- new_tank: the tank we are trying to put in the machine
take_atmos_damage
Take damage if a variable is exceeded. Damage is equal to temp/limit * heat/limit. The damage multiplier is treated as 1 if something is being ignored while the other one is exceeded. On most cases only one will be exceeded, so the other one is scaled down.
unregister_holding
Holding tanks can get to zero integrity and be destroyed without other warnings due to pressure change. This checks for that case and removes our reference to it.