From 299b5b67aa80ba2539d7a91c60943060b0426b45 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 04:45:05 -0400 Subject: fix: light mode casino card rendering, video poker machine names --- internal/casino/video_poker.go | 4 ++-- internal/casino/video_poker_config.go | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'internal/casino') diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go index 485d849..36fdc35 100644 --- a/internal/casino/video_poker.go +++ b/internal/casino/video_poker.go @@ -107,7 +107,7 @@ func (t *videoPokerTable) overview() string { return t.overviewLocked() } func (t *videoPokerTable) overviewLocked() string { - return t.settings.CabinetLabel() + " | denom 1/10/50 | one player | 1-5 coins per hand" + return t.settings.CabinetName() + " machine" } func (t *videoPokerTable) wagers(string) []WagerRow { return nil } func (t *videoPokerTable) hints(name string) []MenuCommand { @@ -221,7 +221,7 @@ func (t *videoPokerTable) leave(name string) []Event { return []Event{t.private(name, "Finish your hand with draw before leaving.")} } delete(t.players, name) - return []Event{t.private(name, "You leave video poker. Showing multipliers stay with the machine.")} + return []Event{t.private(name, "You leave video poker.")} } func (t *videoPokerTable) multiplierKey(p *pokerPlayer) string { diff --git a/internal/casino/video_poker_config.go b/internal/casino/video_poker_config.go index 918fed3..78a772d 100644 --- a/internal/casino/video_poker_config.go +++ b/internal/casino/video_poker_config.go @@ -130,20 +130,24 @@ func variantTitle(v string) string { } return v } -func (c VideoPokerConfig) CabinetLabel() string { +func (c VideoPokerConfig) CabinetName() string { c = c.Normalize() - label := "Classic Video Poker" switch c.Cabinet { case CabinetUXSingle: - label = "Ultimate X Single Line" + return "Ultimate X Single Line" case CabinetUXMulti: - label = "Ultimate X Multi-Hand" + return "Ultimate X Multi-Hand" case CabinetSuperTimesPay: - label = "Super Times Pay" + return "Super Times Pay" case CabinetHotRoll: - label = "Hot Roll" + return "Hot Roll" } - return label + " / " + c.Payout + " pay" + return "Classic Video Poker" +} + +func (c VideoPokerConfig) CabinetLabel() string { + c = c.Normalize() + return c.CabinetName() + " / " + c.Payout + " pay" } func (c VideoPokerConfig) Normalize() VideoPokerConfig { if c.Cabinet == "" { -- cgit v1.2.3