aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/table_ux.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/table_ux.go')
-rw-r--r--internal/casino/table_ux.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/casino/table_ux.go b/internal/casino/table_ux.go
index 569128b..c7b9fd1 100644
--- a/internal/casino/table_ux.go
+++ b/internal/casino/table_ux.go
@@ -257,11 +257,16 @@ func (t *baccaratTable) status(name string) []Event {
t.mu.Lock()
defer t.mu.Unlock()
e := t.private(name, "")
+ p := t.players.get(name)
if text := t.seatStatusLocked(name); text != "" {
+ // Report every committed stake, not just the main wager.
+ if p != nil && p.HasBet && len(p.sides) > 0 && strings.HasPrefix(text, "Wager committed") {
+ text = fmt.Sprintf("Wager committed: %d", p.totalStaked())
+ }
e.Message = text
}
events := []Event{e}
- if p := t.players.get(name); p != nil && !p.HasBet {
+ if p != nil && !p.HasBet {
events = append(events, t.menuEvent(name))
}
return events