diff options
| author | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
| commit | a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch) | |
| tree | 89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/game/cmd_quit.go | |
| parent | 1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff) | |
| download | thehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz | |
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
Diffstat (limited to 'internal/game/cmd_quit.go')
| -rw-r--r-- | internal/game/cmd_quit.go | 3 |
1 files changed, 2 insertions, 1 deletions
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...") |
