mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
22 lines
599 B
C#
22 lines
599 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 partial class RetakeVow : IAlertClick
|
|
{
|
|
public void AlertClicked(EntityUid player)
|
|
{
|
|
var entManager = IoCManager.Resolve<IEntityManager>();
|
|
|
|
if (entManager.TryGetComponent(player, out MimePowersComponent? mimePowers))
|
|
{
|
|
entManager.System<MimePowersSystem>().RetakeVow(player, mimePowers);
|
|
}
|
|
}
|
|
}
|
|
}
|