aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_bank.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_bank.go')
-rw-r--r--internal/game/cmd_bank.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/game/cmd_bank.go b/internal/game/cmd_bank.go
index 15ce85f..bb03869 100644
--- a/internal/game/cmd_bank.go
+++ b/internal/game/cmd_bank.go
@@ -141,7 +141,10 @@ func (g *Game) doBankDeposit(sess *net.Session, input string) {
return
}
- if len(matches) > 1 {
+ // Multiple slots often hold the same item name (stacking does not always
+ // merge), so only treat distinct names as ambiguous; showWhichOne dedups
+ // by name and would otherwise print a one-line prompt with no valid reply.
+ if len(matches) > 1 && len(uniqueItemNames(matches)) > 1 {
g.showWhichOne(sess, matches)
return
}