dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 8091ba65663651d27098c49c27436d26ad880cff
parent 1dd796afec031abda28c0337b0cca26aa36af639
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 15 Dec 2023 00:38:29 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -986,6 +986,7 @@ type PlayerGain struct { } const rakePct = 0.07 +const maxRake = 3000 func processPot(winners []GameResult, mainPot database.PokerChip, collectRake bool) (res []PlayerGain, rake database.PokerChip) { newPlayerGain := func(player *PokerPlayer, gain database.PokerChip, groupIdx int, handStr string) PlayerGain { @@ -999,7 +1000,7 @@ func processPot(winners []GameResult, mainPot database.PokerChip, collectRake bo if collectRake { rake = database.PokerChip(rakePct * float64(mainPot)) - rake = utils.MinInt(rake, 3000) // Max rake + rake = utils.MinInt(rake, maxRake) // Max rake mainPot -= rake }