cards: forgot to call save
This commit is contained in:
parent
9719d52230
commit
c6e8c18128
1 changed files with 1 additions and 0 deletions
1
cards.py
1
cards.py
|
@ -222,6 +222,7 @@ def cards_lottery(update, context):
|
||||||
cards = int(cards) if cards > 1 else 1
|
cards = int(cards) if cards > 1 else 1
|
||||||
cards *= randrange(-1, 2, 2)
|
cards *= randrange(-1, 2, 2)
|
||||||
fplayer.immunity_cards += cards
|
fplayer.immunity_cards += cards
|
||||||
|
fplayer.save()
|
||||||
update.message.reply_text(f'您{"获得" if cards >= 0 else "血亏"}了{abs(cards)}张卡')
|
update.message.reply_text(f'您{"获得" if cards >= 0 else "血亏"}了{abs(cards)}张卡')
|
||||||
|
|
||||||
@run_async
|
@run_async
|
||||||
|
|
Loading…
Reference in a new issue