fix breaking bug gold rush
This commit is contained in:
parent
9b057bb468
commit
a0e8e28c20
@ -1,4 +1,5 @@
|
|||||||
from bang.cards import *
|
from bang.cards import *
|
||||||
|
import bang.roles as r
|
||||||
import bang.players as pl
|
import bang.players as pl
|
||||||
|
|
||||||
class ShopCardKind(IntEnum):
|
class ShopCardKind(IntEnum):
|
||||||
@ -158,7 +159,7 @@ class Ricercato(ShopCard):
|
|||||||
def play_card(self, player, against=None, _with=None):
|
def play_card(self, player, against=None, _with=None):
|
||||||
player.available_cards = [{
|
player.available_cards = [{
|
||||||
'name': p.name,
|
'name': p.name,
|
||||||
'icon': p.role.icon if(player.game.initial_players == 3) else '⭐️' if p['is_sheriff'] else '🤠',
|
'icon': p.role.icon if(player.game.initial_players == 3) else '⭐️' if isinstance(p.role, r.Sheriff) else '🤠',
|
||||||
'alt_text': ''.join(['❤️']*p.lives)+''.join(['💀']*(p.max_lives-p.lives)),
|
'alt_text': ''.join(['❤️']*p.lives)+''.join(['💀']*(p.max_lives-p.lives)),
|
||||||
'noDesc': True
|
'noDesc': True
|
||||||
} for p in player.game.get_alive_players() if p != player]
|
} for p in player.game.get_alive_players() if p != player]
|
||||||
|
@ -1100,7 +1100,7 @@ class Player:
|
|||||||
def gold_rush_discard(self):
|
def gold_rush_discard(self):
|
||||||
self.available_cards = [{
|
self.available_cards = [{
|
||||||
'name': p.name,
|
'name': p.name,
|
||||||
'icon': p.role.icon if(self.game.initial_players == 3) else '⭐️' if p['is_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(p.gold_rush_equipment) > 0]
|
} for p in self.game.get_alive_players() if p != self and len(p.gold_rush_equipment) > 0]
|
||||||
|
Loading…
Reference in New Issue
Block a user