* - add: Revive fast and furious aspect.

* - add: Update accents.

* - add: More buzzing for moth.

* - tweak: Change desc.

* - fix: Fixes.

* - add: RandomItemAspect.

* - fix: Fix arachnid socks.

* - tweak: Update desc part 2.
This commit is contained in:
Aviu00
2024-04-02 23:19:33 +09:00
committed by GitHub
parent fa00c5f528
commit 9f00a90f24
14 changed files with 213 additions and 33 deletions

View File

@@ -0,0 +1,26 @@
using Content.Shared.Movement.Systems;
namespace Content.Server._White.Other.FastAndFuriousSystem;
public sealed class FastAndFuriousSystem : EntitySystem
{
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeedModifierSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<FastAndFuriousComponent, MapInitEvent>(OnMapInit);
SubscribeLocalEvent<FastAndFuriousComponent, RefreshMovementSpeedModifiersEvent>(OnRefresh);
}
private void OnRefresh(Entity<FastAndFuriousComponent> ent, ref RefreshMovementSpeedModifiersEvent args)
{
args.ModifySpeed(ent.Comp.WalkModifier, ent.Comp.SprintModifier);
}
private void OnMapInit(Entity<FastAndFuriousComponent> ent, ref MapInitEvent args)
{
_movementSpeedModifierSystem.RefreshMovementSpeedModifiers(ent);
}
}