diff options
Diffstat (limited to 'internal/game/casino_ux.go')
| -rw-r--r-- | internal/game/casino_ux.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/game/casino_ux.go b/internal/game/casino_ux.go index 450480f..a2e7330 100644 --- a/internal/game/casino_ux.go +++ b/internal/game/casino_ux.go @@ -129,20 +129,14 @@ func (g *Game) executeTableStatus(sess *net.Session, args []string, _ string) { } } if len(args) > 0 { + // Reuse the game's current-state menu instead of advertising actions + // (insurance, split, rebet, etc.) that may not be legal right now. + g.emitCasinoEvents(t.Status(sess.Player.Name)) commands := []casino.MenuCommand{ - {Command: "bet / rebet", Desc: "Repeat your previous wager"}, - {Command: "bet min / bet max", Desc: "Use the table minimum / affordable maximum"}, - {Command: "sitout", Desc: "Skip future rounds; bet to rejoin"}, - {Command: "stop", Desc: "Leave now, or after your committed round"}, {Command: "option casino_display compact", Desc: "Compact action hints (detailed for full command menus)"}, {Command: "table rules", Desc: "Review this table’s rules"}, {Command: "help casino", Desc: "Quick guides to all casino games"}, } - if t.Config.Game == casino.GameBlackjack { - commands = append(commands, - casino.MenuCommand{Command: "h / st / dd / sp", Desc: "Hit / stand / double / split (s and d still move)"}, - casino.MenuCommand{Command: "insurance / decline", Desc: "Answer the insurance offer explicitly"}) - } sess.WriteLine(g.renderCasinoCommands(sess, "", "Table controls", commands)) } } |
