From 066e34148cc8482af8df3cdff54fcc2a97443cff Mon Sep 17 00:00:00 2001
From: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
Date: Sat, 3 Jul 2021 13:46:43 -0400
Subject: [PATCH] Makes tanks display their max pressure and only return their
analysed contents once (#59946)
---
code/modules/atmospherics/machinery/components/tank.dm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/code/modules/atmospherics/machinery/components/tank.dm b/code/modules/atmospherics/machinery/components/tank.dm
index bb3f9f5119a..88fbb0d2cc1 100644
--- a/code/modules/atmospherics/machinery/components/tank.dm
+++ b/code/modules/atmospherics/machinery/components/tank.dm
@@ -112,6 +112,7 @@
. += "A pipe port can be opened with a [wrench_hint]."
else
. += "The pipe port can be moved or closed with a [wrench_hint]."
+ . += "A holographic sticker on it says that its maximum safe pressure is: [siunit_pressure(max_pressure, 0)]."
/obj/machinery/atmospherics/components/tank/set_custom_materials(list/materials, multiplier)
. = ..()
@@ -147,6 +148,9 @@
///////////////////////////////////////////////////////////////////
// Pipenet stuff
+/obj/machinery/atmospherics/components/tank/return_analyzable_air()
+ return air_contents
+
/obj/machinery/atmospherics/components/tank/returnAirsForReconcilation(datum/pipeline/requester)
. = ..()
if(!air_contents)