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() |
holding | Stores the reference of the tank the machine is holding |
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 |
replace_tank | Allow the player to place a tank inside the machine. Arguments: |
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()
holding

Stores the reference of the tank the machine is holding
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
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
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.