Skip to content

Commit

Permalink
Fix rest waking action finally
Browse files Browse the repository at this point in the history
  • Loading branch information
vaketola committed Feb 22, 2024
1 parent 8bb0c80 commit 90363d0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ private void Rest(EntityUid uid, ShadowkinRestPowerComponent component, Shadowki
// Sleepy time
_entity.EnsureComponent<ForcedSleepingComponent>(args.Performer);
// No waking up normally (it would do nothing)
// Not sure what needs to be done here with the refactor
// _actions.RemoveAction(args.Performer, component.WakeAction); // ??
// _actions.RemoveAction(args.Performer, new InstantAction(_prototype.Index<InstantActionPrototype>("Wake")));
if (_entity.TryGetComponent<SleepingComponent>(uid, out var sleepingComponent))
_actions.RemoveAction(args.Performer, sleepingComponent.WakeAction);

_power.TryAddMultiplier(args.Performer, 1.5f);
// No action cooldown
Expand Down

0 comments on commit 90363d0

Please sign in to comment.