Cult spells update (#607)
* - add: CultSystem.BloodSpells. * - add: Cleanup.
This commit is contained in:
21
Content.Server/_White/Cult/UI/OpenBloodSpellsUi.cs
Normal file
21
Content.Server/_White/Cult/UI/OpenBloodSpellsUi.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Content.Server.EUI;
|
||||
using Content.Shared.Alert;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server._White.Cult.UI;
|
||||
|
||||
[UsedImplicitly, DataDefinition]
|
||||
public sealed partial class OpenBloodSpellsUi : IAlertClick
|
||||
{
|
||||
public void AlertClicked(EntityUid player)
|
||||
{
|
||||
var euiManager = IoCManager.Resolve<EuiManager>();
|
||||
var entManager = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
if (!entManager.TryGetComponent(player, out ActorComponent? actor))
|
||||
return;
|
||||
|
||||
euiManager.OpenEui(new CultBloodSpellsEui(player, entManager), actor.PlayerSession);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user