add gary looter
This commit is contained in:
parent
a5a6e2d8b9
commit
55c90ddd56
@ -123,17 +123,22 @@ class YoulGrinner(Character):
|
|||||||
|
|
||||||
|
|
||||||
def all_characters() -> List[Character]:
|
def all_characters() -> List[Character]:
|
||||||
|
"""
|
||||||
|
Returns a list of all characters in this expansion.
|
||||||
|
"""
|
||||||
cards = [
|
cards = [
|
||||||
BigSpencer(),
|
BigSpencer(),
|
||||||
FlintWestwood(),
|
FlintWestwood(),
|
||||||
# GaryLooter(),
|
GaryLooter(),
|
||||||
# GreygoryDeckard(),
|
# GreygoryDeckard(),
|
||||||
JohnPain(),
|
JohnPain(),
|
||||||
LeeVanKliff(),
|
LeeVanKliff(),
|
||||||
TerenKill(),
|
TerenKill(),
|
||||||
YoulGrinner(),
|
YoulGrinner(),
|
||||||
]
|
]
|
||||||
for c in cards:
|
for card in cards:
|
||||||
c.expansion_icon = "🎪"
|
card.expansion_icon = "🎪" # pylint: disable=attribute-defined-outside-init
|
||||||
c.expansion = "wild_west_show"
|
card.expansion = ( # pylint: disable=attribute-defined-outside-init
|
||||||
|
"wild_west_show"
|
||||||
|
)
|
||||||
return cards
|
return cards
|
||||||
|
@ -2465,6 +2465,20 @@ class Player:
|
|||||||
self.game.deck.draw(True, player=self)
|
self.game.deck.draw(True, player=self)
|
||||||
self.game.deck.draw(True, player=self)
|
self.game.deck.draw(True, player=self)
|
||||||
self.special_use_count += 1
|
self.special_use_count += 1
|
||||||
|
gary_looter = None
|
||||||
|
for p in self.game.players:
|
||||||
|
if p.character.check(self.game, chw.GaryLooter):
|
||||||
|
gary_looter = p
|
||||||
|
break
|
||||||
|
if gary_looter is not None:
|
||||||
|
G.sio.emit(
|
||||||
|
"card_drawn",
|
||||||
|
room=self.game.name,
|
||||||
|
data={"player": gary_looter.name, "pile": self.name},
|
||||||
|
)
|
||||||
|
gary_looter.hand.append(card)
|
||||||
|
gary_looter.notify_self()
|
||||||
|
else:
|
||||||
self.game.deck.scrap(card, player=self)
|
self.game.deck.scrap(card, player=self)
|
||||||
self.notify_self()
|
self.notify_self()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user