diff options
| author | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
| commit | fea2cc6839ec3ee17940a2dea69622dc6f4deabf (patch) | |
| tree | 9d893525ca20d2cc920e9e866f84f71b605d8ae9 /internal/game/game.go | |
| parent | 35ddd0ad2215760bb1d3dc7724480f179ea33fa6 (diff) | |
| download | thehouseoficarus-fea2cc6839ec3ee17940a2dea69622dc6f4deabf.tar.gz | |
fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) } } |
