diff options
| author | historia <[not public]> | 2026-10-01 16:26:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 16:26:11 -0400 |
| commit | d762f8e1360cf38b8e11e69083c2dad59ec7130e (patch) | |
| tree | 4e684608e02b39b6b085e2a2ab9726bdae063240 /internal/casino/table.go | |
| parent | c94728c929045f7c1bdf0166df152d944e5f99bc (diff) | |
| download | thehouseoficarus-d762f8e1360cf38b8e11e69083c2dad59ec7130e.tar.gz | |
fix: trim extra info from games, A2345 support in pai gow, remove bet timers for single player games
Diffstat (limited to 'internal/casino/table.go')
| -rw-r--r-- | internal/casino/table.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/casino/table.go b/internal/casino/table.go index 88ffc62..b1beab9 100644 --- a/internal/casino/table.go +++ b/internal/casino/table.go @@ -1,7 +1,6 @@ package casino import ( - "fmt" "math/rand" ) @@ -61,13 +60,13 @@ func (b *tableBase) playerAction(name, publicMessage, privateMessage string) Eve return e } -// betMenuEvent builds the shared "place your bet" menu heading for a table -// game; only the command list differs per game. +// betMenuEvent builds the shared "place your bet" menu event for a table +// game; only the command list differs per game. The felt already names the +// game and its limits, so the menu carries just the balance and commands. func (b *tableBase) betMenuEvent(name string, commands []MenuCommand) Event { - heading := fmt.Sprintf("%s | Limits %s", b.Config.Label(), betRangeText(b.Config.MinBet, b.Config.MaxBet)) - e := b.private(name, heading) + e := b.private(name, "") e.Color = "casino_menu" - e.Menu = &MenuView{Heading: heading, ShowBalance: true, Commands: commands} + e.Menu = &MenuView{ShowBalance: true, Commands: commands} return e } |
