diff options
| author | 2018-10-22 20:23:28 +0100 | |
|---|---|---|
| committer | 2018-10-22 20:23:28 +0100 | |
| commit | 69ebba27bb8dc40d44176072ce3ffd565e80ed0a (patch) | |
| tree | 576ceb6bf42228b1b796f522a640bbcb73399576 | |
| parent | When deleting a wallet, shift funds to default 'in' wallet instead of assuming a (diff) | |
| signature | ||
Roulette wins should include the payin
| -rw-r--r-- | modules/coins.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py index d272ee31..bdf87ffa 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -621,7 +621,9 @@ class Module(ModuleManager.BaseModule): if odds == 0: losses[bet] = bet_amounts[i] else: - winnings[bet] = [odds, bet_amounts[i]*odds] + win_amount = bet_amounts[i] + win_amount += bet_amounts[i]*odds + winnings[bet] = [odds, win_amount] winnings_str = ["%s for %s (%d to 1)" % (winnings[bet][1], bet, winnings[bet][0]) for bet in winnings.keys()] |
