diff options
Diffstat (limited to 'internal/game/cmd_wear.go')
| -rw-r--r-- | internal/game/cmd_wear.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/game/cmd_wear.go b/internal/game/cmd_wear.go index cbc2ff3..8910e75 100644 --- a/internal/game/cmd_wear.go +++ b/internal/game/cmd_wear.go @@ -31,6 +31,15 @@ func (g *Game) doWear(sess *net.Session, input string) { return } + unique := uniqueItemNames(matches) + if len(unique) > 1 { + sess.WriteLine("Equip what?") + for _, name := range unique { + sess.WriteLine(fmt.Sprintf(" - %s", name)) + } + return + } + match := matches[0] slot := p.InvSlot(match.Slot) if slot == nil { |
