mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 15:45:05 +01:00
[MIRROR] Station monitoring console patches [MDB IGNORE] (#19086)
* Station monitoring console patches (#73096) ## About The Pull Request - Distro & Waste loop sensors were only displaying the values of the air on its turf not the actual pipes they were on, so the values were always constant. Thats fixed now. - Created a macro to map chamber id to air sensor to avoid typos. This also fixed being unable to connect to the waste loop sensor due to a typo in the word "_sensor". - When reconnecting to a different chamber other than distro & waste `atmos_chambers` is not lost when switching so you can once again connect back to distro & waste. After reconnecting make sure to again select the chamber from the drop down box cause the ui doesn't update automatically https://user-images.githubusercontent.com/110812394/215701505-105eba4d-d5d1-4a09-9ac7-0ab73fee2196.mp4 Fixes #73055 ## Changelog 🆑 fix: distro & waste sensors not reading values from the actual pipes they are on fix: losing distro & waste options from the drop-down box after connecting to a new sensor. refactor: all occurrences of _sensor with a macro to avoid typos. /🆑 --------- Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * Station monitoring console patches --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
@@ -58,6 +58,9 @@
|
||||
icon_state = "meter"
|
||||
SSair.stop_processing_machine(src)
|
||||
|
||||
/obj/machinery/meter/return_air()
|
||||
return target?.return_air() || ..()
|
||||
|
||||
/obj/machinery/meter/process_atmos()
|
||||
var/datum/gas_mixture/pipe_air = target.return_air()
|
||||
if(!pipe_air)
|
||||
|
||||
Reference in New Issue
Block a user