diff options
| author | historia <[not public]> | 2026-06-17 17:34:40 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-17 17:34:40 -0400 |
| commit | eef5ddaa94f8cff6010d092c30fed53d2be01524 (patch) | |
| tree | 3026ebb5fe34fd778c5f8f6b6d23aec337a99b99 /internal/game/cmd_wear.go | |
| parent | 04998e3e4eff075eee6d00850c752c3c73ab66b5 (diff) | |
| download | thehouseoficarus-eef5ddaa94f8cff6010d092c30fed53d2be01524.tar.gz | |
feat: began implementing smithing, ground item display fixes.
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 { |
