2022-04-28 23:41:03 -04:00
|
|
|
using Content.Shared.Alert;
|
|
|
|
|
using Content.Server.Abilities.Mime;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Alert.Click
|
|
|
|
|
{
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Break your mime vows
|
|
|
|
|
///</summary>
|
|
|
|
|
[DataDefinition]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class BreakVow : IAlertClick
|
2022-04-28 23:41:03 -04:00
|
|
|
{
|
|
|
|
|
public void AlertClicked(EntityUid player)
|
|
|
|
|
{
|
2022-10-17 02:49:22 +11:00
|
|
|
var entManager = IoCManager.Resolve<IEntityManager>();
|
|
|
|
|
|
2023-08-24 03:10:55 -07:00
|
|
|
if (entManager.TryGetComponent(player, out MimePowersComponent? mimePowers))
|
2022-04-28 23:41:03 -04:00
|
|
|
{
|
2022-10-17 02:49:22 +11:00
|
|
|
entManager.System<MimePowersSystem>().BreakVow(player, mimePowers);
|
2022-04-28 23:41:03 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|