From 5fe7de3be7ce731d24f90e00508559c3b63c76c2 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Thu, 17 Jun 2021 17:07:47 +0200 Subject: [PATCH] SimeonPicos --- backend/bang/game.py | 3 +++ backend/bang/players.py | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/backend/bang/game.py b/backend/bang/game.py index cf53b14..bd5599a 100644 --- a/backend/bang/game.py +++ b/backend/bang/game.py @@ -12,6 +12,7 @@ import bang.roles as roles import bang.expansions.fistful_of_cards.card_events as ce 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 class Game: def __init__(self, name, sio:socketio): @@ -305,6 +306,8 @@ class Game: target_pl.lives -= 1 if len([c for c in target_pl.equipment if isinstance(c, grc.Talismano)]) > 0: target_pl.gold_nuggets += 1 + if target_pl.character.check(self, grch.SimeonPicos): + target_pl.gold_nuggets += 1 if len([c for c in target_pl.equipment if isinstance(c, grc.Stivali)]) > 0: target_pl.hand.append(self.deck.draw()) target_pl.notify_self() diff --git a/backend/bang/players.py b/backend/bang/players.py index 4be80f3..463953a 100644 --- a/backend/bang/players.py +++ b/backend/bang/players.py @@ -329,6 +329,8 @@ class Player: self.lives -= 1 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: self.gold_nuggets += 1 + if self.character.check(self.game, grch.SimeonPicos): + self.gold_nuggets += 1 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Stivali)]) > 0: self.hand.append(self.game.deck.draw()) if self.character.check(self.game, chars.BartCassidy) and self.lives > 0: @@ -488,6 +490,8 @@ class Player: self.lives -= 3 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: self.gold_nuggets += 3 + if self.character.check(self.game, grch.SimeonPicos): + self.gold_nuggets += 3 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Stivali)]) > 0: self.hand.append(self.game.deck.draw()) self.hand.append(self.game.deck.draw()) @@ -668,6 +672,8 @@ class Player: self.lives -= 1 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: self.gold_nuggets += 1 + if self.character.check(self.game, grch.SimeonPicos): + self.gold_nuggets += 1 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Stivali)]) > 0: self.hand.append(self.game.deck.draw()) player.notify_self() @@ -951,6 +957,8 @@ class Player: self.attacker.notify_self() if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: self.gold_nuggets += 1 + if self.character.check(self.game, grch.SimeonPicos): + self.gold_nuggets += 1 if len([c for c in self.gold_rush_equipment if isinstance(c, grc.Stivali)]) > 0: self.hand.append(self.game.deck.draw()) self.heal_if_needed()