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/cmd_move.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/cmd_move.go')
| -rw-r--r-- | internal/game/cmd_move.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 72c3236..35cccba 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -60,7 +60,7 @@ func (g *Game) doMove(sess *net.Session, dir string, isWalk bool) { } else { p.PendingDangerDir = dir p.WalkSequence = nil - sess.State = net.StateDangerConfirm + sess.SetState(net.StateDangerConfirm) name := targetRoom.Hazard if hz, herr := g.World.LoadHazard(targetRoom.Hazard); herr == nil && hz.Name != "" { name = hz.Name @@ -250,14 +250,14 @@ func (g *Game) executeMove(sess *net.Session, args []string, rawInput string) { func (g *Game) handleDangerConfirm(sess *net.Session, input string) { p := sess.Player if p == nil { - sess.State = net.StateGame + sess.SetState(net.StateGame) g.writePrompt(sess) return } dir := p.PendingDangerDir choice := strings.TrimSpace(strings.ToLower(input)) - sess.State = net.StateGame + sess.SetState(net.StateGame) if choice != "" && choice != "y" && choice != "yes" { p.PendingDangerDir = "" |
