mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* comment out borg ion damage * remove ion damage from disabler * actually nuke it * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Additional removals. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
32 lines
933 B
C#
32 lines
933 B
C#
using Content.Shared.Damage; // DeltaV - EMP damage
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
namespace Content.Shared.Trigger.Components.Effects;
|
|
|
|
/// <summary>
|
|
/// Will cause an EMP at the entity's location when triggered.
|
|
/// If TargetUser is true then it will be spawned at their position.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class EmpOnTriggerComponent : BaseXOnTriggerComponent
|
|
{
|
|
/// <summary>
|
|
/// EMP range.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float Range = 1.0f;
|
|
|
|
/// <summary>
|
|
/// How much energy (in Joules) will be consumed per battery in range.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float EnergyConsumption;
|
|
|
|
/// <summary>
|
|
/// How long it disables targets.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public TimeSpan DisableDuration = TimeSpan.FromSeconds(60);
|
|
}
|