* - 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.
23 lines
734 B
C#
23 lines
734 B
C#
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);
|
|
}
|
|
}
|