]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Health analyzer UI unit correction (#26903)
authorTsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com>
Fri, 12 Apr 2024 20:47:44 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2024 20:47:44 +0000 (16:47 -0400)
Correct Kelvin displayed on health analyzer UI, use T0C constant.

Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs

index 1d8d415bab96ac815f7f7d305230272ce279c558..0cb3ad144d703a7d17a7dd028212187f099159bf 100644 (file)
@@ -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 @@ namespace Content.Client.HealthAnalyzer.UI
             );
 
             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",