aboutsummaryrefslogtreecommitdiff
path: root/internal/casino
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-04 22:54:38 -0400
committerhistoria <[not public]>2026-10-04 22:54:38 -0400
commit8b78aa4cd930fde145959704ba7bdc0e57465b9b (patch)
treee9f3b5fe691084514359fb420cb57f5e41791a3d /internal/casino
parentc5ee77c345b4cafe10cf29b6c17a69e78cc5c630 (diff)
downloadthehouseoficarus-8b78aa4cd930fde145959704ba7bdc0e57465b9b.tar.gz
feat: better ux in cash hunt
Diffstat (limited to 'internal/casino')
-rw-r--r--internal/casino/cash_hunt.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/casino/cash_hunt.go b/internal/casino/cash_hunt.go
index 7c9752f..7c20a5a 100644
--- a/internal/casino/cash_hunt.go
+++ b/internal/casino/cash_hunt.go
@@ -56,6 +56,7 @@ type CashHuntSnapshot struct {
Squares [CashHuntSquares]int // never populated while hidden
Selected int // one-based; zero means not chosen
Odds []CashHuntPrizeOdds
+ Edge HouseEdge // configured return; shown when a house-edge item is carried
}
func (*CashHuntSnapshot) snapshot() {}
@@ -123,7 +124,7 @@ func (t *cashHuntTable) hints(n string) []MenuCommand {
return t.hintsLocked()
}
func (t *cashHuntTable) snapLocked(phase string) *CashHuntSnapshot {
- s := &CashHuntSnapshot{Phase: phase, Risk: cashHuntRisks[t.risk], Selected: t.selected}
+ s := &CashHuntSnapshot{Phase: phase, Risk: cashHuntRisks[t.risk], Selected: t.selected, Edge: t.Config.HouseEdge("")}
if phase == "preview" || phase == "result" {
s.Squares = t.squares
}