add belle star

This commit is contained in:
Alberto Xamin 2020-12-13 16:47:44 +01:00
parent 54ffc93565
commit 70d16bdc0e
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
3 changed files with 13 additions and 0 deletions

View File

@ -7,9 +7,12 @@ class Deck:
super().__init__() super().__init__()
self.cards: List[cs.Card] = cs.get_starting_deck(game.expansions) self.cards: List[cs.Card] = cs.get_starting_deck(game.expansions)
self.mancato_cards: List[str] = [] self.mancato_cards: List[str] = []
self.mancato_cards_not_green: List[str] = []
for c in self.cards: for c in self.cards:
if isinstance(c, cs.Mancato) and c.name not in self.mancato_cards: if isinstance(c, cs.Mancato) and c.name not in self.mancato_cards:
self.mancato_cards.append(c.name) self.mancato_cards.append(c.name)
if not c.usable_next_turn:
self.mancato_cards_not_green.append(c.name)
self.all_cards_str: List[str] = [] self.all_cards_str: List[str] = []
for c in self.cards: for c in self.cards:
if c.name not in self.all_cards_str: if c.name not in self.all_cards_str:

View File

@ -64,6 +64,13 @@ class SeanMallory(Character):
self.desc_eng = "He can keep up to 10 cards in his hand when ending the turn." self.desc_eng = "He can keep up to 10 cards in his hand when ending the turn."
self.icon = '🍟' self.icon = '🍟'
class BelleStar(Character):
def __init__(self):
super().__init__("Belle Star", max_lives=3)
self.desc = "Nel suo turno le carte verdi degli altri giocatori non hanno effetto."
self.desc_eng = "During her turn the green cards of the other players do not work."
self.icon = ''
def all_characters() -> List[Character]: def all_characters() -> List[Character]:
return [ return [
PixiePete(), PixiePete(),
@ -75,6 +82,7 @@ def all_characters() -> List[Character]:
MollyStark(), MollyStark(),
ApacheKid(), ApacheKid(),
SeanMallory(), SeanMallory(),
BelleStar(),
] ]
#Apache Kid: il suo effetto non conta nei duelli #Apache Kid: il suo effetto non conta nei duelli

View File

@ -508,6 +508,8 @@ class Player:
print('has mancato') print('has mancato')
self.pending_action = PendingAction.RESPOND self.pending_action = PendingAction.RESPOND
self.expected_response = self.game.deck.mancato_cards self.expected_response = self.game.deck.mancato_cards
if self.attacker and isinstance(self.attacker.character, chd.BelleStar):
self.expected_response = self.game.deck.mancato_cards_not_green
if isinstance(self.character, chd.ElenaFuente): if isinstance(self.character, chd.ElenaFuente):
self.expected_response = self.game.deck.all_cards_str self.expected_response = self.game.deck.all_cards_str
self.on_failed_response_cb = self.take_damage_response self.on_failed_response_cb = self.take_damage_response