Mime Powers (Vow + Invisible Wall) (#7653)

This commit is contained in:
Rane
2022-04-28 23:41:03 -04:00
committed by GitHub
parent f74a47b7aa
commit ce186e6cc1
12 changed files with 312 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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);
}
}
}
}