Return if player is banned for coins overdose

This commit is contained in:
Ben 2020-04-23 21:45:07 +01:00
parent 041146caae
commit 1d89531634

View File

@ -75,7 +75,7 @@ async def handle_get_game_over(p, score: int):
if p.room.game and not p.waddle and not p.table: if p.room.game and not p.waddle and not p.table:
coins_earned = determine_coins_earned(p, score) coins_earned = determine_coins_earned(p, score)
if await determine_coins_overdose(p, coins_earned): if await determine_coins_overdose(p, coins_earned):
await cheat_ban(p, p.id, comment='Coins overdose') return await cheat_ban(p, p.id, comment='Coins overdose')
collected_stamps_string, total_collected_stamps, total_game_stamps, total_stamps = '', 0, 0, 0 collected_stamps_string, total_collected_stamps, total_game_stamps, total_stamps = '', 0, 0, 0
if p.room.stamp_group: if p.room.stamp_group: