Revenant 2: Electric Boogaloo (#11510)

* revenant 2: electric boogaloo

* revevent

* oversights

* Update RevenantSystem.Abilities.cs

* names

* no shoote stouhg walls
This commit is contained in:
Nemanja
2022-09-28 22:30:48 -04:00
committed by GitHub
parent a9dd9257d8
commit 3c3ee60dd2
25 changed files with 427 additions and 203 deletions

View File

@@ -0,0 +1,31 @@
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Revenant.Components;
/// <summary>
/// This is used for tracking lights that are overloaded
/// and are about to zap a player.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class RevenantOverloadedLightsComponent : Component
{
[ViewVariables]
public EntityUid? Target;
[ViewVariables(VVAccess.ReadWrite)]
public float Accumulator = 0;
[ViewVariables(VVAccess.ReadWrite)]
public float ZapDelay = 3f;
[ViewVariables(VVAccess.ReadWrite)]
public float ZapRange = 4f;
[DataField("zapBeamEntityId",customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string ZapBeamEntityId = "LightningRevenant";
public float? OriginalEnergy;
public bool OriginalEnabled = false;
}