add desc on borraccia, fix apache logic

This commit is contained in:
Alberto Xamin 2020-11-29 16:08:46 +01:00
parent 5eacffeb5c
commit a069dcbcaf
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
3 changed files with 5 additions and 4 deletions

View File

@ -216,6 +216,7 @@ class Borraccia(Card):
def __init__(self, suit, number):
super().__init__(suit, 'Borraccia', number)
self.icon = '🍼'
self.desc = 'Recupera 1 vita'
self.usable_next_turn = True
self.can_be_used_now = False

View File

@ -45,7 +45,7 @@ class MollyStark(Character):
class ApacheKid(Character):
def __init__(self):
super().__init__("Molly Stark", max_lives=3)
super().__init__("Apache Kid", max_lives=3)
self.desc = "Le carte di quadri ♦️ giocate contro di lui non hanno effetto (non vale durante i duelli)"
self.icon = '♦️'

View File

@ -265,9 +265,9 @@ class Player:
if _with != None:
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
did_play_card = False
if not(against != None and isinstance(self.game.get_player_named(against).character, chd.ApacheKid) and card.suit == cs.Suit.DIAMONDS):
did_play_card = card.play_card(self, against, withCard)
if not card.is_equipment and not card.usable_next_turn:
if did_play_card:
self.game.deck.scrap(card)