Fixing health alerts not properly updating when players are damaged (#13480)

This commit is contained in:
Jezithyr
2023-01-14 23:52:20 -08:00
committed by GitHub
parent 6b2a132ceb
commit 2e0121b21e
14 changed files with 105 additions and 126 deletions

View File

@@ -19,7 +19,7 @@ public abstract class AlertsSystem : EntitySystem
public short GetSeverityRange(AlertType alertType)
{
var minSeverity = _typeToAlert[alertType].MinSeverity;
return (short)MathF.Min(minSeverity,_typeToAlert[alertType].MaxSeverity - minSeverity);
return (short)MathF.Max(minSeverity,_typeToAlert[alertType].MaxSeverity - minSeverity);
}
public short GetMaxSeverity(AlertType alertType)