21 lines
553 B
C#
21 lines
553 B
C#
using Content.Shared.Alert;
|
|
using Content.Server.Abilities.Mime;
|
|
|
|
namespace Content.Server.Alert.Click
|
|
{
|
|
///<summary>
|
|
/// Retake your mime vows
|
|
///</summary>
|
|
[DataDefinition]
|
|
public sealed class RetakeVow : IAlertClick
|
|
{
|
|
public void AlertClicked(EntityUid player)
|
|
{
|
|
if (IoCManager.Resolve<IEntityManager>().TryGetComponent<MimePowersComponent?>(player, out var mimePowers))
|
|
{
|
|
EntitySystem.Get<MimePowersSystem>().RetakeVow(player, mimePowers);
|
|
}
|
|
}
|
|
}
|
|
}
|