diff options
| author | historia <[not public]> | 2026-06-18 02:34:56 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-18 02:34:56 -0400 |
| commit | fae979b75e37b6ad57e57062a1b637a37ec87174 (patch) | |
| tree | 53daaa52b5f844b5b1a50a1bad909cafdb63eabc /internal/game/cmd_get.go | |
| parent | 1a9a486ca57f4de4fd1d8f00ee1a2a421f9d2273 (diff) | |
| download | thehouseoficarus-fae979b75e37b6ad57e57062a1b637a37ec87174.tar.gz | |
cleaned up various crafting menus
Diffstat (limited to 'internal/game/cmd_get.go')
| -rw-r--r-- | internal/game/cmd_get.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/game/cmd_get.go b/internal/game/cmd_get.go index 8237ec9..6f08892 100644 --- a/internal/game/cmd_get.go +++ b/internal/game/cmd_get.go @@ -27,10 +27,7 @@ func (g *Game) doGet(sess *net.Session, input string) { if len(matches) > 1 { unique := uniqueItemNames(matches) if len(unique) > 1 { - sess.WriteLine("Which one?") - for _, name := range unique { - sess.WriteLine(fmt.Sprintf(" - %s", name)) - } + g.showWhichOne(sess, matches) return } } @@ -149,10 +146,7 @@ func (g *Game) doGetAllNamed(sess *net.Session, input string) { if len(matches) > 1 { unique := uniqueItemNames(matches) if len(unique) > 1 { - sess.WriteLine("Which one?") - for _, name := range unique { - sess.WriteLine(fmt.Sprintf(" - %s", name)) - } + g.showWhichOne(sess, matches) return } } |
