Internals tank co2 check (#22224)

Fixes https://github.com/Aurorastation/Aurora.3/issues/22170

This PR disqualifies any tank with distribute_pressure set to 0 from
being considered by Internals when determining the 'best' tank
available. This currently only affects CO2 jetpacks.

This PR also adds a few cases where using the atmos analyzer on a tank
didn't update its manipulated_by var.
This commit is contained in:
Batrachophreno
2026-04-15 15:06:38 +00:00
committed by GitHub
parent 358eb1fbd6
commit c50a2d9c69
4 changed files with 59 additions and 18 deletions
@@ -27,6 +27,8 @@
/obj/item/tank/feedback_hints(mob/user, distance, is_adjacent)
. += ..()
if(distribute_pressure == 0)
. += SPAN_ALERT("This tank's hardware configuration prevents it from being used for Internals, even if filled with compatible gas.")
if(distance <= 0)
var/celsius_temperature = air_contents.temperature - T0C
switch(celsius_temperature)
@@ -69,6 +71,7 @@
..()
if ((istype(attacking_item, /obj/item/analyzer)) && get_dist(user, src) <= 1)
var/obj/item/analyzer/A = attacking_item
src.manipulated_by = user
A.analyze_gases(src, user)
if (istype(attacking_item, /obj/item/toy/balloon))