diff options
| author | historia <[not public]> | 2026-10-04 22:54:38 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-04 22:54:38 -0400 |
| commit | 8b78aa4cd930fde145959704ba7bdc0e57465b9b (patch) | |
| tree | e9f3b5fe691084514359fb420cb57f5e41791a3d /internal/casino | |
| parent | c5ee77c345b4cafe10cf29b6c17a69e78cc5c630 (diff) | |
| download | thehouseoficarus-8b78aa4cd930fde145959704ba7bdc0e57465b9b.tar.gz | |
feat: better ux in cash hunt
Diffstat (limited to 'internal/casino')
| -rw-r--r-- | internal/casino/cash_hunt.go | 3 |
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 } |
