From 8b9f095e4ba78eb7e5880a468afc481146e5471e Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Tue, 15 Jun 2021 16:57:35 +0200 Subject: [PATCH] add black cards --- .../bang/expansions/gold_rush/shop_cards.py | 92 ++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/backend/bang/expansions/gold_rush/shop_cards.py b/backend/bang/expansions/gold_rush/shop_cards.py index 62f736f..5e21515 100644 --- a/backend/bang/expansions/gold_rush/shop_cards.py +++ b/backend/bang/expansions/gold_rush/shop_cards.py @@ -86,6 +86,87 @@ class UnionPacific(ShopCard): pass # Pesca 4 carte return False +class Calumet(ShopCard): + def __init__(self): + super().__init__("Calumet", 3, ShopCardKind.BLACK) + self.icon = '🚭️' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # ti rende immuni ai quadri + +class Cinturone(ShopCard): + def __init__(self): + super().__init__("Cinturone", 2, ShopCardKind.BLACK) + self.icon = '🥡' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # max carte a fine turno 8 + +class FerroDiCavallo(ShopCard): + def __init__(self): + super().__init__("Ferro di Cavallo", 2, ShopCardKind.BLACK) + self.icon = '🎠' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # estrai come luky duke + +class Piccone(ShopCard): + def __init__(self): + super().__init__("Piccone", 4, ShopCardKind.BLACK) + self.icon = '⛏️' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # peschi una carta in piu a inizio turno + +class Ricercato(ShopCard): + def __init__(self): + super().__init__("Ricercato", 2, ShopCardKind.BLACK) + self.icon = '⛏️' + + def play_card(self, player, against, _with=None): + pass + # la giochi su un altro giocatore, ricompensa di 2 carte e 1 pepita a chi lo uccide + +class Setaccio(ShopCard): + def __init__(self): + super().__init__("Setaccio", 3, ShopCardKind.BLACK) + self.icon = '🥘️' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # paghi 1 pepita per pescare 1 carta durante il tuo turno (max 2 volte per turno) + +class Stivali(ShopCard): + def __init__(self): + super().__init__("Stivali", 3, ShopCardKind.BLACK) + self.icon = '🥾️' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # peschi una carta ogni volta che vieni ferito + +class Talismano(ShopCard): + def __init__(self): + super().__init__("Talismano", 3, ShopCardKind.BLACK) + self.icon = '🧿' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # ottieni una pepita ogni volta che vieni ferito + +class Zaino(ShopCard): + def __init__(self): + super().__init__("Zaino", 3, ShopCardKind.BLACK) + self.icon = '🎒️' + + def play_card(self, player, against, _with=None): + super().play_card(player, against, _with) + # paga 2 pepite per recuperare 1 vita + def get_cards() -> List[Card]: cards = [ Bicchierino(), @@ -94,7 +175,16 @@ def get_cards() -> List[Card]: CorsaAllOro(), Rum(), UnionPacific(), + Calumet(), + Cinturone(), + FerroDiCavallo(), + Piccone(), + Ricercato(), + Setaccio(), + Stivali(), + Talismano(), + Zaino(), ] for c in cards: - c.expansion_icon = '' + c.expansion_icon = '🤑️' return cards