From bc143190c31453fedb2df209c83b92eb3a4f63a8 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Thu, 26 Jan 2023 15:30:15 +0000 Subject: [PATCH] add tucoFranziskaner Logic --- backend/bang/expansions/the_valley_of_shadows/characters.py | 2 +- backend/bang/players.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/bang/expansions/the_valley_of_shadows/characters.py b/backend/bang/expansions/the_valley_of_shadows/characters.py index 724939f..e219183 100644 --- a/backend/bang/expansions/the_valley_of_shadows/characters.py +++ b/backend/bang/expansions/the_valley_of_shadows/characters.py @@ -58,7 +58,7 @@ def all_characters() -> List[Character]: # HenryBlock(), # LemonadeJim(), # MickDefender(), - # TucoFranziskaner(), + TucoFranziskaner(), ] for c in cards: c.expansion_icon = '👻️' diff --git a/backend/bang/players.py b/backend/bang/players.py index 51ca9bd..1858653 100644 --- a/backend/bang/players.py +++ b/backend/bang/players.py @@ -13,6 +13,7 @@ import bang.expansions.high_noon.card_events as ceh import bang.expansions.gold_rush.shop_cards as grc import bang.expansions.gold_rush.characters as grch import bang.expansions.the_valley_of_shadows.cards as tvosc +import bang.expansions.the_valley_of_shadows.characters as tvosch from typing import List from metrics import Metrics from globals import G @@ -551,6 +552,7 @@ class Player: self.pending_action = PendingAction.PLAY num = 2 if not self.character.check(self.game, chd.BillNoface) else self.max_lives-self.lives+1 if self.character.check(self.game, chd.PixiePete): num += 1 + if self.character.check(self.game, tvosch.TucoFranziskaner) and not any((True for c in self.equipment if not c.usable_next_turn)): num += 2 if (any((isinstance(c, grc.Piccone) for c in self.gold_rush_equipment))): num += 1 if self.game.check_event(ceh.IlTreno) or (self.is_ghost and self.game.check_event(ceh.CittaFantasma)): num += 1 elif self.game.check_event(ceh.Sete): num -= 1