alt_text on more cards

This commit is contained in:
Alberto Xamin 2020-12-27 11:04:29 +01:00
parent 230031bce8
commit 01039df374
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 26 additions and 9 deletions

View File

@ -89,6 +89,7 @@ class Barile(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Barile', number, is_equipment=True) super().__init__(suit, 'Barile', number, is_equipment=True)
self.icon = '🛢' self.icon = '🛢'
self.alt_text = "♥️=😅"
self.desc = "Quando sei bersagliato da un Bang puoi estrarre la prima carta dalla cima del mazzo, se la carta estratta è del seme Cuori allora vale come un Mancato" self.desc = "Quando sei bersagliato da un Bang puoi estrarre la prima carta dalla cima del mazzo, se la carta estratta è del seme Cuori allora vale come un Mancato"
self.desc_eng = "When someone plays a Bang against you. You can flip the first card from the deck, if the suit is Hearts then it counts as a Missed card" self.desc_eng = "When someone plays a Bang against you. You can flip the first card from the deck, if the suit is Hearts then it counts as a Missed card"
@ -97,6 +98,7 @@ class Dinamite(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Dinamite', number, is_equipment=True) super().__init__(suit, 'Dinamite', number, is_equipment=True)
self.icon = '🧨' self.icon = '🧨'
self.alt_text = "2-9♠ = 🤯"
self.desc = "Giocando la Dinamite, posizionala davanti a te, resterà innocua per un intero giro. All'inizio del prossimo turno prima di pescare e prima di una eventuale estrazione (es. Prigione), estrai una carta dalla cima del mazzo. Se esce una carta tra il 2 il 9 di picche (compresi) allora la dinamite esplode: perdi 3 vite e scarta la carta, altrimenti passa la dinamite al giocatore successivo, il quale estrarà a sua volta dopo che tu avrai passato il tuo turno" self.desc = "Giocando la Dinamite, posizionala davanti a te, resterà innocua per un intero giro. All'inizio del prossimo turno prima di pescare e prima di una eventuale estrazione (es. Prigione), estrai una carta dalla cima del mazzo. Se esce una carta tra il 2 il 9 di picche (compresi) allora la dinamite esplode: perdi 3 vite e scarta la carta, altrimenti passa la dinamite al giocatore successivo, il quale estrarà a sua volta dopo che tu avrai passato il tuo turno"
self.desc_eng = "When playing Dynamite, place it in front of you, it will remain harmless for a whole round. At the beginning of the next turn before drawing and before any card flip (eg Prison), flip a card from the top of the deck. If a card is between 2 and 9 of spades (inclusive) then the dynamite explodes: you lose 3 lives and discard the card, otherwise pass the dynamite to the next player, who will draw in turn after you have ended your turn" self.desc_eng = "When playing Dynamite, place it in front of you, it will remain harmless for a whole round. At the beginning of the next turn before drawing and before any card flip (eg Prison), flip a card from the top of the deck. If a card is between 2 and 9 of spades (inclusive) then the dynamite explodes: you lose 3 lives and discard the card, otherwise pass the dynamite to the next player, who will draw in turn after you have ended your turn"
@ -105,6 +107,7 @@ class Mirino(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Mirino', number, is_equipment=True, sight_mod=1) super().__init__(suit, 'Mirino', number, is_equipment=True, sight_mod=1)
self.icon = '🔎' self.icon = '🔎'
self.alt_text = "-1"
self.desc = "Tu vedi gli altri giocatori a distanza -1" self.desc = "Tu vedi gli altri giocatori a distanza -1"
self.desc_eng = "You see the other players at distance -1" self.desc_eng = "You see the other players at distance -1"
@ -113,6 +116,7 @@ class Mustang(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Mustang', number, is_equipment=True, vis_mod=1) super().__init__(suit, 'Mustang', number, is_equipment=True, vis_mod=1)
self.icon = '🐎' self.icon = '🐎'
self.alt_text = "+1"
self.desc = "Gli altri giocatori ti vedono a distanza +1" self.desc = "Gli altri giocatori ti vedono a distanza +1"
self.desc_eng = "The other players see you at distance +1" self.desc_eng = "The other players see you at distance +1"
@ -256,6 +260,7 @@ class Diligenza(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Diligenza', number) super().__init__(suit, 'Diligenza', number)
self.icon = '🚡' self.icon = '🚡'
self.alt_text = "🎴🎴"
self.desc = "Pesca 2 carte dalla cima del mazzo" self.desc = "Pesca 2 carte dalla cima del mazzo"
self.desc_eng = "Draw 2 cards from the deck." self.desc_eng = "Draw 2 cards from the deck."
@ -302,6 +307,7 @@ class Gatling(Card):
self.icon = '🛰' self.icon = '🛰'
self.desc = "Spara a tutti gli altri giocatori" self.desc = "Spara a tutti gli altri giocatori"
self.desc_eng = "Shoot all the other players" self.desc_eng = "Shoot all the other players"
self.alt_text = "👥💥"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
super().play_card(player, against=against) super().play_card(player, against=against)
@ -351,6 +357,7 @@ 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"
@ -372,6 +379,7 @@ class Saloon(Card):
self.desc = "Tutti i giocatori recuperano un punto vita compreso chi gioca la carta" self.desc = "Tutti i giocatori recuperano un punto vita compreso chi gioca la carta"
self.desc_eng = "Everyone heals 1 Health point" self.desc_eng = "Everyone heals 1 Health point"
self.icon = '🍻' self.icon = '🍻'
self.alt_text = "👥🍺"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
player.sio.emit('chat_message', room=player.game.name, player.sio.emit('chat_message', room=player.game.name,
@ -388,6 +396,7 @@ class WellsFargo(Card):
self.desc = "Pesca 3 carte dalla cima del mazzo" self.desc = "Pesca 3 carte dalla cima del mazzo"
self.desc_eng = "Draw 3 cards from the deck" self.desc_eng = "Draw 3 cards from the deck"
self.icon = '💸' self.icon = '💸'
self.alt_text = "🎴🎴🎴"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
player.sio.emit('chat_message', room=player.game.name, player.sio.emit('chat_message', room=player.game.name,

View File

@ -16,6 +16,7 @@ class Pugno(Card):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, 'Pugno!', number, range=1) super().__init__(suit, 'Pugno!', number, range=1)
self.icon = '👊' self.icon = '👊'
self.alt_text = "1🔎 💥"
self.desc = "Spara a un giocatore a distanza 1" self.desc = "Spara a un giocatore a distanza 1"
self.desc_eng = "Shoot a player at distance 1" self.desc_eng = "Shoot a player at distance 1"
self.need_target = True self.need_target = True
@ -34,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
@ -51,7 +52,7 @@ class RagTime(Panico):
self.desc_eng = "Steal a card from another player at any distance" self.desc_eng = "Steal a card from another player at any distance"
self.need_target = True self.need_target = True
self.need_with = True self.need_with = True
self.alt_text = '2🃏' self.alt_text = '2🃏 | 👤😱'
def play_card(self, player, against, _with): def play_card(self, player, against, _with):
if against != None and _with != None: if against != None and _with != None:
@ -69,7 +70,7 @@ class Rissa(CatBalou):
self.desc_eng = "Choose a card to discard from the hand/equipment of all the other players" self.desc_eng = "Choose a card to discard from the hand/equipment of all the other players"
self.need_with = True self.need_with = True
self.need_target = False self.need_target = False
self.alt_text = '2🃏' self.alt_text = '2🃏 | 👤💃'
def play_card(self, player, against, _with): def play_card(self, player, against, _with):
if _with != None: if _with != None:
@ -91,7 +92,7 @@ class SpringField(Card):
self.desc_eng = "Shoot a player at any distance" self.desc_eng = "Shoot a player at any distance"
self.need_target = True self.need_target = True
self.need_with = True self.need_with = True
self.alt_text = '2🃏' self.alt_text = '2🃏 | 👤💥'
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
if against != None and _with != None: if against != None and _with != None:
@ -110,7 +111,7 @@ class Tequila(Card):
self.need_target = True self.need_target = True
self.can_target_self = True self.can_target_self = True
self.need_with = True self.need_with = True
self.alt_text = '2🃏' self.alt_text = "2🃏 | 👤🍺"
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
if against != None and _with != None: if against != None and _with != None:
@ -128,7 +129,7 @@ class Whisky(Card):
self.desc = "Gioca questa carta per recuperare fino a 2 punti vita" self.desc = "Gioca questa carta per recuperare fino a 2 punti vita"
self.desc_eng = "Heal 2 HP" self.desc_eng = "Heal 2 HP"
self.need_with = True self.need_with = True
self.alt_text = '2🃏' self.alt_text = '2🃏 | 🍺🍺'
def play_card(self, player, against, _with=None): def play_card(self, player, against, _with=None):
if _with != None: if _with != None:
@ -237,6 +238,7 @@ class Borraccia(Card):
self.icon = '🍼' self.icon = '🍼'
self.desc = 'Recupera 1 vita' self.desc = 'Recupera 1 vita'
self.desc_eng = 'Regain 1 HP' self.desc_eng = 'Regain 1 HP'
self.alt_text = "🍺"
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -258,6 +260,7 @@ class PonyExpress(WellsFargo):
super().__init__(suit, number) super().__init__(suit, number)
self.name = 'Pony Express' self.name = 'Pony Express'
self.icon = '🦄' self.icon = '🦄'
self.alt_text = "🎴🎴🎴"
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -276,6 +279,7 @@ class Howitzer(Gatling):
super().__init__(suit, number) super().__init__(suit, number)
self.name = 'Howitzer' self.name = 'Howitzer'
self.icon = '📡' self.icon = '📡'
self.alt_text = "👥💥"
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -292,8 +296,9 @@ class Howitzer(Gatling):
class CanCan(CatBalou): class CanCan(CatBalou):
def __init__(self, suit, number): def __init__(self, suit, number):
super().__init__(suit, number) super().__init__(suit, number)
self.name = 'Can Can' self.name = "Can Can"
self.icon = '👯‍♀️' self.icon = "👯‍♀️"
self.alt_text = "👤💃"
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -310,9 +315,10 @@ class CanCan(CatBalou):
class Conestoga(Panico): class Conestoga(Panico):
def __init__(self, suit, number): def __init__(self, suit, number):
Card.__init__(self, suit, 'Conestoga', number) Card.__init__(self, suit, 'Conestoga', number)
self.icon = '🏕' self.icon = "🏕"
self.desc = "Ruba 1 carta da un giocatore a prescindere dalla distanza" self.desc = "Ruba 1 carta da un giocatore a prescindere dalla distanza"
self.desc_eng = "Steal a card from another player at any distance" self.desc_eng = "Steal a card from another player at any distance"
self.alt_text = "👤😱"
self.need_target = True self.need_target = True
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -332,6 +338,7 @@ class Pepperbox(Bang):
super().__init__(suit, number) super().__init__(suit, number)
self.name = 'Pepperbox' self.name = 'Pepperbox'
self.icon = '🌶' self.icon = '🌶'
self.alt_text = "💥"
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False
@ -354,6 +361,7 @@ class FucileDaCaccia(Card):
super().__init__(suit, 'Fucile Da Caccia', number) super().__init__(suit, 'Fucile Da Caccia', number)
self.icon = '🌂' self.icon = '🌂'
self.desc = "Spara a un giocatore a prescindere dalla distanza" self.desc = "Spara a un giocatore a prescindere dalla distanza"
self.alt_text = "👤💥"
self.need_target = True self.need_target = True
self.usable_next_turn = True self.usable_next_turn = True
self.can_be_used_now = False self.can_be_used_now = False