- tweak: Tweak sleep timer. (#322)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user