add StartDelay bool to actions (#33026)

* add StartDelay bool to actions

* forgot summary
This commit is contained in:
lzk
2024-10-28 23:21:14 +01:00
committed by GitHub
parent 7ac2d9a8bd
commit dc3a2f6d28
6 changed files with 12 additions and 11 deletions

View File

@@ -130,9 +130,6 @@ public sealed partial class SleepingSystem : EntitySystem
RaiseLocalEvent(ent, ref ev);
_blindableSystem.UpdateIsBlind(ent.Owner);
_actionsSystem.AddAction(ent, ref ent.Comp.WakeAction, WakeActionId, ent);
// TODO remove hardcoded time.
_actionsSystem.SetCooldown(ent.Comp.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(2f));
}
private void OnSpeakAttempt(Entity<SleepingComponent> ent, ref SpeakAttemptEvent args)