- tweak: Tweak sleep timer. (#322)

This commit is contained in:
Aviu00
2024-06-01 12:42:16 +00:00
committed by GitHub
parent 5a705ac195
commit 959b061da3

View File

@@ -42,7 +42,7 @@ namespace Content.Server.Bed.Sleep
_actionsSystem.AddAction(uid, ref component.WakeAction, WakeActionId, uid);
// TODO remove hardcoded time.
_actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(2f));
_actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(15f)); // WD EDIT
}
private void OnShutdown(EntityUid uid, SleepingComponent component, ComponentShutdown args)
@@ -88,4 +88,4 @@ public sealed partial class WakeActionEvent : InstantActionEvent;
public sealed class SleepStateChangedEvent(bool fellAsleep) : EntityEventArgs
{
public bool FellAsleep = fellAsleep;
}
}