reset nuggets on death
This commit is contained in:
parent
a61615c24e
commit
348e6a7f9c
@ -595,6 +595,9 @@ class Game:
|
|||||||
for i in range(len(player.gold_rush_equipment)):
|
for i in range(len(player.gold_rush_equipment)):
|
||||||
self.deck.shop_deck.append(player.gold_rush_equipment.pop()) # vulture sam doesnt get these cards
|
self.deck.shop_deck.append(player.gold_rush_equipment.pop()) # vulture sam doesnt get these cards
|
||||||
|
|
||||||
|
#il giocatore quando muore perde tutte le pepite se non è pistolero ombra
|
||||||
|
player.gold_nuggets = 0
|
||||||
|
|
||||||
vulture = [p for p in self.get_alive_players() if p.character.check(self, characters.VultureSam)]
|
vulture = [p for p in self.get_alive_players() if p.character.check(self, characters.VultureSam)]
|
||||||
if len(vulture) == 0:
|
if len(vulture) == 0:
|
||||||
for i in range(len(player.hand)):
|
for i in range(len(player.hand)):
|
||||||
@ -640,7 +643,6 @@ class Game:
|
|||||||
corpse.notify_self()
|
corpse.notify_self()
|
||||||
self.next_turn()
|
self.next_turn()
|
||||||
|
|
||||||
|
|
||||||
def check_event(self, ev):
|
def check_event(self, ev):
|
||||||
if self.deck == None or len(self.deck.event_cards) == 0: return False
|
if self.deck == None or len(self.deck.event_cards) == 0: return False
|
||||||
return isinstance(self.deck.event_cards[0], ev)
|
return isinstance(self.deck.event_cards[0], ev)
|
||||||
|
Loading…
Reference in New Issue
Block a user