Skip to content

Commit

Permalink
Merge pull request #78 from XavierSomething/CrewMonitorFix
Browse files Browse the repository at this point in the history
Fixed Crew Monitor From Not Displaying Correct Status of Damage.
  • Loading branch information
FoxxoTrystan authored Aug 5, 2024
2 parents 3e37566 + 1254ca6 commit f05e582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public SuitSensorStatus(NetEntity suitSensorUid, string name, string job, string
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;
}

Expand Down

0 comments on commit f05e582

Please sign in to comment.