mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 00:51:23 +00:00
## About The Pull Request Fixes some issues form the #76075 rework. 1. Grilles didn't shock anymore unless placed on red (layer 1) wire. Now it looks for any of the three layers. 2. APCs also didn't get the correct cable layer for shocking as you build a terminal. So they wouldn't shock you if there wasn't a layer 1 cable that carried power. And no one ever uses layer 1 cables sadly. Now they look for the cable layer you're building the terminal on. 3. SMES, like APCs, didn't check for the correct cable layer when building a terminal. Now they do. 4. As far as I can tell, gas miners would also only have worked on cable layer 1, now they work on all layers. This is because before the #76075 rework, all machinery connected to a "machinery" cable layer instead of an actual cable layer. The reworks' `get_cable_node` assumes `CABLE_LAYER_1` as a default parameter, causing only red cables to connect when no parameter is passed, unlike before where all cables would connect. The rework adjusted some machines to be able to connect to a specific layer. But I think other "machines" such as grilles should just us all layers available. So I adjusted the `get_cable_node` to look for all layers unless a specific layer is specified in the call ## Why It's Good For The Game Rage cages good Maint shocking grilles good No one knows to use red cable to shock stuff 🆑 fix: Cable connections on various structures including electrified grilles, APC terminals, and SMES terminals have been rectified and will shock as expected again. fix: Gas miners draw power properly again. /🆑