double hp and mana alerts (#749)

* double hp and mana alerts

* Update alerts.yml

---------

Co-authored-by: Ed <edwardxperia2000@gmail.com>
This commit is contained in:
vladimir.s
2025-01-13 01:05:19 +05:00
committed by GitHub
parent b5f70616c3
commit f5edf03bf6
25 changed files with 294 additions and 104 deletions

View File

@@ -135,7 +135,7 @@ 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, 6);
var level = ContentHelpers.RoundToLevels(MathF.Max(0f, (float) ent.Comp.Energy), (float) ent.Comp.MaxEnergy, 11);
_alerts.ShowAlert(ent, ent.Comp.MagicAlert.Value, (short)level);
}
}