adapt codebase

This commit is contained in:
Ed
2025-09-15 14:49:58 +03:00
parent 3409e0f752
commit 9425908ef2
11 changed files with 108 additions and 77 deletions

View File

@@ -39,7 +39,7 @@ public abstract class CP14SharedMagicEnergySystem : EntitySystem
if (ent.Comp.MagicAlert is null)
return;
_alerts.ClearAlert(ent, ent.Comp.MagicAlert.Value);
_alerts.ClearAlert(ent.Owner, ent.Comp.MagicAlert.Value);
}
private void OnExamined(Entity<CP14MagicEnergyExaminableComponent> ent, ref ExaminedEvent args)
@@ -68,7 +68,7 @@ public abstract class CP14SharedMagicEnergySystem : EntitySystem
(float) ent.Comp.MaxEnergy,
_alerts.GetMaxSeverity(ent.Comp.MagicAlert.Value));
_alerts.ShowAlert(ent, ent.Comp.MagicAlert.Value, (short) level);
_alerts.ShowAlert(ent.Owner, ent.Comp.MagicAlert.Value, (short) level);
}
public void ChangeEnergy(Entity<CP14MagicEnergyContainerComponent?> ent,