diff --git a/files/helpers/roulette.py b/files/helpers/roulette.py index a7b7159ff..175bacf88 100644 --- a/files/helpers/roulette.py +++ b/files/helpers/roulette.py @@ -210,8 +210,7 @@ def spin_roulette_wheel(): else: game.winnings = -game.wager - if game.currency == 'coins': - distribute_wager_badges(game.user, game.wager, won=(game.winnings > 0)) + distribute_wager_badges(game.user, game.wager, won=(game.winnings > 0)) game.active = False g.db.add(game) diff --git a/files/helpers/slots.py b/files/helpers/slots.py index 1505b755f..69816d2a7 100644 --- a/files/helpers/slots.py +++ b/files/helpers/slots.py @@ -32,8 +32,7 @@ def casino_slot_pull(gambler, wager_value, currency): gambler.pay_account(currency, reward) - if currency == 'coins': - distribute_wager_badges(gambler, wager_value, won=(payout > 0)) + distribute_wager_badges(gambler, wager_value, won=(payout > 0)) symbols = build_symbols(payout) text = build_text(wager_value, payout, currency) diff --git a/files/helpers/twentyone.py b/files/helpers/twentyone.py index 5fc00976c..85a25b35e 100644 --- a/files/helpers/twentyone.py +++ b/files/helpers/twentyone.py @@ -257,11 +257,10 @@ def handle_payout(gambler, state, game): gambler.pay_account(game.currency, payout) - if game.currency == 'coins': - if status in {BlackjackStatus.BLACKJACK, BlackjackStatus.WON}: - distribute_wager_badges(gambler, game.wager, won=True) - elif status == BlackjackStatus.LOST: - distribute_wager_badges(gambler, game.wager, won=False) + if status in {BlackjackStatus.BLACKJACK, BlackjackStatus.WON}: + distribute_wager_badges(gambler, game.wager, won=True) + elif status == BlackjackStatus.LOST: + distribute_wager_badges(gambler, game.wager, won=False) game.active = False g.db.add(game)