apache kid

This commit is contained in:
Alberto Xamin 2020-11-29 15:50:19 +01:00
parent 795dcf82a7
commit 174f4d7f86
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,12 @@ class MollyStark(Character):
self.desc = "Quando usa una carta che ha in mano, fuori dal suo turno, ne ottiene un'altra dal mazzo"
self.icon = '🙅‍♀️'
class ApacheKid(Character):
def __init__(self):
super().__init__("Molly Stark", max_lives=3)
self.desc = "Le carte di quadri ♦️ giocate contro di lui non hanno effetto (non vale durante i duelli)"
self.icon = '♦️'
def all_characters() -> List[Character]:
return [
PixiePete(),
@ -52,6 +58,7 @@ def all_characters() -> List[Character]:
ElenaFuente(),
BillNoface(),
MollyStark(),
ApacheKid(),
]
#Apache Kid: il suo effetto non conta nei duelli

View File

@ -266,6 +266,8 @@ class Player:
withCard = self.hand.pop(_with) if hand_index > _with else self.hand.pop(_with - 1)
print(self.name, 'is playing ', card, ' against:', against, ' with:', _with)
did_play_card = card.play_card(self, against, withCard)
if against != None and isinstance(self.game.get_player_named(against).character, chd.ApacheKid) and card.suit == cs.Suit.DIAMONDS:
did_play_card = False
if not card.is_equipment and not card.usable_next_turn:
if did_play_card:
self.game.deck.scrap(card)