Files
Bubberstation/code/datums
SkyratBot d16bea0029 [MIRROR] Compact Airlock Pump (#28825)
* Compact Airlock Pump (#84365)

## About The Pull Request

Adds a craftable airlock pump that is an atmos device with distro &
waste nodes on a single side.

When wrenched down, looks for airlocks and sets up a cycling airlock
chamber.

A more compact and flexible alternative to the current binary DP Vent
Pumps.

https://github.com/tgstation/tgstation/assets/3625094/a799b3e8-3425-43fc-9c17-2bdde63ec194

Can also skip cycling when a shuttle is docked with one of the external
airlocks:

https://github.com/tgstation/tgstation/assets/3625094/37054bc0-b8c5-4556-aa2c-0fa5bc3c7c5b

**Set up from scratch**: https://youtu.be/22PDfmJKC7g

## Why It's Good For The Game

Provides an easy to map and setup alternative to DP Vents that doesn't
require any map helpers, var editing and can even be crafted in the
game.

![image](https://github.com/tgstation/tgstation/assets/3625094/6925dc0a-882a-48da-8387-e6a50cb4c514)

You just need to extend the disto/waste pipes to the place where you
want your airlock to be.

When built, it automatically considers the first found airlock in the
direction of incoming pipes as an internal one, and the opposite -
external.

Cycling is controlled by the airlocks. When you click/bump an internal
airlock, it starts pressurizing. When external one - depressurizing.

When unable to complete the cycle in 10 seconds, unbolts the door
automatically to avoid stucking due to issues with pipes or slow atmos.

TODO:
- [x] Hook up to the power and figure out the logic when unpowered
- [x] ~Make it work with a directly connected layer manifold~
- [x] Make unwrenching require unpowered state and forbid mapspawn pump
unwrenching
- [x] Support airlock arrays and double airlocks
- [x] An option to open airlocks instead of just bolts
- [x] Check for the presence of airlocks and crash if not set up
properly on map

## Changelog

🆑
add: Added airlock pump atmos device to create cycling airlocks
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>

* Compact Airlock Pump

---------

Co-authored-by: Andrew <mt.forspam@gmail.com>
Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>
2024-07-13 23:01:49 +05:30
..
2024-04-30 02:57:46 +02:00