Magic 8 (#376)
* - add: Flash protection for wiz hardsuit helmet. * - tweak: Cheaper wiz melee weapons. * - add: Rework alt lightning. * - fix: Timestop fixes. * - add: Don't end round on midround wizard death. * - tweak: Better shield. * - fix: Some fixes. * - fix: Fix wizard teleport pulling. * - add: Improve arc. * - add: Update knock. * - add: Update knock desc. * - add: Arcane Barrage.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Content.Server.Singularity.EntitySystems;
|
||||
|
||||
namespace Content.Server._White.Wizard.GravPulseOnStartup;
|
||||
|
||||
public sealed class GravPulseOnStartupSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly GravityWellSystem _gravityWell = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<GravPulseOnStartupComponent, ComponentStartup>(OnStartup);
|
||||
}
|
||||
|
||||
private void OnStartup(Entity<GravPulseOnStartupComponent> ent, ref ComponentStartup args)
|
||||
{
|
||||
var (uid, comp) = ent;
|
||||
_gravityWell.GravPulse(Transform(uid).Coordinates, comp.MaxRange, comp.MinRange, comp.BaseRadialAcceleration,
|
||||
comp.BaseTangentialAcceleration, comp.StunTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user