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/game/casino.go | |
| parent | c5ee77c345b4cafe10cf29b6c17a69e78cc5c630 (diff) | |
| download | thehouseoficarus-8b78aa4cd930fde145959704ba7bdc0e57465b9b.tar.gz | |
feat: better ux in cash hunt
Diffstat (limited to 'internal/game/casino.go')
| -rw-r--r-- | internal/game/casino.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/casino.go b/internal/game/casino.go index 710090a..87b7176 100644 --- a/internal/game/casino.go +++ b/internal/game/casino.go @@ -813,7 +813,11 @@ func (g *Game) renderCasinoSnapshot(sess *net.Session, snapshot casino.Snapshot) size := sess.Player.OptionInt("card_size") switch s := snapshot.(type) { case *casino.CashHuntSnapshot: - return renderCashHunt(s, mode, unicode) + rtp := "" + if precision, ok := g.casinoEdgePrecision(sess); ok { + rtp = casinoRTP(s.Edge, precision) + } + return renderCashHunt(s, mode, unicode, rtp) case *casino.PlinkoSnapshot: return renderPlinko(s, mode, unicode) case *casino.PaiGowSnapshot: |
