aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_cook.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_cook.go')
-rw-r--r--internal/game/cmd_cook.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/cmd_cook.go b/internal/game/cmd_cook.go
index b27b293..9b76a84 100644
--- a/internal/game/cmd_cook.go
+++ b/internal/game/cmd_cook.go
@@ -102,6 +102,10 @@ func (g *Game) showCookMenu(sess *net.Session, p *player.Player, allRecipes []ac
}
if len(entries) == 1 {
+ if p.OptionBool("cook_all") {
+ g.startProductionFromRecipe(sess, p, &entries[0].Recipe, 0)
+ return
+ }
g.promptHowMany(sess, entries[0].Recipe.ID)
return
}