* fix #746

* fix #745

* fix #747

* fix #744

* fix #743

* fix #741

* fix #722
This commit is contained in:
Ed
2025-01-13 12:54:46 +03:00
committed by GitHub
parent f5edf03bf6
commit 368839dd68
10 changed files with 34 additions and 37 deletions

View File

@@ -135,7 +135,9 @@ public partial class SharedCP14MagicEnergySystem : EntitySystem
if (ent.Comp.MagicAlert == null)
return;
var level = ContentHelpers.RoundToLevels(MathF.Max(0f, (float) ent.Comp.Energy), (float) ent.Comp.MaxEnergy, 11);
var level = ContentHelpers.RoundToLevels(MathF.Max(0f, (float)ent.Comp.Energy),
(float)ent.Comp.MaxEnergy,
_alerts.GetMaxSeverity(ent.Comp.MagicAlert.Value));
_alerts.ShowAlert(ent, ent.Comp.MagicAlert.Value, (short)level);
}
}