diff options
| author | historia <[not public]> | 2026-10-02 01:54:37 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 01:54:37 -0400 |
| commit | d3a305d1d7962f82af2397760cf8008758bddd1d (patch) | |
| tree | f91f0deb342c20f2993e5366f772c3432648f426 /internal/casino/manager.go | |
| parent | 8eea0e4e06a4aaa6a18edabd9897d3bea1ea2ca0 (diff) | |
| download | thehouseoficarus-d3a305d1d7962f82af2397760cf8008758bddd1d.tar.gz | |
feat: better 'list' bet table, multiple bets in baccarat
Diffstat (limited to 'internal/casino/manager.go')
| -rw-r--r-- | internal/casino/manager.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/casino/manager.go b/internal/casino/manager.go index 2162656..5fa6439 100644 --- a/internal/casino/manager.go +++ b/internal/casino/manager.go @@ -285,6 +285,15 @@ func (m *Manager) Rebet(roomID int, tableID, name string) (string, int) { return "", 0 } +// RebetAll repeats every remembered wager for games that keep several; other +// games return nil and keep their single-wager rebet path. +func (m *Manager) RebetAll(roomID int, tableID, name string, wallet Wallet) []Event { + if table := m.Table(roomID, tableID); table != nil { + return table.RebetAll(name, wallet) + } + return nil +} + // MarkDisconnected removes the player from every table and machine, // forfeiting any wager they had committed, so seats free up immediately. func (m *Manager) MarkDisconnected(name string) []Event { |
