mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user