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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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