Skip to content

Commit

Permalink
Health analyzer UI unit correction (space-wizards#26903)
Browse files Browse the repository at this point in the history
Correct Kelvin displayed on health analyzer UI, use T0C constant.
  • Loading branch information
TsjipTsjip committed Apr 12, 2024
1 parent c8f75d9 commit 998bf45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 998bf45

Please sign in to comment.