aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/cash_hunt.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/cash_hunt.go')
-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
}