mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
* add comp and apply to ninja gear * cleanup * requested changes --------- Co-authored-by: seanpimble <149889301+seanpimble@users.noreply.github.com>
19 lines
620 B
C#
19 lines
620 B
C#
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Emp;
|
|
|
|
/// <summary>
|
|
/// An entity with this component resists or is fully immune to EMPs.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(SharedEmpSystem))]
|
|
public sealed partial class EmpResistanceComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The proportion of the EMP effect that is resisted. 1.00 indicates full immunity while 0.00 indicates no resistance.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public FixedPoint2 Resistance = FixedPoint2.Zero;
|
|
}
|