fix alt_text

This commit is contained in:
Alberto Xamin 2020-12-27 11:22:17 +01:00
parent 01039df374
commit 7e8d7dfd6a
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 4 additions and 3 deletions

View File

@ -128,6 +128,7 @@ class Prigione(Card):
self.desc = "Equipaggia questa carta a un altro giocatore, tranne lo Sceriffo. Il giocatore scelto all'inizio del suo turno, prima di pescare dovrà estrarre: se esce Cuori scarta questa carta e gioca normalmente il turno, altrimenti scarta questa carta e salta il turno" self.desc = "Equipaggia questa carta a un altro giocatore, tranne lo Sceriffo. Il giocatore scelto all'inizio del suo turno, prima di pescare dovrà estrarre: se esce Cuori scarta questa carta e gioca normalmente il turno, altrimenti scarta questa carta e salta il turno"
self.desc_eng = "Equip this card to another player, except the Sheriff. The player chosen at the beginning of his turn, must flip a card before drawing: if it's Hearts, discard this card and play the turn normally, otherwise discard this card and skip the turn" self.desc_eng = "Equip this card to another player, except the Sheriff. The player chosen at the beginning of his turn, must flip a card before drawing: if it's Hearts, discard this card and play the turn normally, otherwise discard this card and skip the turn"
self.need_target = True self.need_target = True
self.alt_text = "♥️=🆓"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
if against != None and not isinstance(player.game.get_player_named(against).role, r.Sheriff): if against != None and not isinstance(player.game.get_player_named(against).role, r.Sheriff):
@ -357,7 +358,6 @@ class Panico(Card):
super().__init__(suit, 'Panico!', number, range=1) super().__init__(suit, 'Panico!', number, range=1)
self.icon = '😱' self.icon = '😱'
self.need_target = True self.need_target = True
self.alt_icon = "1🔎"
self.desc = "Pesca una carta da un giocatore a distanza 1, scegli a caso dalla mano, oppure fra quelle che ha in gioco" self.desc = "Pesca una carta da un giocatore a distanza 1, scegli a caso dalla mano, oppure fra quelle che ha in gioco"
self.desc_eng = "Steal a card from a player at distance 1" self.desc_eng = "Steal a card from a player at distance 1"

View File

@ -35,7 +35,7 @@ class Schivata(Mancato):
self.icon = '🙅‍♂️' self.icon = '🙅‍♂️'
self.desc += " e poi pesca una carta" self.desc += " e poi pesca una carta"
self.desc_eng += " and then draw a card." self.desc_eng += " and then draw a card."
self.alt_text = '😅 | ☝️🆓' self.alt_text = "😅 | 🎴"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
return False return False
@ -166,6 +166,7 @@ class Cappello(Mancato):
self.icon = '🧢' self.icon = '🧢'
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
self.alt_text = "😅"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
if self.can_be_used_now: if self.can_be_used_now:
@ -213,7 +214,7 @@ class Derringer(Pugnale):
super().__init__(suit, number) super().__init__(suit, number)
self.name = 'Derringer' self.name = 'Derringer'
self.icon = '🚬' self.icon = '🚬'
self.alt_text += ' ☝️🆓' self.alt_text += ' 🎴'
self.desc += ' e poi pesca una carta' self.desc += ' e poi pesca una carta'
self.desc_eng += ' and then draw a card.' self.desc_eng += ' and then draw a card.'