From fea2cc6839ec3ee17940a2dea69622dc6f4deabf Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 21:35:55 -0400 Subject: fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts --- internal/game/game.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/game/game.go') diff --git a/internal/game/game.go b/internal/game/game.go index 7255042..fc6914f 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -297,7 +297,7 @@ func (g *Game) HandleSessionOnOwner(sess *net.Session, input string) { // would stall the whole world. Verify/hash on the caller's connection // goroutine, then submit one owner task for the (cheap) state // transition. - switch sess.State { + switch sess.State() { case net.StatePassword: g.handlePasswordOffOwner(sess, input) return @@ -328,7 +328,7 @@ func (g *Game) RunOnOwner(fn func()) { // already be on the owner goroutine (use HandleSessionOnOwner otherwise). func (g *Game) HandleSession(sess *net.Session, input string) { input = player.StripControlCharacters(input) - switch sess.State { + switch sess.State() { case net.StateAccountName: g.handleAccountName(sess, input) case net.StatePassword: @@ -574,7 +574,7 @@ func (g *Game) ProcessQueuedCommands() { isBusy := p.Action != nil || len(p.WalkSequence) > 0 || g.Combat.Get(p.Name) != nil || p.MoveTicks > 0 || isHiding isCasinoSpin := g.Casino != nil && g.Casino.MachineBusy(p.Name) _, isResting := g.restTimers[p.Name] - if !isResting && !isBusy && !isCasinoSpin && qc.Session.State == net.StateGame { + if !isResting && !isBusy && !isCasinoSpin && qc.Session.State() == net.StateGame { g.writePrompt(qc.Session) } } -- cgit v1.2.3