wip
This commit is contained in:
parent
9d5ac5b166
commit
3707b24f8c
@ -1,5 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
from bang.cards import Card
|
import bang.players as pl
|
||||||
|
from bang.cards import Card, Bang, Panico, CatBalou, Mancato
|
||||||
|
|
||||||
|
|
||||||
class TrainCard(Card):
|
class TrainCard(Card):
|
||||||
@ -102,19 +103,28 @@ class BaggageCar(TrainCard):
|
|||||||
super().__init__("Baggage Car")
|
super().__init__("Baggage Car")
|
||||||
self.icon = "🚋🛄"
|
self.icon = "🚋🛄"
|
||||||
|
|
||||||
|
def choose_callback(self, player: pl.Player, card_index):
|
||||||
|
player.hand.append(player.available_cards[card_index])
|
||||||
|
player.pending_action = pl.PendingAction.PLAY
|
||||||
|
|
||||||
def play_card(self, player, against=None, _with=None) -> bool:
|
def play_card(self, player, against=None, _with=None) -> bool:
|
||||||
|
player.set_choose_action(
|
||||||
|
"choose_baggage_car",
|
||||||
|
[Bang(4, 42), Mancato(4, 42), CatBalou(4, 42), Panico(4, 42)],
|
||||||
|
self.choose_callback,
|
||||||
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class Caboose(TrainCard):
|
class Caboose(TrainCard):
|
||||||
"""Pro scartare un aura tua carta bordo bin incuso un vagone come se fosse un Mancato!"""
|
"""Pro scartare un altra tua carta bordo blu incuso un vagone come se fosse un Mancato!"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__("Caboose")
|
super().__init__("Caboose")
|
||||||
self.icon = "🚋"
|
self.icon = "🚋"
|
||||||
|
|
||||||
def play_card(self, player, against=None, _with=None) -> bool:
|
def play_card(self, player, against=None, _with=None) -> bool:
|
||||||
return True
|
return False
|
||||||
|
|
||||||
|
|
||||||
class CattleTruck(TrainCard):
|
class CattleTruck(TrainCard):
|
||||||
@ -158,7 +168,7 @@ class DiningCar(TrainCard):
|
|||||||
self.icon = "🚋🍽"
|
self.icon = "🚋🍽"
|
||||||
|
|
||||||
def play_card(self, player, against=None, _with=None) -> bool:
|
def play_card(self, player, against=None, _with=None) -> bool:
|
||||||
return True
|
return False
|
||||||
|
|
||||||
|
|
||||||
class ExpressCar(TrainCard):
|
class ExpressCar(TrainCard):
|
||||||
@ -173,7 +183,7 @@ class ExpressCar(TrainCard):
|
|||||||
|
|
||||||
|
|
||||||
class GhostCar(TrainCard):
|
class GhostCar(TrainCard):
|
||||||
"""Giocalo su chiunque tranne lo Sceritfo. Se vieni eliminato, invece resti in gioco, ma non puol guada nare ne perdere punk vita."""
|
"""Giocalo su chiunque tranne lo Sceritfo. Se vieni eliminato, invece resti in gioco, ma non puo guadagnare ne perdere punti vita."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__("Ghost Car")
|
super().__init__("Ghost Car")
|
||||||
|
Loading…
Reference in New Issue
Block a user