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:
@@ -0,0 +1,28 @@
|
||||
using Content.Shared.Revenant.Components;
|
||||
|
||||
namespace Content.Shared.Revenant.EntitySystems;
|
||||
|
||||
/// <summary>
|
||||
/// This handles...
|
||||
/// </summary>
|
||||
public abstract class SharedRevenantOverloadedLightsSystem : EntitySystem
|
||||
{
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
base.Update(frameTime);
|
||||
|
||||
foreach (var comp in EntityQuery<RevenantOverloadedLightsComponent>())
|
||||
{
|
||||
comp.Accumulator += frameTime;
|
||||
|
||||
|
||||
if (comp.Accumulator < comp.ZapDelay)
|
||||
continue;
|
||||
|
||||
OnZap(comp);
|
||||
RemComp(comp.Owner, comp);
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void OnZap(RevenantOverloadedLightsComponent component);
|
||||
}
|
||||
Reference in New Issue
Block a user