mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +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:
@@ -401,7 +401,7 @@ GLOBAL_LIST_INIT(transit_tube_recipes, list(
|
||||
if(info.type == /datum/pipe_info/sensor)
|
||||
var/datum/pipe_info/sensor/sensor_info = info
|
||||
var/obj/machinery/air_sensor/sensor = sensor_info.id
|
||||
if(GLOB.objects_by_id_tag[initial(sensor.chamber_id) + "_sensor"] != null)
|
||||
if(GLOB.objects_by_id_tag[CHAMBER_SENSOR_FROM_ID(initial(sensor.chamber_id))] != null)
|
||||
continue
|
||||
|
||||
r += list(list("pipe_name" = info.name, "pipe_index" = i, "selected" = (info == recipe), "all_layers" = info.all_layers))
|
||||
|
||||
Reference in New Issue
Block a user