From 13db3e50cb6e29eedbf25416e5284bf08b0adefb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 24 Sep 2026 20:06:41 -0400 Subject: feat: casino table ux: aliases, rebet hints, deadline notifications, spectator mode --- internal/game/look_entities.go | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'internal/game/look_entities.go') 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" -- cgit v1.2.3