]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Suit Sensors Vitals (#27259)
authorSkye <57879983+Rainbeon@users.noreply.github.com>
Tue, 23 Apr 2024 08:57:09 +0000 (04:57 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2024 08:57:09 +0000 (10:57 +0200)
Vitals now functions correctly

Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs

index e3ca466b085d20e53924caac7c9d0fa9a61f984f..27539dd22bdcc846685916271ef280b2418c9bd8 100644 (file)
@@ -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;
 }