mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 22:54:46 +00:00
* Fixed atmospherics components air relocation and unsafe pressure release (#80244) ## About The Pull Request At present - If user deconstructs/unwrenches something from [/obj/machinery/atmospherics/components](https://github.com/tgstation/tgstation/blob/master/code/modules/atmospherics/machinery/components/components_base.dm) - all air inside it disappear. (only unary, binary, trinary devices). - [/obj/machinery/atmospherics/components/unsafe_pressure_release()](f9a5502f78/code/modules/atmospherics/machinery/components/components_base.dm (L175)) doesn't work at all. - HFR UI has the problem of [activation request message](f9a5502f78/code/modules/atmospherics/machinery/components/fusion/hfr_parts.dm (L209C3-L209C3)) constantly repeating if the user forcefully switches off the machine (e.g. unscrewed one of the components). - Thermomachine and Bluespace sender do not connect to pipes when panel is open. - Crystallizer does not move air from node after rotation. Now - Each [/obj/machinery/atmospherics/components](https://github.com/tgstation/tgstation/blob/master/code/modules/atmospherics/machinery/components/components_base.dm) deconstruction will move air into connected pipeline if any, otherwise it will be released from open nodes, HFR internals or if there is portable connector that has no device connected will also release air outside. The user will also be notified of deconstruction and if pressure inside is safe for action. - The [/obj/machinery/atmospherics/components/unsafe_pressure_release()](f9a5502f78/code/modules/atmospherics/machinery/components/components_base.dm (L175)) will act like a normal pipe [unsafe_pressure_release()](f9a5502f78/code/modules/atmospherics/machinery/atmosmachinery.dm (L447C1-L447C1)) if there is an empty node with air. - When HFR interface is turned off - UI will be closed. - Thermomachine and Bluespace sender will always try to connect to pipe if they are anchored. - Air inside of nodes will move to connected pipenet after the machinery is rotated. ## Why It's Good For The Game This fixes things that essentially had to exist at the same time adding new possibilities for realization. Even though these aren't critical bugs, it's still unpleasant enough to lose air. ## Changelog 🆑 mogeoko fix: Atmospherics components will now move air into connected pipeline on deconstruction if possible. Otherwise, air will be released to the outside from open nodes. fix: Unsafe pressure release on atmos components will now work the same way it does in the normal pipes if there is an empty node with air. fix: The HFR user interface would close when the machine is shut down. fix: Atmospherics machinery will now share air from nodes after being rotated and reconnected to pipenet. /🆑 --------- Co-authored-by: san7890 <the@ san7890.com> * Fixed atmospherics components air relocation and unsafe pressure release --------- Co-authored-by: mogeoko <109075486+mogeoko@users.noreply.github.com> Co-authored-by: san7890 <the@ san7890.com>