aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/slots.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-08-03 14:08:09 -0400
committerhistoria <[not public]>2026-08-03 14:08:09 -0400
commit612e429de438821ae8e099d6b54f87c11ff6c1b5 (patch)
treead6f9edf74339b9b50f9c7c2cd314ee7b6e04b2c /internal/casino/slots.go
parentf51424c90dbce7191a31b6e675818c985f0f4539 (diff)
downloadthehouseoficarus-612e429de438821ae8e099d6b54f87c11ff6c1b5.tar.gz
refactor: casino game slop refactor
Diffstat (limited to 'internal/casino/slots.go')
-rw-r--r--internal/casino/slots.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/casino/slots.go b/internal/casino/slots.go
index 9d53bb1..5c387c8 100644
--- a/internal/casino/slots.go
+++ b/internal/casino/slots.go
@@ -145,7 +145,7 @@ func evaluateSlot(grid [3][5]string, bet int, profile SlotProfile) (float64, []S
for _, symbol := range p.Symbols {
length, ways := matchingLength(grid, symbol.ID)
if length >= 3 && symbol.Payout[length] > 0 {
- payout := float64(bet) * symbol.Payout[length] * float64(ways) / 243.0
+ payout := float64(bet) * symbol.Payout[length] * float64(ways) / float64(p.Ways)
total += payout
wins = append(wins, SlotWin{Symbol: symbol.ID, Length: length, Ways: ways, Multiplier: symbol.Payout[length], Payout: payout})
}