fish-station/Content.Shared/_Sunrise/Mech/MechVulnerableToEMPComponent.cs
2025-07-18 01:31:40 +03:00

30 lines
728 B
C#

using Content.Shared.Damage;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._Sunrise.Mech;
/// <summary>
/// Делает мех уязвимым к электромагнитным импульсам
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class MechVulnerableToEMPComponent : Component
{
[ViewVariables]
public TimeSpan NextPulseTime;
[DataField]
public TimeSpan CooldownTime = TimeSpan.FromSeconds(6);
[DataField]
public DamageSpecifier EmpDamage = new()
{
DamageDict = new()
{
{ "Shock", 30f },
}
};
[DataField]
public EntProtoId EffectEMP = "EffectMechSparks";
}