Mime Powers (Vow + Invisible Wall) (#7653)
This commit is contained in:
20
Content.Server/Alert/Click/BreakVow.cs
Normal file
20
Content.Server/Alert/Click/BreakVow.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
20
Content.Server/Alert/Click/RetakeVow.cs
Normal file
20
Content.Server/Alert/Click/RetakeVow.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user