aboutsummaryrefslogtreecommitdiff
path: root/internal/casino
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 04:45:05 -0400
committerhistoria <[not public]>2026-10-01 04:45:05 -0400
commit299b5b67aa80ba2539d7a91c60943060b0426b45 (patch)
tree9b2ddf8dac25c24eec74766330345b80e7ab5311 /internal/casino
parent0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (diff)
downloadthehouseoficarus-299b5b67aa80ba2539d7a91c60943060b0426b45.tar.gz
fix: light mode casino card rendering, video poker machine names
Diffstat (limited to 'internal/casino')
-rw-r--r--internal/casino/video_poker.go4
-rw-r--r--internal/casino/video_poker_config.go18
2 files changed, 13 insertions, 9 deletions
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 == "" {