Adds unaccounted for volumes to the gas analyzer's scan and allows for a summarized view of scanned airs (#27668)

* pipes now return all airs in their pipenet when analyzed and the gas scan can either return individual reports of all airs or the sum of all airs.

* Replaces scanners.dm with the one from the upstream since it didn't do so when I merged

* Makes the scanner scan all connected volumes again. need to re-add detailed mode

* Readds the detailed report feature to the analyzer

* changes a comment

* corrects the message when turning detailed reporting on/off

* Fixes a runtime the could happen when gas scanning things that don't have a gas mix associated with them as a ghost.
This commit is contained in:
Migratingcocofruit
2025-01-26 13:39:54 +00:00
committed by GitHub
parent 5120053853
commit 8e1df0dced
3 changed files with 102 additions and 38 deletions
+1 -1
View File
@@ -83,7 +83,7 @@
if(!istype(user)) // Make sure user is actually an observer. Revenents also use attack_ghost, but do not have the health_scan var.
return FALSE
if(user.client)
if(user.gas_scan && atmos_scan(user=user, target=src, silent=TRUE))
if(user.gas_scan && src.return_analyzable_air() && atmos_scan(user=user, target=src, silent=TRUE))
return TRUE
// health + machine analyzer for ghosts