Roulette wins should include the payin

This commit is contained in:
jesopo 2018-10-22 20:23:28 +01:00
parent 046e8935df
commit 69ebba27bb

View file

@ -621,7 +621,9 @@ class Module(ModuleManager.BaseModule):
if odds == 0: if odds == 0:
losses[bet] = bet_amounts[i] losses[bet] = bet_amounts[i]
else: 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_str = ["%s for %s (%d to 1)" % (winnings[bet][1], bet,
winnings[bet][0]) for bet in winnings.keys()] winnings[bet][0]) for bet in winnings.keys()]