diff options
| author | historia <[not public]> | 2026-09-24 20:06:41 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-24 20:07:31 -0400 |
| commit | 13db3e50cb6e29eedbf25416e5284bf08b0adefb (patch) | |
| tree | d5e9b99030b25cc7fc102288b694c133f8832f84 /internal/game/look_entities.go | |
| parent | d114c747a7672c7e4daab3a5b5f1b2f066ebc912 (diff) | |
| download | thehouseoficarus-13db3e50cb6e29eedbf25416e5284bf08b0adefb.tar.gz | |
feat: casino table ux: aliases, rebet hints, deadline notifications, spectator mode
Diffstat (limited to 'internal/game/look_entities.go')
| -rw-r--r-- | internal/game/look_entities.go | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/internal/game/look_entities.go b/internal/game/look_entities.go index 1239f31..8bf762d 100644 --- a/internal/game/look_entities.go +++ b/internal/game/look_entities.go @@ -230,8 +230,21 @@ func (g *Game) showRoomCasinos(sess *net.Session, room *world.Room) []string { } var lines []string for _, table := range room.CasinoTables { - name := casinoGameLabel(table.Game) + " table" - lines = append(lines, fmt.Sprintf("A %s is here.", g.colorize(sess, "casino_action", name))) + cfg := table.Normalize() + label := fmt.Sprintf("%s | Limits %d–%d | 0/%d seated | Betting open", cfg.Label(), cfg.MinBet, cfg.MaxBet, cfg.MaxPlayers) + if g.Casino != nil { + if live := g.Casino.Table(room.ID, table.ID); live != nil { + label = g.casinoTimeText(live.Overview()) + } + } + alias := string(table.Game) + if table.Game == casino.GameBlackjack { + alias = "bj" + } + if table.Game == casino.GameBaccarat { + alias = "bac" + } + lines = append(lines, g.colorize(sess, "casino_action", label), " "+g.colorize(sess, "command", "play "+alias)+" Join | "+g.colorize(sess, "command", "watch "+alias)+" Spectate") } for _, machine := range room.CasinoMachines { label := casinoGameLabel(machine.Game) + " machine" |
