mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
20 lines
550 B
C#
20 lines
550 B
C#
using Content.Shared.Alert;
|
|
using Content.Server.Abilities.Mime;
|
|
|
|
namespace Content.Server.Alert.Click
|
|
{
|
|
///<summary>
|
|
/// Break your mime vows
|
|
///</summary>
|
|
[DataDefinition]
|
|
public sealed class BreakVow : IAlertClick
|
|
{
|
|
public void AlertClicked(EntityUid player)
|
|
{
|
|
if (IoCManager.Resolve<IEntityManager>().TryGetComponent<MimePowersComponent?>(player, out var mimePowers))
|
|
{
|
|
EntitySystem.Get<MimePowersSystem>().BreakVow(player, mimePowers);
|
|
}
|
|
}
|
|
}
|
|
}
|