Emporio writes the drawn cards in the chat

This commit is contained in:
Giulio 2022-06-14 11:07:27 +02:00
parent e1dfff2118
commit 37cd396a9c
3 changed files with 8 additions and 4 deletions

View File

@ -374,7 +374,9 @@ class Game:
self.players[self.turn].notify_self() self.players[self.turn].notify_self()
def respond_emporio(self, player, i): def respond_emporio(self, player, i):
player.hand.append(self.available_cards.pop(i)) card = self.available_cards.pop(i)
player.sio.emit('chat_message', room=self.name, data=f'_choose_emporio|{player.name}|{card.name}')
player.hand.append(card)
player.available_cards = [] player.available_cards = []
player.pending_action = pl.PendingAction.WAIT player.pending_action = pl.PendingAction.WAIT
player.notify_self() player.notify_self()

View File

@ -131,7 +131,8 @@
"choose_manette": "{0} committed to play only cards of suit {1} in this turn.", "choose_manette": "{0} committed to play only cards of suit {1} in this turn.",
"UnionPacific": "{0} played Union Pacific and draws 4 cards from the deck", "UnionPacific": "{0} played Union Pacific and draws 4 cards from the deck",
"use_special": "{0} used the special ability of their character ({1})", "use_special": "{0} used the special ability of their character ({1})",
"gold_rush_pay_discard": "{0} discarded {2} from {1}." "gold_rush_pay_discard": "{0} discarded {2} from {1}.",
"choose_emporio": "{0} has chosen {1} from General Store."
}, },
"foc": { "foc": {
"leggedelwest": "He must play this card on this turn if possible." "leggedelwest": "He must play this card on this turn if possible."

View File

@ -129,9 +129,10 @@
"prison_turn": "{0} rimane in prigione questo turno", "prison_turn": "{0} rimane in prigione questo turno",
"flip_event": "🎴 EVENTO: {0} 🎴", "flip_event": "🎴 EVENTO: {0} 🎴",
"choose_manette": "{0} si è impegnato ad usare solo carte di seme {1} in questo turno.", "choose_manette": "{0} si è impegnato ad usare solo carte di seme {1} in questo turno.",
"UnionPacific": "{0} ha giocato Union Pacific e ha pescato 4 carte", "UnionPacific": "{0} ha giocato Union Pacific e ha pescato 4 carte.",
"use_special": "{0} ha usato l'abilità speciale del suo personaggio ({1})", "use_special": "{0} ha usato l'abilità speciale del suo personaggio ({1})",
"gold_rush_pay_discard": "{0} ha fatto scartare {2} a {1}." "gold_rush_pay_discard": "{0} ha fatto scartare {2} a {1}.",
"choose_emporio": "{0} ha scelto {1} da Emporio."
}, },
"foc": { "foc": {
"leggedelwest": "Ed è obbligato a usarla nel suo turno, se possibile" "leggedelwest": "Ed è obbligato a usarla nel suo turno, se possibile"