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