restore bad fix for roulette event

This commit is contained in:
Giulio 2022-03-22 22:05:00 +01:00
parent bd84d07562
commit 8ca795f680

View File

@ -398,7 +398,7 @@ class Game:
if did_lose: if did_lose:
target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)]
print(f'{self.name}: stop roulette') print(f'{self.name}: stop roulette')
target_pl.lives -= 2 target_pl.lives -= 1
target_pl.heal_if_needed() target_pl.heal_if_needed()
if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0:
target_pl.gold_nuggets += 1 target_pl.gold_nuggets += 1
@ -410,6 +410,7 @@ class Game:
self.is_russian_roulette_on = False self.is_russian_roulette_on = False
self.players[self.turn].play_turn() self.players[self.turn].play_turn()
else: else:
self.player_bangs += 1
target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)]
print(f'{self.name}: next in line {target_pl.name}') print(f'{self.name}: next in line {target_pl.name}')
if target_pl.get_banged(self.deck.event_cards[0]): if target_pl.get_banged(self.deck.event_cards[0]):