From 218a0b6191c9a6c90b29a8ba0c92af0f2df4de02 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 21 Oct 2019 21:07:34 +0800 Subject: [PATCH] let got_cards be 1 sometimes --- cards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cards.py b/cards.py index 73f8b8a..427a9a1 100644 --- a/cards.py +++ b/cards.py @@ -268,6 +268,7 @@ def dist_cards_btn_click(update, context): return randrange(5000,15000)/10000 * value got_cards = int(__floating(cards/damount)) got_cards = got_cards if got_cards <= cards else cards + got_cards = 1 if randrange(0,10000)/10000 < 0.2 and got_cards == 0 else got_cards got_cards = got_cards if damount != 1 else cards rp[0] -= got_cards rp[1] -= 1