aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/craps.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/casino/craps.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/casino/craps.go')
-rw-r--r--internal/casino/craps.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/casino/craps.go b/internal/casino/craps.go
index 0abf24b..208799e 100644
--- a/internal/casino/craps.go
+++ b/internal/casino/craps.go
@@ -51,7 +51,6 @@ type CrapsSnapshot struct {
Queue []string
Made, Seen []int
Bets []CrapsBetView
- Remaining int // legacy snapshot field; presentation uses ticks below
ShootIn int
DealerIn int
AutoRoll bool
@@ -585,7 +584,7 @@ func (t *crapsTable) unbetAllLocked(p *crapsPlayer) []Event {
}
// Keep the live wagers intact until the atomic refund succeeds. On a
// failed save they still belong to the next roll, or a later unbet retry.
- if err := p.Wallet.PayCredits(total, ids...); err != nil {
+ if err := p.Wallet.RefundStakes(ids...); err != nil {
return []Event{t.private(p.Name, "The house could not take down your bets. All wagers remain live; try unbet again.")}
}
for _, b := range live {