diff --git a/backend/bang/expansions/fistful_of_cards/card_events.py b/backend/bang/expansions/fistful_of_cards/card_events.py index 6ae3830..e778310 100644 --- a/backend/bang/expansions/fistful_of_cards/card_events.py +++ b/backend/bang/expansions/fistful_of_cards/card_events.py @@ -9,93 +9,93 @@ class CardEvent(ABC): class Agguato(CardEvent): def __init__(self): super().__init__("Agguato", "🛁") - self.desc = "La distanza base tra 2 qualsiasi giocatori è 1" - self.desc_eng = "The base distance from any 2 players is 1" + #self.desc = "La distanza base tra 2 qualsiasi giocatori è 1" + #self.desc_eng = "The base distance from any 2 players is 1" class Cecchino(CardEvent): def __init__(self): super().__init__("Cecchino", "👁") - self.desc = "Nel proprio turno i giocatori possono scartare 2 Bang assieme per sparare un bang che necessita 2 mancato (clicca la carta)" - self.desc_eng = "During their turn, players can discard 2 Bang! to shoot a bang that requires 2 missed (click the card)" + #self.desc = "Nel proprio turno i giocatori possono scartare 2 Bang assieme per sparare un bang che necessita 2 mancato (clicca la carta)" + #self.desc_eng = "During their turn, players can discard 2 Bang! to shoot a bang that requires 2 missed (click the card)" class DeadMan(CardEvent): def __init__(self): super().__init__("Dead Man", "⚰️") - self.desc = "Al proprio turno il giocatore che è morto per primo torna in vita con 2 vite e 2 carte" - self.desc_eng = "The first player that died returns back to life with 2 hp and 2 cards" + #self.desc = "Al proprio turno il giocatore che è morto per primo torna in vita con 2 vite e 2 carte" + #self.desc_eng = "The first player that died returns back to life with 2 hp and 2 cards" class FratelliDiSangue(CardEvent): def __init__(self): super().__init__("Fratelli Di Sangue", "💉") - self.desc = "All'inizio del proprio turno, i giocatori possono perdere 1 vita (tranne l'ultimo) per darla a un altro giocatore" - self.desc_eng = "At the begin of their turn, payers can lose 1 hp (except the last one) to give it to another player" + #self.desc = "All'inizio del proprio turno, i giocatori possono perdere 1 vita (tranne l'ultimo) per darla a un altro giocatore" + #self.desc_eng = "At the begin of their turn, payers can lose 1 hp (except the last one) to give it to another player" class IlGiudice(CardEvent): def __init__(self): super().__init__("Il Giudice", "👨‍⚖️") - self.desc = "Non si possono equipaggiare carte a se stessi o agli altri" - self.desc_eng = "You can't equip cards on your or other players" + #self.desc = "Non si possono equipaggiare carte a se stessi o agli altri" + #self.desc_eng = "You can't equip cards on your or other players" class Lazo(CardEvent): def __init__(self): super().__init__("Lazo", "📿") - self.desc = "Le carte equipaggiate non hanno effetto" - self.desc_eng = "Cards in the equipment slot do not work" + #self.desc = "Le carte equipaggiate non hanno effetto" + #self.desc_eng = "Cards in the equipment slot do not work" class LeggeDelWest(CardEvent): def __init__(self): super().__init__("Legge Del West", "⚖️") - self.desc = "I giocatori mostrano la seconda carta che pescano e sono obbligati a usarla in quel turno (se possibile)" - self.desc_eng = "Every player shows the second card that they draw and must use it in that round (if it is possible)" + #self.desc = "I giocatori mostrano la seconda carta che pescano e sono obbligati a usarla in quel turno (se possibile)" + #self.desc_eng = "Every player shows the second card that they draw and must use it in that round (if it is possible)" class LiquoreForte(CardEvent): def __init__(self): super().__init__("Liquore Forte", "🥃") - self.desc = "I giocatori possono evitare di pescare per recuperare 1 vita (clicca sulla carta evento per farlo)" - self.desc_eng = "Players can skip drawing to regain 1 HP (click on the event card to use)" + #self.desc = "I giocatori possono evitare di pescare per recuperare 1 vita (clicca sulla carta evento per farlo)" + #self.desc_eng = "Players can skip drawing to regain 1 HP (click on the event card to use)" class MinieraAbbandonata(CardEvent): def __init__(self): super().__init__("Miniera Abbandonata", "⛏") - self.desc = "I giocatori pescano dagli scarti nella loro fase 1 e scartano in cima al mazzo nella loro fase 3 (se gli scarti finiscono, è necessario pescare e scartare in cima al mazzo)" + #self.desc = "I giocatori pescano dagli scarti nella loro fase 1 e scartano in cima al mazzo nella loro fase 3 (se gli scarti finiscono, è necessario pescare e scartare in cima al mazzo)" #TODO: cambiare anche la descrizione inglese - self.desc_eng = "Players draw from the discarded pile and discard to the top of the deck (if the discards run out, they must draw and discard on top of the deck)" + #self.desc_eng = "Players draw from the discarded pile and discard to the top of the deck (if the discards run out, they must draw and discard on top of the deck)" class PerUnPugnoDiCarte(CardEvent): def __init__(self): super().__init__("Per Un Pugno Di Carte", "🎴") - self.desc = "All'inizio del proprio turno, il giocatore subisce tanti bang quante carte ha in mano" - self.desc_eng = "On the beginning of his turn, the player is target of as many Bang as how many cards he has in his hand" + #self.desc = "All'inizio del proprio turno, il giocatore subisce tanti bang quante carte ha in mano" + #self.desc_eng = "On the beginning of his turn, the player is target of as many Bang as how many cards he has in his hand" class Peyote(CardEvent): def __init__(self): super().__init__("Peyote", "🌵") - self.desc = "Invece che pescare il giocatore prova a indovinare il colore del seme, se lo indovina aggiunge la carta alla mano e continua provando ad indovinare la carta successiva" - self.desc_eng = "Instead of drawing, the player tries to guess the color of the suit, if he's right he adds the card to the hand and continues trying to guess the next card" + #self.desc = "Invece che pescare il giocatore prova a indovinare il colore del seme, se lo indovina aggiunge la carta alla mano e continua provando ad indovinare la carta successiva" + #self.desc_eng = "Instead of drawing, the player tries to guess the color of the suit, if he's right he adds the card to the hand and continues trying to guess the next card" class Ranch(CardEvent): def __init__(self): super().__init__("Ranch", "🐮") - self.desc = "Dopo aver pescato il giocatore può scartare quante carte vuole dalla mano e pescarne altrettante dal mazzo" - self.desc_eng = "After drawing, the player can discard as many cards as he wants from his hand and draw as many from the deck" + #self.desc = "Dopo aver pescato il giocatore può scartare quante carte vuole dalla mano e pescarne altrettante dal mazzo" + #self.desc_eng = "After drawing, the player can discard as many cards as he wants from his hand and draw as many from the deck" class Rimbalzo(CardEvent): def __init__(self): super().__init__("Rimbalzo", "⏮") - self.desc = "Il giocatore di turno può giocare bang contro le carte equipaggiate dagli altri giocatori, se non giocano mancato vengono scartate (clicca la carta evento)" - self.desc_eng = "The player can play bang against the cards equipped by the other players, if they do not play miss they are discarded (click the event card)" + #self.desc = "Il giocatore di turno può giocare bang contro le carte equipaggiate dagli altri giocatori, se non giocano mancato vengono scartate (clicca la carta evento)" + #self.desc_eng = "The player can play bang against the cards equipped by the other players, if they do not play miss they are discarded (click the event card)" class RouletteRussa(CardEvent): def __init__(self): super().__init__("Roulette Russa", "🇷🇺") - self.desc = "A partire dallo sceriffo, ogni giocatore scarta 1 mancato, il primo che non lo fa perde 2 vite" - self.desc_eng = "Starting from the sheriff, every player discards 1 missed, the first one that doesn't loses 2 HP" + #self.desc = "A partire dallo sceriffo, ogni giocatore scarta 1 mancato, il primo che non lo fa perde 2 vite" + #self.desc_eng = "Starting from the sheriff, every player discards 1 missed, the first one that doesn't loses 2 HP" class Vendetta(CardEvent): def __init__(self): super().__init__("Vendetta", "😤") - self.desc = "Alla fine del proprio turno il giocatore estrae dal mazzo, se esce ♥️ gioca un altro turno (ma non estrae di nuovo)" - self.desc_eng = "When ending the turn, the player flips a card from the deck, if it's ♥️ he plays another turn (but he does not flip another card)" + #self.desc = "Alla fine del proprio turno il giocatore estrae dal mazzo, se esce ♥️ gioca un altro turno (ma non estrae di nuovo)" + #self.desc_eng = "When ending the turn, the player flips a card from the deck, if it's ♥️ he plays another turn (but he does not flip another card)" def get_endgame_card(): end_game = PerUnPugnoDiCarte() diff --git a/backend/bang/expansions/high_noon/card_events.py b/backend/bang/expansions/high_noon/card_events.py index e0e0f67..ba50575 100644 --- a/backend/bang/expansions/high_noon/card_events.py +++ b/backend/bang/expansions/high_noon/card_events.py @@ -4,92 +4,92 @@ from bang.expansions.fistful_of_cards.card_events import CardEvent class Benedizione(CardEvent): def __init__(self): super().__init__("Benedizione", "🙏") - self.desc = "Tutte le carte sono considerate di cuori ♥️" - self.desc_eng = "All cards are of hearts ♥️" + #self.desc = "Tutte le carte sono considerate di cuori ♥️" + #self.desc_eng = "All cards are of hearts ♥️" class Maledizione(CardEvent): def __init__(self): super().__init__("Maledizione", "🤬") - self.desc = "Tutte le carte sono considerate di picche ♠" - self.desc_eng = "All cards are of spades ♠" + #self.desc = "Tutte le carte sono considerate di picche ♠" + #self.desc_eng = "All cards are of spades ♠" class Sbornia(CardEvent): def __init__(self): super().__init__("Sbornia", "🥴") - self.desc = "I personaggi perdono le loro abilità speciali" - self.desc_eng = "The characters lose their special abilities" + #self.desc = "I personaggi perdono le loro abilità speciali" + #self.desc_eng = "The characters lose their special abilities" class Sete(CardEvent): def __init__(self): super().__init__("Sete", "🥵") - self.desc = "I giocatori pescano 1 carta in meno nella loro fase 1" - self.desc_eng = "Players only draw 1 card at the start of their turn" + #self.desc = "I giocatori pescano 1 carta in meno nella loro fase 1" + #self.desc_eng = "Players only draw 1 card at the start of their turn" class IlTreno(CardEvent): def __init__(self): super().__init__("Il Treno", "🚂") - self.desc = "I giocatori pescano 1 carta extra nella loro fase 1" - self.desc_eng = "Players draw 1 extra card" + #self.desc = "I giocatori pescano 1 carta extra nella loro fase 1" + #self.desc_eng = "Players draw 1 extra card" class IlReverendo(CardEvent): def __init__(self): super().__init__("Il Reverendo", "⛪️") - self.desc = "Non si possono giocare le carte Birra" - self.desc_eng = "Beers can't be played" + #self.desc = "Non si possono giocare le carte Birra" + #self.desc_eng = "Beers can't be played" class IlDottore(CardEvent): def __init__(self): super().__init__("Il Dottore", "👨‍⚕️") - self.desc = "Il/i giocatore/i con meno vite ne recupera/no una" - self.desc_eng = "The player with the least amount of HP gets healed 1" + #self.desc = "Il/i giocatore/i con meno vite ne recupera/no una" + #self.desc_eng = "The player with the least amount of HP gets healed 1" class Sermone(CardEvent): def __init__(self): super().__init__("Sermone", "✝️") - self.desc = "I giocatori non possono giocare Bang! durante il loro turno" - self.desc_eng = "Players can't play Bang! during their turn" + #self.desc = "I giocatori non possono giocare Bang! durante il loro turno" + #self.desc_eng = "Players can't play Bang! during their turn" class Sparatoria(CardEvent): def __init__(self): super().__init__("Sparatoria", "🔫🔫") - self.desc = "Il limite di Bang! per turno è 2 invece che 1" - self.desc_eng = "The turn Bang! limit is 2" + #self.desc = "Il limite di Bang! per turno è 2 invece che 1" + #self.desc_eng = "The turn Bang! limit is 2" class CorsaAllOro(CardEvent): def __init__(self): super().__init__("Corsa All'Oro", "🌟") - self.desc = "Si gioca per un intero giro in senso antiorario, tuttavia gli effetti delle carte rimangono invariati" - self.desc_eng = "Turns are played counter clockwise" + #self.desc = "Si gioca per un intero giro in senso antiorario, tuttavia gli effetti delle carte rimangono invariati" + #self.desc_eng = "Turns are played counter clockwise" class IDalton(CardEvent): def __init__(self): super().__init__("I Dalton", "🙇‍♂️") - self.desc = "Chi ha carte blu in gioco ne scarta 1 a sua scelta" - self.desc_eng = "Players that have blue cards equipped, discard 1 of those card of their choice" + #self.desc = "Chi ha carte blu in gioco ne scarta 1 a sua scelta" + #self.desc_eng = "Players that have blue cards equipped, discard 1 of those card of their choice" class Manette(CardEvent): def __init__(self): super().__init__("Manette", "🔗") - self.desc = "Dopo aver pescato in fase 1, il giocatore di turno dichiara un seme: potrà usare solamente carte di quel seme nel suo turno" - self.desc_eng = "" + #self.desc = "Dopo aver pescato in fase 1, il giocatore di turno dichiara un seme: potrà usare solamente carte di quel seme nel suo turno" + #self.desc_eng = "" class NuovaIdentita(CardEvent): def __init__(self): super().__init__("Nuova Identità", "🕶") - self.desc = "All'inizio del proprio turno, ogni giocatore potrà decidere se sostituire il suo personaggio attuale con quello era stato proposto ad inizio partita, se lo fa riparte con 2 punti vita" - self.desc_eng = "" + #self.desc = "All'inizio del proprio turno, ogni giocatore potrà decidere se sostituire il suo personaggio attuale con quello era stato proposto ad inizio partita, se lo fa riparte con 2 punti vita" + #self.desc_eng = "" class CittaFantasma(CardEvent): def __init__(self): super().__init__("Città Fantasma", "👻") - self.desc = "Tutti i giocatori morti tornano in vita al proprio turno, non possono morire e pescano 3 carte invece che 2. Quando terminano il turno tornano morti." - self.desc_eng = "All dead players come back to life in their turn, they can't die and draw 3 cards instead of 2. When they end their turn the die." + #self.desc = "Tutti i giocatori morti tornano in vita al proprio turno, non possono morire e pescano 3 carte invece che 2. Quando terminano il turno tornano morti." + #self.desc_eng = "All dead players come back to life in their turn, they can't die and draw 3 cards instead of 2. When they end their turn the die." class MezzogiornoDiFuoco(CardEvent): def __init__(self): super().__init__("Mezzogiorno di Fuoco", "🔥") - self.desc = "Ogni giocatore perde 1 punto vita all'inizio del turno" - self.desc_eng = "Every player loses 1 HP when their turn starts" + #self.desc = "Ogni giocatore perde 1 punto vita all'inizio del turno" + #self.desc_eng = "Every player loses 1 HP when their turn starts" def get_endgame_card(): end_game = MezzogiornoDiFuoco() diff --git a/frontend/src/components/Deck.vue b/frontend/src/components/Deck.vue index 6262936..a8dbfdb 100644 --- a/frontend/src/components/Deck.vue +++ b/frontend/src/components/Deck.vue @@ -20,7 +20,7 @@ -

