From 516fd29da423432ef6dfded21a984f1d15dcab1a Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 17:31:50 -0400 Subject: fix: slop casino and economy fixes --- internal/game/cmd_bank.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'internal/game/cmd_bank.go') diff --git a/internal/game/cmd_bank.go b/internal/game/cmd_bank.go index bb03869..76fefb7 100644 --- a/internal/game/cmd_bank.go +++ b/internal/game/cmd_bank.go @@ -265,10 +265,15 @@ func (g *Game) doBankWithdraw(sess *net.Session, input string) { return } - for _, e := range entries { - def, _ := g.ItemStore.Load(e.id) - if def != nil && def.MatchesName(input) { - matches = append(matches, e) + // Only fall back to fuzzy MatchesName when the prefix pass found nothing; + // running it unconditionally appended the same entries twice and printed a + // duplicated ambiguity list. + if len(matches) == 0 { + for _, e := range entries { + def, _ := g.ItemStore.Load(e.id) + if def != nil && def.MatchesName(input) { + matches = append(matches, e) + } } } -- cgit v1.2.3