Il treno
This commit is contained in:
parent
95b6f016d2
commit
c0a2481b00
@ -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(),
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user