Fix: Suit Sensors Vitals (#27259)

Vitals now functions correctly
This commit is contained in:
Skye
2024-04-23 04:57:09 -04:00
committed by GitHub
parent c4a6bcca5c
commit 32c1f8f8cd

View 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;
}