aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_ux.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-29 13:28:06 -0400
committerhistoria <[not public]>2026-09-29 13:28:06 -0400
commit9803facd4368420a5dce3af59c835e13cb015cf5 (patch)
tree4ecb75f9c88b16ae72d3573bef026d760eb8d7a8 /internal/game/casino_ux.go
parent13db3e50cb6e29eedbf25416e5284bf08b0adefb (diff)
downloadthehouseoficarus-9803facd4368420a5dce3af59c835e13cb015cf5.tar.gz
feat: roulette in domita casino
Diffstat (limited to 'internal/game/casino_ux.go')
-rw-r--r--internal/game/casino_ux.go13
1 files changed, 8 insertions, 5 deletions
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 {