From: Skye <57879983+Rainbeon@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:57:09 +0000 (-0400) Subject: Fix: Suit Sensors Vitals (#27259) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=32c1f8f8cd2cff03d8de11be139cfd46f552c2ea;p=space-station-14.git Fix: Suit Sensors Vitals (#27259) Vitals now functions correctly --- diff --git a/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs b/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs index e3ca466b08..27539dd22b 100644 --- a/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs +++ b/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs @@ -24,7 +24,7 @@ public sealed class SuitSensorStatus public bool IsAlive; public int? TotalDamage; public int? TotalDamageThreshold; - public float? DamagePercentage => TotalDamageThreshold == null || TotalDamage == null ? null : TotalDamage / TotalDamageThreshold; + public float? DamagePercentage => TotalDamageThreshold == null || TotalDamage == null ? null : TotalDamage / (float) TotalDamageThreshold; public NetCoordinates? Coordinates; }