forked from MarseyWorld/MarseyWorld
Skip winners on 0 and 00
parent
947d097087
commit
a7ab4523de
|
@ -157,8 +157,13 @@ def spin_roulette_wheel():
|
||||||
|
|
||||||
if len(participants) > 0:
|
if len(participants) > 0:
|
||||||
number = randint(0, 37) # 37 is 00
|
number = randint(0, 37) # 37 is 00
|
||||||
winners, payouts, rewards_by_game_id = determine_roulette_winners(
|
|
||||||
number, bets)
|
if number > 0 and number < 37: # 0 and 00 do not pay anything
|
||||||
|
winners, payouts, rewards_by_game_id = determine_roulette_winners(number, bets)
|
||||||
|
else:
|
||||||
|
winners = []
|
||||||
|
payouts = {}
|
||||||
|
rewards_by_game_id = {}
|
||||||
|
|
||||||
# Pay out to the winners and send a notification.
|
# Pay out to the winners and send a notification.
|
||||||
for user_id in winners:
|
for user_id in winners:
|
||||||
|
|
|
@ -129,6 +129,8 @@
|
||||||
<i class="far fa-user fa-sm mr-1"></i>
|
<i class="far fa-user fa-sm mr-1"></i>
|
||||||
<span class="board-chat-count">0</span>
|
<span class="board-chat-count">0</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% include "casino/roulette_screen.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="chat-line-template" class="d-none">
|
<div id="chat-line-template" class="d-none">
|
||||||
|
|
Loading…
Reference in New Issue