From a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 14 Jun 2026 22:38:23 -0400 Subject: feat: fractional ticks and server game_speed implemented. potentially insanely janky. --- internal/game/cmd_quit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/game/cmd_quit.go') diff --git a/internal/game/cmd_quit.go b/internal/game/cmd_quit.go index 51e1fee..90e7019 100644 --- a/internal/game/cmd_quit.go +++ b/internal/game/cmd_quit.go @@ -15,10 +15,11 @@ func (g *Game) doQuit(sess *net.Session) { } g.CancelAction(p) + p.ActionState = &ActionState{Type: ActionResting} g.cancelRest(p.Name) ticksLeft := 10 - id := g.Ticks.Subscribe(1, func() bool { + id := g.Ticks.Subscribe(g.computeTicks(1), func() bool { switch ticksLeft { case 10: sess.WriteLine("You sit down to rest...") -- cgit v1.2.3