From 998bf453684ed91ae5971e41be72820c87b441ef Mon Sep 17 00:00:00 2001 From: TsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com> Date: Fri, 12 Apr 2024 22:47:44 +0200 Subject: [PATCH] Health analyzer UI unit correction (#26903) Correct Kelvin displayed on health analyzer UI, use T0C constant. --- Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs index 1d8d415bab96ac..0cb3ad144d703a 100644 --- a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs +++ b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs @@ -1,5 +1,6 @@ using System.Linq; using System.Numerics; +using Content.Shared.Atmos; using Content.Client.UserInterface.Controls; using Content.Shared.Damage; using Content.Shared.Damage.Prototypes; @@ -79,7 +80,7 @@ public void Populate(HealthAnalyzerScannedUserMessage msg) ); Temperature.Text = Loc.GetString("health-analyzer-window-entity-temperature-text", - ("temperature", float.IsNaN(msg.Temperature) ? "N/A" : $"{msg.Temperature - 273f:F1} °C ({msg.Temperature:F1} °K)") + ("temperature", float.IsNaN(msg.Temperature) ? "N/A" : $"{msg.Temperature - Atmospherics.T0C:F1} °C ({msg.Temperature:F1} K)") ); BloodLevel.Text = Loc.GetString("health-analyzer-window-entity-blood-level-text",