From 0b0b25222b3131ada79ff78c28eb8bf07d977deb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 15 Sep 2026 15:35:52 -0400 Subject: feat: single-owner game state, transactional lifecycle, durable money on server stop --- internal/game/cmd_quit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/game/cmd_quit.go') diff --git a/internal/game/cmd_quit.go b/internal/game/cmd_quit.go index 0eb8fb9..80ad351 100644 --- a/internal/game/cmd_quit.go +++ b/internal/game/cmd_quit.go @@ -30,7 +30,7 @@ func (g *Game) doQuit(sess *net.Session) { g.broadcastAction(sess, "%s sits down to rest.", p.Name) ticksLeft := 10 - id := g.Ticks.Subscribe(engine.ToTicks(1), func() bool { + id := g.SubscribeTicks(engine.ToTicks(1), func() bool { switch ticksLeft { case 10: sess.WriteLine("You sit down to rest...") -- cgit v1.2.3