Generic clothing speed modifiers + hardsuit slowdown (#7094)

This commit is contained in:
mirrorcult
2022-03-13 23:03:49 -07:00
committed by GitHub
parent 1652498830
commit 8005cf31bb
8 changed files with 136 additions and 34 deletions

View File

@@ -5,16 +5,5 @@ namespace Content.Client.Clothing
{
public sealed class MagbootsSystem : SharedMagbootsSystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<MagbootsComponent, RefreshMovementSpeedModifiersEvent>(OnRefreshMovespeed);
}
private void OnRefreshMovespeed(EntityUid uid, MagbootsComponent component, RefreshMovementSpeedModifiersEvent args)
{
args.ModifySpeed(component.WalkSpeedModifier, component.SprintSpeedModifier);
}
}
}