From 9803facd4368420a5dce3af59c835e13cb015cf5 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 29 Sep 2026 13:28:06 -0400 Subject: feat: roulette in domita casino --- internal/game/casino_ux.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'internal/game/casino_ux.go') diff --git a/internal/game/casino_ux.go b/internal/game/casino_ux.go index fdd4533..d5ed67e 100644 --- a/internal/game/casino_ux.go +++ b/internal/game/casino_ux.go @@ -107,10 +107,7 @@ func (g *Game) executeTableStatus(sess *net.Session, args []string, _ string) { return } if len(args) > 0 && args[0] == "rules" { - text := t.Config.BlackjackRulesText() - if t.Config.Game == casino.GameBaccarat { - text = t.Config.BaccaratRulesText() - } + text := t.Config.RulesText() sess.WriteLine(g.colorize(sess, "casino_action", text)) return } @@ -154,7 +151,7 @@ func (g *Game) executeWatch(sess *net.Session, args []string, _ string) { } c, ok := resolveCasinoChoice(choices, input) if !ok { - sess.WriteLine("Choose a table to watch: watch blackjack or watch baccarat.") + sess.WriteLine("Choose a table to watch: watch blackjack, watch baccarat, or watch roulette.") return } t, ok := g.casinoTable(sess.Player.RoomID, c.address) @@ -181,6 +178,12 @@ func (g *Game) seesCasinoDetails(sess *net.Session, event casino.Event) bool { // Settlement may have removed a queued departure before these events // are delivered. Their own final cards must still be visible. switch s := event.Snapshot.(type) { + case *casino.RouletteSnapshot: + for _, name := range s.Players { + if name == sess.Player.Name { + return true + } + } case *casino.BlackjackSnapshot: for _, p := range s.Players { if p.Name == sess.Player.Name { -- cgit v1.2.3