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/cmd_drop.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/cmd_drop.go') diff --git a/internal/game/cmd_drop.go b/internal/game/cmd_drop.go index 072f54a..5920696 100644 --- a/internal/game/cmd_drop.go +++ b/internal/game/cmd_drop.go @@ -21,7 +21,7 @@ func (g *Game) doDropAll(sess *net.Session) { sess.WriteLine("You have nothing to drop.") return } - sess.State = net.StateDropAllConfirm + sess.SetState(net.StateDropAllConfirm) sess.WriteLine(fmt.Sprintf("Drop all %d items? [y/N]", count)) } @@ -194,7 +194,7 @@ func (g *Game) executeDrop(sess *net.Session, args []string, rawInput string) { func (g *Game) handleDropAll(sess *net.Session, input string) { p := sess.Player if p == nil { - sess.State = net.StateGame + sess.SetState(net.StateGame) g.writePrompt(sess) return } @@ -202,7 +202,7 @@ func (g *Game) handleDropAll(sess *net.Session, input string) { g.cancelAction(p) input = strings.TrimSpace(strings.ToLower(input)) if input != "y" && input != "yes" { - sess.State = net.StateGame + sess.SetState(net.StateGame) g.writePrompt(sess) return } @@ -224,7 +224,7 @@ func (g *Game) handleDropAll(sess *net.Session, input string) { } g.saveCharacter(p) - sess.State = net.StateGame + sess.SetState(net.StateGame) if len(dropped) == 0 { sess.WriteLine("You have nothing to drop.") -- cgit v1.2.3