aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 05:05:11 -0400
committerhistoria <[not public]>2026-10-01 05:05:11 -0400
commitd4eae333a8d8a96452bbf3617aa85b50466c11a7 (patch)
tree90d4cf075fe5467b35e5cc53ff3ee30fc4ee1feb /internal/casino/video_poker.go
parent299b5b67aa80ba2539d7a91c60943060b0426b45 (diff)
downloadthehouseoficarus-d4eae333a8d8a96452bbf3617aa85b50466c11a7.tar.gz
feat: concise table/machine names, casino command shortcuts, remove payout video poker command
Diffstat (limited to 'internal/casino/video_poker.go')
-rw-r--r--internal/casino/video_poker.go21
1 files changed, 1 insertions, 20 deletions
diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go
index 36fdc35..8c9f66c 100644
--- a/internal/casino/video_poker.go
+++ b/internal/casino/video_poker.go
@@ -128,7 +128,6 @@ func (t *videoPokerTable) hintsLocked(name string) []MenuCommand {
} else {
commands = append(commands,
MenuCommand{Command: "game <name>", Desc: t.settings.GameChoices()},
- MenuCommand{Command: "payout low|normal|full", Desc: "Set the cabinet-wide pay quality"},
MenuCommand{Command: "denom <1|10|50>", Desc: "Credits per coin"},
MenuCommand{Command: "hands <count>", Desc: "Supported hand counts are announced by hands"},
)
@@ -406,24 +405,6 @@ func (t *videoPokerTable) action(name, action string) []Event {
p.config, p.variant, p.hands = cfg, variant, CabinetHandCounts(cfg.Cabinet, variant)[0]
p.next, p.current, p.lines, p.remaining, p.result = nil, nil, nil, nil, ""
return t.statusLocked(name, true)
- case "payout":
- if len(fields) != 2 {
- break
- }
- tier := strings.ToLower(fields[1])
- if tier != "low" && tier != "normal" && tier != "full" {
- break
- }
- cfg := (VideoPokerConfig{Cabinet: p.config.Cabinet, Payout: tier, Variant: p.variant}).Normalize()
- if err := cfg.Validate(); err != nil {
- return []Event{t.private(name, err.Error())}
- }
- t.settings.Payout = tier
- t.settings.PayTable = ""
- t.settings = t.settings.Normalize()
- p.config = cfg
- p.next, p.current, p.lines, p.remaining, p.result = nil, nil, nil, nil, ""
- return t.statusLocked(name, true)
case "feature":
if len(fields) != 2 || cabinetFeature(t.settings.Cabinet) == "" || fields[1] != "on" && fields[1] != "off" {
break
@@ -431,7 +412,7 @@ func (t *videoPokerTable) action(name, action string) []Event {
p.featureOn = fields[1] == "on"
return t.statusLocked(name, false)
}
- return []Event{t.private(name, "Use bet [1-4|max], deal, game <name>, payout low|normal|full, denom 1|10|50, hands <count>, paytable, or feature on|off on a bonus cabinet.")}
+ return []Event{t.private(name, "Use bet [1-4|max], deal, game <name>, denom 1|10|50, hands <count>, paytable, or feature on|off on a bonus cabinet.")}
}
func (t *videoPokerTable) drawLocked(name string, p *pokerPlayer) []Event {