fix gold rush discard

This commit is contained in:
Giulio 2021-06-26 16:43:24 +02:00
parent bdd38efcdc
commit 83a61b7466

View File

@ -1136,7 +1136,7 @@ class Player:
'icon': p.role.icon if(self.game.initial_players == 3) else '⭐️' if isinstance(p.role, r.Sheriff) else '🤠', 'icon': p.role.icon if(self.game.initial_players == 3) else '⭐️' if isinstance(p.role, r.Sheriff) else '🤠',
'alt_text': ''.join(['🎴️'] * len(p.gold_rush_equipment)), 'alt_text': ''.join(['🎴️'] * len(p.gold_rush_equipment)),
'noDesc': True 'noDesc': True
} for p in self.game.get_alive_players() if p != self and len([e for e in p.gold_rush_equipment if e.number <= self.gold_nuggets + 1]) > 0] } for p in self.game.get_alive_players() if p != self and len([e for e in p.gold_rush_equipment if e.number + 1 <= self.gold_nuggets]) > 0]
self.available_cards.append({'icon': '', 'noDesc': True}) self.available_cards.append({'icon': '', 'noDesc': True})
self.choose_text = 'gold_rush_discard' self.choose_text = 'gold_rush_discard'
self.pending_action = PendingAction.CHOOSE self.pending_action = PendingAction.CHOOSE