fix stats
This commit is contained in:
parent
ecae8ab16e
commit
6ad9107443
2 changed files with 7 additions and 7 deletions
12
actions.py
12
actions.py
|
@ -107,19 +107,19 @@ def do_play_card(bot, player, result_id):
|
||||||
send_async(bot, chat.id,
|
send_async(bot, chat.id,
|
||||||
text=__("{name} won!", multi=game.translate)
|
text=__("{name} won!", multi=game.translate)
|
||||||
.format(name=user.first_name))
|
.format(name=user.first_name))
|
||||||
|
send_async(bot, chat.id,
|
||||||
|
text=__("Game ended! Flawless Victory!", multi=game.translate))
|
||||||
|
|
||||||
if us.stats:
|
if us.stats:
|
||||||
# us.games_played += 1
|
# us.games_played += 1
|
||||||
|
|
||||||
if game.players_won is 0:
|
if game.players_won is 0:
|
||||||
us.first_places += 1
|
us.first_places += 1
|
||||||
if game.mode == 'one':
|
|
||||||
gm.end_game(chat, user)
|
|
||||||
send_async(bot, chat.id,
|
|
||||||
text=__("Game ended! Flawless Victory!", multi=game.translate))
|
|
||||||
|
|
||||||
|
if game.mode == 'one':
|
||||||
game.players_won += 1
|
gm.end_game(chat, user)
|
||||||
|
else:
|
||||||
|
game.players_won += 1
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gm.leave_game(user, chat)
|
gm.leave_game(user, chat)
|
||||||
|
|
2
game.py
2
game.py
|
@ -64,7 +64,7 @@ class Game(object):
|
||||||
return players
|
return players
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if self.mode == None or self.mode != "wild" or self.mode != "one":
|
if self.mode == None or self.mode == "fast"
|
||||||
self.deck._fill_classic_()
|
self.deck._fill_classic_()
|
||||||
else:
|
else:
|
||||||
self.deck._fill_wild_()
|
self.deck._fill_wild_()
|
||||||
|
|
Loading…
Reference in a new issue