{{($i18n.locale=='it'?eventCard.desc:eventCard.desc_eng)}}

+

{{eventDesc}}

{{desc}}

@@ -83,6 +83,12 @@ export default { } classes[this.eventCard.expansion] = true return classes + }, + eventDesc() { + if (this.eventCard.name !== 'PewPew!'){ + return this.$t(`cards.${this.eventCard.name}.desc`) + } + return "" } }, methods: { diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index d95b991..d72d578 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -430,6 +430,110 @@ }, "Vice": { "name": "Deputy" + }, + "Miniera Abbandonata": { + "name": "Abandoned Mine", + "desc": "Players draw from the discarded pile and discard to the top of the deck (if the discards run out, they must draw and discard on top of the deck)" + }, + "Il Giudice": { + "name": "The Judge", + "desc": "You can't equip cards on your or other players" + }, + "Agguato": { + "name": "Ambush", + "desc": "The base distance from any 2 players is 1" + }, + "Rimbalzo": { + "name": "Ricochet", + "desc": "The player can play bang against the cards equipped by the other players, if they do not play miss they are discarded (click the event card)" + }, + "Cecchino": { + "name": "Sniper", + "desc": "During their turn, players can discard 2 Bang! to shoot a bang that requires 2 missed (click the card)" + }, + "Lazo": { + "name": "Lasso", + "desc": "Cards in the equipment slot do not work" + }, + "Ranch": { + "name": "Ranch", + "desc": "After drawing, the player can discard as many cards as he wants from his hand and draw as many from the deck" + }, + "Dead Man": { + "name": "Dead Man", + "desc": "The first player that died returns back to life with 2 hp and 2 cards" + }, + "Liquore Forte": { + "name": "Hard Liquor", + "desc": "Players can skip drawing to regain 1 HP (click on the event card to use)" + }, + "Vendetta": { + "name": "Vendetta", + "desc": "When ending the turn, the player flips a card from the deck, if it's \u2665\ufe0f he plays another turn (but he does not flip another card)" + }, + "Roulette Russa": { + "name": "Russian Roulette", + "desc": "Starting from the sheriff, every player discards 1 missed, the first one that doesn't loses 2 HP" + }, + "Legge Del West": { + "name": "Law Of The West", + "desc": "Every player shows the second card that they draw and must use it in that round (if it is possible)" + }, + "Peyote": { + "name": "Peyote", + "desc": "Instead of drawing, the player tries to guess the color of the suit, if he's right he adds the card to the hand and continues trying to guess the next card" + }, + "Fratelli Di Sangue": { + "name": "Blood Brothers", + "desc": "At the begin of their turn, payers can lose 1 hp (except the last one) to give it to another player" + }, + "I Dalton": { + "name": "The Daltons", + "desc": "Players that have blue cards equipped, discard 1 of those card of their choice" + }, + "Sermone": { + "name": "The Sermon", + "desc": "Players can't play Bang! during their turn" + }, + "Citt\u00e0 Fantasma": { + "name": "Ghost Town", + "desc": "All dead players come back to life in their turn, they can't die and draw 3 cards instead of 2. When they end their turn the die." + }, + "Il Reverendo": { + "name": "The Reverend", + "desc": "Beers can't be played" + }, + "Sbornia": { + "name": "Hangover", + "desc": "The characters lose their special abilities" + }, + "Il Dottore": { + "name": "The Doctor", + "desc": "The player with the least amount of HP gets healed 1" + }, + "Corsa All'Oro": { + "name": "Gold Rush", + "desc": "Turns are played counter clockwise" + }, + "Maledizione": { + "name": "Curse", + "desc": "All cards are of spades \u2660" + }, + "Sparatoria": { + "name": "Shootout", + "desc": "The turn Bang! limit is 2" + }, + "Benedizione": { + "name": "Blessing", + "desc": "All cards are of hearts \u2665\ufe0f" + }, + "Il Treno": { + "name": "Train Arrival", + "desc": "Players draw 1 extra card" + }, + "Sete": { + "name": "Thirst", + "desc": "Players only draw 1 card at the start of their turn" } }, "help": { @@ -475,4 +579,4 @@ "allcharacters": "All characters", "gotoallcharacters": "Jump to all characters" } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json index b8b8734..4ecf565 100644 --- a/frontend/src/i18n/it.json +++ b/frontend/src/i18n/it.json @@ -430,6 +430,110 @@ }, "Vice": { "name": "Vice" + }, + "Peyote": { + "name": "Peyote", + "desc": "Invece che pescare il giocatore prova a indovinare il colore del seme, se lo indovina aggiunge la carta alla mano e continua provando ad indovinare la carta successiva" + }, + "Legge Del West": { + "name": "Legge Del West", + "desc": "I giocatori mostrano la seconda carta che pescano e sono obbligati a usarla in quel turno (se possibile)" + }, + "Cecchino": { + "name": "Cecchino", + "desc": "Nel proprio turno i giocatori possono scartare 2 Bang assieme per sparare un bang che necessita 2 mancato (clicca la carta)" + }, + "Ranch": { + "name": "Ranch", + "desc": "Dopo aver pescato il giocatore pu\u00f2 scartare quante carte vuole dalla mano e pescarne altrettante dal mazzo" + }, + "Miniera Abbandonata": { + "name": "Miniera Abbandonata", + "desc": "I giocatori pescano dagli scarti nella loro fase 1 e scartano in cima al mazzo nella loro fase 3 (se gli scarti finiscono, \u00e8 necessario pescare e scartare in cima al mazzo)" + }, + "Lazo": { + "name": "Lazo", + "desc": "Le carte equipaggiate non hanno effetto" + }, + "Vendetta": { + "name": "Vendetta", + "desc": "Alla fine del proprio turno il giocatore estrae dal mazzo, se esce \u2665\ufe0f gioca un altro turno (ma non estrae di nuovo)" + }, + "Rimbalzo": { + "name": "Rimbalzo", + "desc": "Il giocatore di turno pu\u00f2 giocare bang contro le carte equipaggiate dagli altri giocatori, se non giocano mancato vengono scartate (clicca la carta evento)" + }, + "Agguato": { + "name": "Agguato", + "desc": "La distanza base tra 2 qualsiasi giocatori \u00e8 1" + }, + "Fratelli Di Sangue": { + "name": "Fratelli Di Sangue", + "desc": "All'inizio del proprio turno, i giocatori possono perdere 1 vita (tranne l'ultimo) per darla a un altro giocatore" + }, + "Dead Man": { + "name": "Dead Man", + "desc": "Al proprio turno il giocatore che \u00e8 morto per primo torna in vita con 2 vite e 2 carte" + }, + "Roulette Russa": { + "name": "Roulette Russa", + "desc": "A partire dallo sceriffo, ogni giocatore scarta 1 mancato, il primo che non lo fa perde 2 vite" + }, + "Liquore Forte": { + "name": "Liquore Forte", + "desc": "I giocatori possono evitare di pescare per recuperare 1 vita (clicca sulla carta evento per farlo)" + }, + "Il Giudice": { + "name": "Il Giudice", + "desc": "Non si possono equipaggiare carte a se stessi o agli altri" + }, + "Maledizione": { + "name": "Maledizione", + "desc": "Tutte le carte sono considerate di picche \u2660" + }, + "Corsa All'Oro": { + "name": "Corsa All'Oro", + "desc": "Si gioca per un intero giro in senso antiorario, tuttavia gli effetti delle carte rimangono invariati" + }, + "Il Reverendo": { + "name": "Il Reverendo", + "desc": "Non si possono giocare le carte Birra" + }, + "Sete": { + "name": "Sete", + "desc": "I giocatori pescano 1 carta in meno nella loro fase 1" + }, + "I Dalton": { + "name": "I Dalton", + "desc": "Chi ha carte blu in gioco ne scarta 1 a sua scelta" + }, + "Citt\u00e0 Fantasma": { + "name": "Citt\u00e0 Fantasma", + "desc": "Tutti i giocatori morti tornano in vita al proprio turno, non possono morire e pescano 3 carte invece che 2. Quando terminano il turno tornano morti." + }, + "Sermone": { + "name": "Sermone", + "desc": "I giocatori non possono giocare Bang! durante il loro turno" + }, + "Il Treno": { + "name": "Il Treno", + "desc": "I giocatori pescano 1 carta extra nella loro fase 1" + }, + "Benedizione": { + "name": "Benedizione", + "desc": "Tutte le carte sono considerate di cuori \u2665\ufe0f" + }, + "Il Dottore": { + "name": "Il Dottore", + "desc": "Il/i giocatore/i con meno vite ne recupera/no una" + }, + "Sparatoria": { + "name": "Sparatoria", + "desc": "Il limite di Bang! per turno \u00e8 2 invece che 1" + }, + "Sbornia": { + "name": "Sbornia", + "desc": "I personaggi perdono le loro abilit\u00e0 speciali" } }, "help": { @@ -475,4 +579,4 @@ "gotoallcharacters": "Visualizza tutti i personaggi", "allcharacters": "Tutti i personaggi" } -} +} \ No newline at end of file