This commit is contained in:
Alberto Xamin 2020-12-23 14:50:12 +01:00
parent 95b6f016d2
commit c0a2481b00
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 13 additions and 2 deletions

View File

@ -25,6 +25,12 @@ class Sete(CardEvent):
self.desc = "I giocatori pescano solo 1 carta" self.desc = "I giocatori pescano solo 1 carta"
self.desc_eng = "" self.desc_eng = ""
class IlTreno(CardEvent):
def __init__(self):
super().__init__("Il Treno", "🚂")
self.desc = "I giocatori pescano 1 carta extra"
self.desc_eng = ""
class MezzogiornoDiFuoco(CardEvent): class MezzogiornoDiFuoco(CardEvent):
def __init__(self): def __init__(self):
super().__init__("Mezzogiorno di Fuoco", "🔥") super().__init__("Mezzogiorno di Fuoco", "🔥")
@ -40,7 +46,7 @@ def get_all_events():
# IDalton(), # IDalton(),
# IlDottore(), # IlDottore(),
# IlReverendo(), # IlReverendo(),
# IlTreno(), IlTreno(),
Sbornia(), Sbornia(),
# Seromone(), # Seromone(),
Sete(), Sete(),

View File

@ -413,6 +413,8 @@ class Player:
return self.notify_self() return self.notify_self()
if self.character.check(self.game, chd.PixiePete): if self.character.check(self.game, chd.PixiePete):
self.hand.append(self.game.deck.draw()) self.hand.append(self.game.deck.draw())
if self.game.check_event(ceh.IlTreno):
self.hand.append(self.game.deck.draw())
self.notify_self() self.notify_self()
def pick(self): def pick(self):
@ -627,7 +629,10 @@ class Player:
# specifico per personaggio # specifico per personaggio
elif self.is_drawing and self.character.check(self.game, chars.KitCarlson): elif self.is_drawing and self.character.check(self.game, chars.KitCarlson):
self.hand.append(self.available_cards.pop(card_index)) self.hand.append(self.available_cards.pop(card_index))
if len(self.available_cards) == 1: pickable_stop = 1
if self.game.check_event(ceh.Sete): pickable_stop = 2
if self.game.check_event(ceh.IlTreno): pickable_stop = 0
if len(self.available_cards) == pickable_stop:
self.game.deck.put_on_top(self.available_cards.pop()) self.game.deck.put_on_top(self.available_cards.pop())
self.is_drawing = False self.is_drawing = False
self.pending_action = PendingAction.PLAY self.pending_action = PendingAction.PLAY