Skip to content

Commit

Permalink
Борги не скользят на магбутсах
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Jan 10, 2025
1 parent 9366ca3 commit 75af9a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Shared/_Sunrise/Abilities/BorgMagBootSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public sealed class SharedBorgMagbootsSystem : EntitySystem
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<BorgMagbootsComponent, InventoryRelayedEvent<SlipAttemptEvent>>(OnSlipAttempt);
SubscribeLocalEvent<BorgMagbootsComponent, SlipAttemptEvent>(OnSlipAttempt);
SubscribeLocalEvent<BorgMagbootsComponent, ToggleBorgMagbootsActionEvent>(OnToggleAction);
SubscribeLocalEvent<BorgMagbootsComponent, RefreshMovementSpeedModifiersEvent>(OnRefreshMovementSpeedModifiers);
SubscribeLocalEvent<BorgMagbootsComponent, MapInitEvent>(OnInit);
Expand Down Expand Up @@ -74,9 +74,9 @@ public void UpdateMagbootEffects(EntityUid user, Entity<BorgMagbootsComponent> e
_alerts.ClearAlert(user, ent.Comp.MagbootsAlert);
}

private void OnSlipAttempt(EntityUid uid, BorgMagbootsComponent component, InventoryRelayedEvent<SlipAttemptEvent> args)
private void OnSlipAttempt(EntityUid uid, BorgMagbootsComponent component, SlipAttemptEvent args)
{
if (component.On)
args.Args.NoSlip = true;
args.NoSlip = true;
}
}

0 comments on commit 75af9a7

Please sign in to comment.