diff options
| author | historia <[not public]> | 2026-10-01 04:45:05 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 04:45:05 -0400 |
| commit | 299b5b67aa80ba2539d7a91c60943060b0426b45 (patch) | |
| tree | 9b2ddf8dac25c24eec74766330345b80e7ab5311 /internal/casino/video_poker_config.go | |
| parent | 0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (diff) | |
| download | thehouseoficarus-299b5b67aa80ba2539d7a91c60943060b0426b45.tar.gz | |
fix: light mode casino card rendering, video poker machine names
Diffstat (limited to 'internal/casino/video_poker_config.go')
| -rw-r--r-- | internal/casino/video_poker_config.go | 18 |
1 files changed, 11 insertions, 7 deletions
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 == "" { |
