diff options
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" |
