Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Languages: Balatro in French and Chinese
Mason Chen68fdc96562ca
diff --git a/games/balatro/Makefile b/games/balatro/Makefileindex c6a64bd6..3201f4f1 100644--- a/games/balatro/Makefile+++ b/games/balatro/Makefile@@ -11,6 +11,11 @@ PY ?= python3BUILD_DIR = outputSRC = $(wildcard src/*.c)HDR = $(wildcard src/*.h)+# NumPlay's language builds (NP_TEXT_EXTRA on in ../common/np_text.h): the names and descriptions,+# translated in src/texts.h, become output/texts.c (tools/mktexts.py) instead of data.c's+ifeq ($(shell grep -q 'define NP_TEXT_EXTRA 1' ../common/np_text.h && echo 1),1)+SRC += $(BUILD_DIR)/texts.c+endifCFLAGS = -std=c99 $(shell $(NWLINK) eadk-cflags-device)CFLAGS += -Os -Wall -fno-math-errno -fno-tree-loop-distribute-patterns -fno-reorder-functions -flto-partition=one@@ -41,6 +46,9 @@ $(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)$(BUILD_DIR):$(Q) mkdir -p $@+$(BUILD_DIR)/texts.c: src/texts.h tools/mktexts.py tools/mkdata.py | $(BUILD_DIR)+ $(Q) $(PY) tools/mktexts.py src/texts.h $@+assets:$(Q) $(PY) tools/mkassets.pydiff --git a/games/balatro/lang/fr.txt b/games/balatro/lang/fr.txtnew file mode 100644index 00000000..d4a863fa--- /dev/null+++ b/games/balatro/lang/fr.txt@@ -0,0 +1,763 @@+# Balatro in French: the English text as in the source, a tab, the translation (see tools/lang.py).+# Names and descriptions (src/texts.h) in the game's markup: {C:mult}...{} a colour, #1# a value;+# other texts: \004 and the like are colour codes (src/gfx.h). Mult is Multi, Chips Jetons, as in the+# game in French. Tooltip lines stay short (about 30 letters); buttons are small.+Joker Joker+{C:mult}+#1#{} Mult {C:mult}+#1#{} Multi+Greedy Joker Joker avide+Played cards with\n{C:attention}#2#{} suit give\n{C:mult}+#1#{} Mult when scored Les cartes jouées de\n{C:attention}#2#{} donnent\n{C:mult}+#1#{} Multi quand elles comptent+Lusty Joker Joker lubrique+Played cards with\n{C:mult}#2#{} suit give\n{C:mult}+#1#{} Mult when scored Les cartes jouées de\n{C:mult}#2#{} donnent\n{C:mult}+#1#{} Multi quand elles comptent+Wrathful Joker Joker courroucé+Played cards with\n{C:spades}#2#{} suit give\n{C:mult}+#1#{} Mult when scored Les cartes jouées de\n{C:spades}#2#{} donnent\n{C:mult}+#1#{} Multi quand elles comptent+Gluttonous Joker Joker glouton+Jolly Joker Joker jovial+{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2# {C:mult}+#1#{} Multi si la main\njouée contient\n{C:attention}#2#+Zany Joker Joker loufoque+Mad Joker Joker fou+Crazy Joker Joker dingue+Droll Joker Joker drôle+Sly Joker Joker sournois+{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2# {C:chips}+#1#{} Jetons si la main\njouée contient\n{C:attention}#2#+Wily Joker Joker rusé+Clever Joker Joker malin+Devious Joker Joker retors+Crafty Joker Joker astucieux+Half Joker Demi-joker+{C:mult}+#1#{} Mult if played\nhand contains\n{C:attention}#2#{} or fewer cards {C:mult}+#1#{} Multi si la main\njouée contient\n{C:attention}#2#{} cartes ou moins+Joker Stencil Joker pochoir+{X:mult,C:white} X1 {} Mult for each\nempty {C:attention}Joker{} slot\nJoker Stencil included\n{C:inactive}(Currently {X:mult,C:white} X#1# {C:inactive}) {X:mult,C:white} X1 {} Multi par\nemplacement de {C:attention}Joker{} vide\n(Joker pochoir compris)\n{C:inactive}(Actuellement {X:mult,C:white} X#1# {C:inactive})+Four Fingers Quatre doigts+All {C:attention}Flushes{} and\n{C:attention}Straights{} can be\nmade with {C:attention}4{} cards Les {C:attention}Couleurs{} et\n{C:attention}Quintes{} peuvent se\nfaire avec {C:attention}4{} cartes+Mime Mime+Retrigger all\ncard {C:attention}held in\n{C:attention}hand{} abilities Redéclenche les\ncapacités des cartes\n{C:attention}en main+Credit Card Carte de crédit+Go up to\n{C:mult}-$#1#{} in debt Endettement possible\njusqu'à {C:mult}-$#1#+Ceremonial Dagger Dague cérémonielle+When {C:attention}Blind{} is selected,\ndestroy Joker to the right\nand permanently add {C:attention}double\nits sell value to this {C:mult}Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult) Quand une {C:attention}Blind{} est choisie,\ndétruit le Joker à droite et\najoute {C:attention}le double{} de sa valeur\nde vente à ce {C:mult}Multi\n{C:inactive}(Actuellement {C:mult}+#1#{C:inactive} Multi)+Banner Bannière+{C:chips}+#1#{} Chips for\neach remaining\n{C:attention}discard {C:chips}+#1#{} Jetons par\n{C:attention}défausse{} restante+Mystic Summit Sommet mystique+{C:mult}+#1#{} Mult when\n{C:attention}#2#{} discards\nremaining {C:mult}+#1#{} Multi quand il\nreste {C:attention}#2#{} défausse+Marble Joker Joker de marbre+Adds one {C:attention}Stone{} card\nto deck when\n{C:attention}Blind{} is selected Ajoute une carte de\n{C:attention}pierre{} au jeu quand\nune {C:attention}Blind{} est choisie+Loyalty Card Carte de fidélité+{X:mult,C:white} X#1# {} Mult every\n{C:attention}#2#{} hands played\n{C:inactive}#3# {X:mult,C:white} X#1# {} Multi toutes\nles {C:attention}#2#{} mains jouées\n{C:inactive}#3#+8 Ball Boule 8+{C:green}#1# in #2#{} chance for each\nplayed {C:attention}8{} to create a\n{C:tarot}Tarot{} card when scored\n{C:inactive}(Must have room) Chaque {C:attention}8{} joué a {C:green}#1# chance\nsur #2#{} de créer une carte\n{C:tarot}Tarot{} quand il compte\n{C:inactive}(Place requise)+Misprint Erreur d'impression+Dusk Crépuscule+Retrigger all played\ncards in {C:attention}final\n{C:attention}hand{} of round Redéclenche toutes les\ncartes jouées lors de la\n{C:attention}dernière main{} de la manche+Raised Fist Poing levé+Adds {C:attention}double{} the rank\nof {C:attention}lowest{} ranked card\nheld in hand to Mult Ajoute au Multi {C:attention}le double\nde la valeur de la carte\nen main la {C:attention}plus faible+Chaos the Clown Chaos le clown+{C:attention}#1#{} free {C:green}Reroll\nper shop {C:attention}#1#{} {C:green}relance{} gratuite\npar boutique+Fibonacci Fibonacci+Each played {C:attention}Ace{},\n{C:attention}2{}, {C:attention}3{}, {C:attention}5{}, or {C:attention}8{} gives\n{C:mult}+#1#{} Mult when scored Chaque {C:attention}As{}, {C:attention}2{}, {C:attention}3{},\n{C:attention}5{} ou {C:attention}8{} joué donne\n{C:mult}+#1#{} Multi quand il compte+Steel Joker Joker d'acier+Gives {X:mult,C:white} X#1# {} Mult\nfor each {C:attention}Steel Card\nin your {C:attention}full deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Donne {X:mult,C:white} X#1# {} Multi\npar {C:attention}carte d'acier\ndu {C:attention}jeu complet\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Scary Face Visage effrayant+Played {C:attention}face{} cards\ngive {C:chips}+#1#{} Chips\nwhen scored Les {C:attention}figures{} jouées\ndonnent {C:chips}+#1#{} Jetons\nquand elles comptent+Abstract Joker Joker abstrait+{C:mult}+#1#{} Mult for\neach {C:attention}Joker{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) {C:mult}+#1#{} Multi par\ncarte {C:attention}Joker\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive} Multi)+Delayed Gratification Gratification différée+Earn {C:money}$#1#{} per {C:attention}discard{} if\nno discards are used\nby end of the round Gagne {C:money}$#1#{} par {C:attention}défausse\nsi aucune n'est utilisée\navant la fin de la manche+Hack Hack+Retrigger\neach played\n{C:attention}2{}, {C:attention}3{}, {C:attention}4{}, or {C:attention}5{} Redéclenche chaque\n{C:attention}2{}, {C:attention}3{}, {C:attention}4{} ou {C:attention}5{} joué+Pareidolia Paréidolie+All cards are\nconsidered\n{C:attention}face{} cards Toutes les cartes\nsont des {C:attention}figures+Gros Michel Gros Michel+{C:mult}+#1#{} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round {C:mult}+#1#{} Multi\n{C:green}#2# chance sur #3#{} d'être\ndétruite en fin de manche+Even Steven Steven le pair+Played cards with\n{C:attention}even{} rank give\n{C:mult}+#1#{} Mult when scored\n{C:inactive}(10, 8, 6, 4, 2) Les cartes jouées de\nvaleur {C:attention}paire{} donnent\n{C:mult}+#1#{} Multi quand elles comptent\n{C:inactive}(10, 8, 6, 4, 2)+Odd Todd Todd l'impair+Played cards with\n{C:attention}odd{} rank give\n{C:chips}+#1#{} Chips when scored\n{C:inactive}(A, 9, 7, 5, 3) Les cartes jouées de\nvaleur {C:attention}impaire{} donnent\n{C:chips}+#1#{} Jetons quand elles comptent\n{C:inactive}(A, 9, 7, 5, 3)+Scholar Érudit+Played {C:attention}Aces{}\ngive {C:chips}+#2#{} Chips\nand {C:mult}+#1#{} Mult\nwhen scored Les {C:attention}As{} joués\ndonnent {C:chips}+#2#{} Jetons\net {C:mult}+#1#{} Multi\nquand ils comptent+Business Card Carte de visite+Played {C:attention}face{} cards have\na {C:green}#1# in #2#{} chance to\ngive {C:money}$2{} when scored Les {C:attention}figures{} jouées ont\n{C:green}#1# chance sur #2#{} de\ndonner {C:money}$2{} quand elles comptent+Supernova Supernova+Adds the number of times\n{C:attention}poker hand{} has been\nplayed this run to Mult Ajoute au Multi le nombre\nde fois où cette {C:attention}main\nde poker{} a été jouée+Ride the Bus Prendre le bus+This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}consecutive{} hand\nplayed without a\nscoring {C:attention}face{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) Ce Joker gagne {C:mult}+#1#{} Multi\npar main {C:attention}consécutive{} jouée\nsans {C:attention}figure{} qui compte\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive} Multi)+Space Joker Joker de l'espace+{C:green}#1# in #2#{} chance to\nupgrade level of\nplayed {C:attention}poker hand{} {C:green}#1# chance sur #2#{} d'améliorer\nle niveau de la {C:attention}main\nde poker{} jouée+Egg Œuf+Gains {C:money}$#1#{} of\n{C:attention}sell value{} at\nend of round Gagne {C:money}$#1#{} de\n{C:attention}valeur de vente{} en\nfin de manche+Burglar Cambrioleur+When {C:attention}Blind{} is selected,\ngain {C:chips}+#1#{} Hands and\n{C:attention}lose all discards Quand une {C:attention}Blind{} est choisie,\ngagne {C:chips}+#1#{} mains et\n{C:attention}perd toutes les défausses+Blackboard Tableau noir+{X:mult,C:white} X#1# {} Mult if all\ncards held in hand\nare {C:spades}#2#{} or {C:attention}#3#{} {X:mult,C:white} X#1# {} Multi si toutes\nles cartes en main sont\ndes {C:spades}#2#{} ou des {C:attention}#3#{}+Runner Coureur+Gains {C:chips}+#2#{} Chips\nif played hand\ncontains a {C:attention}Straight{}\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips) Gagne {C:chips}+#2#{} Jetons\nsi la main jouée\ncontient une {C:attention}Quinte\n{C:inactive}(Actuellement {C:chips}+#1#{C:inactive} Jetons)+Ice Cream Crème glacée+{C:chips}+#1#{} Chips\n{C:chips}-#2#{} Chips for\nevery hand played {C:chips}+#1#{} Jetons\n{C:chips}-#2#{} Jetons par\nmain jouée+DNA ADN+If {C:attention}first hand{} of round\nhas only {C:attention}1{} card, add a\npermanent copy to deck\nand draw it to {C:attention}hand Si la {C:attention}première main{} de la\nmanche n'a qu'{C:attention}1{} carte, en\najoute une copie au jeu\net la pioche en {C:attention}main+Splash Éclaboussure+Every {C:attention}played card\ncounts in scoring Chaque {C:attention}carte jouée\ncompte dans le score+Blue Joker Joker bleu+{C:chips}+#1#{} Chips for each\nremaining card in {C:attention}deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) {C:chips}+#1#{} Jetons par carte\nrestante dans le {C:attention}jeu\n{C:inactive}(Actuellement {C:chips}+#2#{C:inactive} Jetons)+Sixth Sense Sixième sens+If {C:attention}first hand{} of round is\na single {C:attention}6{}, destroy it and\ncreate a {C:spectral}Spectral{} card\n{C:inactive}(Must have room) Si la {C:attention}première main{} de la\nmanche est un seul {C:attention}6{}, le\ndétruit et crée une carte\n{C:spectral}Spectrale\n{C:inactive}(Place requise)+Constellation Constellation+This Joker gains\n{X:mult,C:white} X#1# {} Mult every time\na {C:planet}Planet{} card is used\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne\n{X:mult,C:white} X#1# {} Multi chaque fois\nqu'une carte {C:planet}Planète{} est utilisée\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Hiker Randonneur+Every played {C:attention}card{}\npermanently gains\n{C:chips}+#1#{} Chips when scored Chaque {C:attention}carte{} jouée\ngagne définitivement\n{C:chips}+#1#{} Jetons quand elle compte+Faceless Joker Joker sans visage+Earn {C:money}$#1#{} if {C:attention}#2#{} or\nmore {C:attention}face cards{}\nare discarded\nat the same time Gagne {C:money}$#1#{} si {C:attention}#2#{} ou\nplus {C:attention}figures{} sont\ndéfaussées en même temps+Green Joker Joker vert+{C:mult}+#1#{} Mult per hand played\n{C:mult}-#2#{} Mult per discard\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) {C:mult}+#1#{} Multi par main jouée\n{C:mult}-#2#{} Multi par défausse\n{C:inactive}(Actuellement {C:mult}+#3#{C:inactive} Multi)+Superposition Superposition+Create a {C:tarot}Tarot{} card if\npoker hand contains an\n{C:attention}Ace{} and a {C:attention}Straight{}\n{C:inactive}(Must have room) Crée une carte {C:tarot}Tarot{} si\nla main contient un {C:attention}As\net une {C:attention}Quinte\n{C:inactive}(Place requise)+To Do List Liste de tâches+Earn {C:money}$#1#{} if {C:attention}poker hand{}\nis a {C:attention}#2#{},\npoker hand changes\nat end of round Gagne {C:money}$#1#{} si la {C:attention}main\nde poker{} est : {C:attention}#2#{},\nla main change en\nfin de manche+Cavendish Cavendish+{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round {X:mult,C:white} X#1# {} Multi\n{C:green}#2# chance sur #3#{} d'être\ndétruite en fin de manche+Card Sharp Tricheur+{X:mult,C:white} X#1# {} Mult if played\n{C:attention}poker hand{} has already\nbeen played this round {X:mult,C:white} X#1# {} Multi si la {C:attention}main\nde poker{} jouée a déjà\nété jouée cette manche+Red Card Carton rouge+This Joker gains\n{C:mult}+#1#{} Mult when any\n{C:attention}Booster Pack{} is skipped\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) Ce Joker gagne\n{C:mult}+#1#{} Multi quand un\n{C:attention}paquet booster{} est passé\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive} Multi)+Madness Folie+When {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Quand la {C:attention}petite{} ou la {C:attention}grosse\nblind{} est choisie, gagne {X:mult,C:white} X#1# {} Multi\net {C:attention}détruit{} un Joker au hasard\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Square Joker Joker carré+This Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips) Ce Joker gagne {C:chips}+#2#{} Jetons\nsi la main jouée a\nexactement {C:attention}4{} cartes\n{C:inactive}(Actuellement {C:chips}#1#{C:inactive} Jetons)+Singance Séance+If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room) Si la {C:attention}main de poker\nest : {C:attention}#1#{}, crée une\ncarte {C:spectral}Spectrale{} au hasard\n{C:inactive}(Place requise)+Riff-Raff Racaille+When {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room) Quand une {C:attention}Blind{} est choisie,\ncrée {C:attention}#1#{} Jokers {C:chips}communs\n{C:inactive}(Place requise)+Vampire Vampire+This Joker gains {X:mult,C:white} X#1# {} Mult\nper scoring {C:attention}Enhanced card{} played,\nremoves card {C:attention}Enhancement\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\npar {C:attention}carte améliorée{} jouée\nqui compte, et lui retire\nson {C:attention}amélioration\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Shortcut Raccourci+Allows {C:attention}Straights{} to be\nmade with gaps of {C:attention}1 rank\n{C:inactive}(ex: {C:attention}10 8 6 5 3{C:inactive}) Les {C:attention}Quintes{} peuvent\nsauter {C:attention}1 valeur\n{C:inactive}(ex. : {C:attention}10 8 6 5 3{C:inactive})+Hologram Hologramme+This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}playing card{}\nis added to your deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\nchaque fois qu'une {C:attention}carte\nà jouer{} est ajoutée au jeu\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Vagabond Vagabond+Create a {C:tarot}Tarot{} card\nif hand is played\nwith {C:money}$#1#{} or less Crée une carte {C:tarot}Tarot\nsi la main est jouée\navec {C:money}$#1#{} ou moins+Baron Baron+Each {C:attention}King{}\nheld in hand\ngives {X:mult,C:white} X#1# {} Mult Chaque {C:attention}Roi\nen main donne\n{X:mult,C:white} X#1# {} Multi+Cloud 9 Nuage 9+Earn {C:money}$#1#{} for each\n{C:attention}9{} in your {C:attention}full deck\nat end of round\n{C:inactive}(Currently {C:money}$#2#{}{C:inactive}) Gagne {C:money}$#1#{} par {C:attention}9\ndu {C:attention}jeu complet{} en\nfin de manche\n{C:inactive}(Actuellement {C:money}$#2#{}{C:inactive})+Rocket Fusée+Earn {C:money}$#1#{} at end of round\nPayout increases by {C:money}$#2#{}\nwhen {C:attention}Boss Blind{} is defeated Gagne {C:money}$#1#{} en fin de manche\nLe gain augmente de {C:money}$#2#\nquand la {C:attention}Blind de boss\nest vaincue+Obelisk Obélisque+This Joker gains {X:mult,C:white} X#1# {} Mult\nper {C:attention}consecutive{} hand played\nwithout playing your\nmost played {C:attention}poker hand\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\npar main {C:attention}consécutive{} jouée\nsans jouer ta {C:attention}main\nde poker{} la plus jouée\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Midas Mask Masque de Midas+All played {C:attention}face{} cards\nbecome {C:attention}Gold{} cards\nwhen scored Les {C:attention}figures{} jouées\ndeviennent des cartes\n{C:attention}dorées{} quand elles comptent+Luchador Luchador+Sell this card to\ndisable the current\n{C:attention}Boss Blind{} Vends cette carte pour\ndésactiver la {C:attention}Blind\nde boss{} en cours+Photograph Photographie+First played {C:attention}face\ncard gives {X:mult,C:white} X#1# {} Mult\nwhen scored La première {C:attention}figure\njouée donne {X:mult,C:white} X#1# {} Multi\nquand elle compte+Gift Card Carte cadeau+Add {C:money}$#1#{} of {C:attention}sell value\nto every {C:attention}Joker{} and\n{C:attention}Consumable{} card at\nend of round Ajoute {C:money}$#1#{} de {C:attention}valeur\nde vente{} à chaque {C:attention}Joker\net {C:attention}consommable{} en\nfin de manche+Turtle Bean Haricot tortue+{C:attention}+#1#{} hand size,\nreduces by\n{C:mult}#2#{} every round {C:attention}+#1#{} taille de main,\ndiminue de {C:mult}#2#\nà chaque manche+Erosion Érosion+{C:mult}+#1#{} Mult for each\ncard below {C:attention}#3#{}\nin your full deck\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) {C:mult}+#1#{} Multi par carte\nsous les {C:attention}#3#{} du\njeu complet\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive} Multi)+Reserved Parking Stationnement réservé+Each {C:attention}face{} card\nheld in hand has\na {C:green}#2# in #3#{} chance\nto give {C:money}$#1#{} Chaque {C:attention}figure{} en main\na {C:green}#2# chance sur #3#\nde donner {C:money}$#1#+Mail-In Rebate Remise par courrier+Earn {C:money}$#1#{} for each\ndiscarded {C:attention}#2#{}, rank\nchanges every round Gagne {C:money}$#1#{} par {C:attention}#2#\ndéfaussé, la valeur\nchange à chaque manche+To the Moon Jusqu'à la Lune+Earn an extra {C:money}$#1#{} of\n{C:attention}interest{} for every {C:money}$5{} you\nhave at end of round Gagne {C:money}$#1#{} d'{C:attention}intérêts\nen plus pour chaque {C:money}$5\nen fin de manche+Hallucination Hallucination+{C:green}#1# in #2#{} chance to create\na {C:tarot}Tarot{} card when any\n{C:attention}Booster Pack{} is opened\n{C:inactive}(Must have room) {C:green}#1# chance sur #2#{} de créer\nune carte {C:tarot}Tarot{} quand un\n{C:attention}paquet booster{} est ouvert\n{C:inactive}(Place requise)+Fortune Teller Diseuse de bonne aventure+{C:mult}+#1#{} Mult per {C:tarot}Tarot{}\ncard used this run\n{C:inactive}(Currently {C:mult}+#2#{C:inactive}) {C:mult}+#1#{} Multi par carte\n{C:tarot}Tarot{} utilisée dans la partie\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive})+Juggler Jongleur+{C:attention}+#1#{} hand size {C:attention}+#1#{} taille de main+Drunkard Ivrogne+{C:mult}+#1#{} discard\neach round {C:mult}+#1#{} défausse\npar manche+Stone Joker Joker de pierre+Gives {C:chips}+#1#{} Chips for\neach {C:attention}Stone Card\nin your {C:attention}full deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) Donne {C:chips}+#1#{} Jetons par\n{C:attention}carte de pierre\ndu {C:attention}jeu complet\n{C:inactive}(Actuellement {C:chips}+#2#{C:inactive} Jetons)+Golden Joker Joker doré+Earn {C:money}$#1#{} at\nend of round Gagne {C:money}$#1#{} en\nfin de manche+Lucky Cat Chat porte-bonheur+This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}Lucky{} card\n{C:green}successfully{} triggers\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\nchaque fois qu'une carte\n{C:attention}chanceuse{} se déclenche\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Baseball Card Carte de baseball+{C:green}Uncommon{} Jokers\neach give {X:mult,C:white} X#1# {} Mult Chaque Joker {C:green}peu commun\ndonne {X:mult,C:white} X#1# {} Multi+Bull Taureau+{C:chips}+#1#{} Chips for\neach {C:money}$1{} you have\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) {C:chips}+#1#{} Jetons par\n{C:money}$1{} possédé\n{C:inactive}(Actuellement {C:chips}+#2#{C:inactive} Jetons)+Diet Cola Soda light+Sell this card to\ncreate a free\n{C:attention}#1# Vends cette carte pour\nobtenir gratuitement\nun {C:attention}#1#+Trading Card Carte à échanger+If {C:attention}first discard{} of round\nhas only {C:attention}1{} card, destroy\nit and earn {C:money}$#1# Si la {C:attention}première défausse{} de\nla manche n'a qu'{C:attention}1{} carte,\nla détruit et gagne {C:money}$#1#+Flash Card Carte flash+This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}reroll{} in the shop\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) Ce Joker gagne {C:mult}+#1#{} Multi\npar {C:attention}relance{} en boutique\n{C:inactive}(Actuellement {C:mult}+#2#{C:inactive} Multi)+Popcorn Pop-corn+{C:mult}+#1#{} Mult\n{C:mult}-#2#{} Mult per\nround played {C:mult}+#1#{} Multi\n{C:mult}-#2#{} Multi par\nmanche jouée+Spare Trousers Pantalon de rechange+This Joker gains {C:mult}+#1#{} Mult\nif played hand contains\na {C:attention}#2#\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) Ce Joker gagne {C:mult}+#1#{} Multi\nsi la main jouée\ncontient {C:attention}#2#\n{C:inactive}(Actuellement {C:mult}+#3#{C:inactive} Multi)+Ancient Joker Joker antique+Each played card with\n{C:attention}#2#{} suit gives\n{X:mult,C:white} X#1# {} Mult when scored,\nsuit changes at end of round Chaque carte jouée de\n{C:attention}#2#{} donne {X:mult,C:white} X#1# {} Multi\nquand elle compte, la couleur\nchange en fin de manche+Ramen Ramen+{X:mult,C:white} X#1# {} Mult,\nloses {X:mult,C:white} X#2# {} Mult\nper {C:attention}card{} discarded {X:mult,C:white} X#1# {} Multi,\nperd {X:mult,C:white} X#2# {} Multi\npar {C:attention}carte{} défaussée+Walkie Talkie Talkie-walkie+Each played {C:attention}10{} or {C:attention}4\ngives {C:chips}+#1#{} Chips and\n{C:mult}+#2#{} Mult when scored Chaque {C:attention}10{} ou {C:attention}4{} joué\ndonne {C:chips}+#1#{} Jetons et\n{C:mult}+#2#{} Multi quand il compte+Seltzer Eau gazeuse+Retrigger all\ncards played for\nthe next {C:attention}#1#{} hands Redéclenche toutes\nles cartes jouées pendant\nles {C:attention}#1#{} prochaines mains+Castle Château+This Joker gains {C:chips}+#1#{} Chips\nper discarded {C:attention}#2#{} card,\nsuit changes every round\n{C:inactive}(Currently {C:chips}+#3#{C:inactive} Chips) Ce Joker gagne {C:chips}+#1#{} Jetons\npar carte de {C:attention}#2#{} défaussée,\nla couleur change à chaque manche\n{C:inactive}(Actuellement {C:chips}+#3#{C:inactive} Jetons)+Smiley Face Visage souriant+Played {C:attention}face{} cards\ngive {C:mult}+#1#{} Mult\nwhen scored Les {C:attention}figures{} jouées\ndonnent {C:mult}+#1#{} Multi\nquand elles comptent+Campfire Feu de camp+This Joker gains {X:mult,C:white}X#1#{} Mult\nfor each card {C:attention}sold{}, resets\nwhen {C:attention}Boss Blind{} is defeated\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white}X#1#{} Multi\npar carte {C:attention}vendue{}, remis à\nzéro quand la {C:attention}Blind de boss\nest vaincue\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Golden Ticket Ticket doré+Played {C:attention}Gold{} cards\nearn {C:money}$#1#{} when scored Les cartes {C:attention}dorées{} jouées\nrapportent {C:money}$#1#{} quand\nelles comptent+Mr. Bones M. Os+Prevents Death\nif chips scored\nare at least {C:attention}25%\nof required chips\n{C:mult}self destructs{} Évite la défaite si\nles jetons marqués font\nau moins {C:attention}25%{} des jetons\nrequis, puis {C:mult}s'autodétruit+Acrobat Acrobate+{X:mult,C:white} X#1# {} Mult on {C:attention}final\n{C:attention}hand{} of round {X:mult,C:white} X#1# {} Multi lors de la\n{C:attention}dernière main{} de la manche+Sock and Buskin Socque et cothurne+Retrigger all\nplayed {C:attention}face{} cards Redéclenche toutes\nles {C:attention}figures{} jouées+Swashbuckler Bretteur+Adds the sell value\nof all other owned\n{C:attention}Jokers{} to Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult) Ajoute au Multi la valeur\nde vente de tous tes\nautres {C:attention}Jokers\n{C:inactive}(Actuellement {C:mult}+#1#{C:inactive} Multi)+Troubadour Troubadour+{C:attention}+#1#{} hand size,\n{C:chips}-#2#{} hand each round {C:attention}+#1#{} taille de main,\n{C:chips}-#2#{} main par manche+Certificate Certificat+When round begins,\nadd a random {C:attention}playing\n{C:attention}card{} with a random\n{C:attention}seal{} to your hand Au début de la manche,\najoute à ta main une {C:attention}carte\n{C:attention}à jouer{} au hasard avec\nun {C:attention}sceau{} au hasard+Smeared Joker Joker barbouillé+{C:mult}Hearts{} and {C:attention}Diamonds\ncount as the same suit,\n{C:spades}Spades{} and {C:attention}Clubs\ncount as the same suit Les {C:mult}Cœurs{} et {C:attention}Carreaux\ncomptent comme une même\ncouleur, les {C:spades}Piques{} et\n{C:attention}Trèfles{} aussi+Throwback Rétro+{X:mult,C:white} X#1# {} Mult for each\n{C:attention}Blind{} skipped this run\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) {X:mult,C:white} X#1# {} Multi par\n{C:attention}Blind{} passée dans la partie\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Hanging Chad Bulletin troué+Retrigger {C:attention}first{} played\ncard used in scoring\n{C:attention}#1#{} additional times Redéclenche {C:attention}#1#{} fois de plus\nla {C:attention}première{} carte jouée\nqui compte+Rough Gem Gemme brute+Played cards with\n{C:attention}Diamond{} suit earn\n{C:money}$#1#{} when scored Les cartes jouées de\n{C:attention}Carreau{} rapportent\n{C:money}$#1#{} quand elles comptent+Bloodstone Héliotrope+{C:green}#1# in #2#{} chance for\nplayed cards with\n{C:mult}Heart{} suit to give\n{X:mult,C:white} X#3# {} Mult when scored Les cartes jouées de\n{C:mult}Cœur{} ont {C:green}#1# chance\nsur #2#{} de donner {X:mult,C:white} X#3# {} Multi\nquand elles comptent+Arrowhead Pointe de flèche+Played cards with\n{C:spades}Spade{} suit give\n{C:chips}+#1#{} Chips when scored Les cartes jouées de\n{C:spades}Pique{} donnent\n{C:chips}+#1#{} Jetons quand elles comptent+Onyx Agate Agate onyx+Played cards with\n{C:attention}Club{} suit give\n{C:mult}+#1#{} Mult when scored Les cartes jouées de\n{C:attention}Trèfle{} donnent\n{C:mult}+#1#{} Multi quand elles comptent+Glass Joker Joker de verre+This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Glass Card\nthat is destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\npar {C:attention}carte de verre\ndétruite\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Showman Showman+{C:attention}Joker{}, {C:tarot}Tarot{}, {C:planet}Planet{},\nand {C:spectral}Spectral{} cards may\nappear multiple times Les cartes {C:attention}Joker{}, {C:tarot}Tarot{},\n{C:planet}Planète{} et {C:spectral}Spectrales\npeuvent apparaître\nplusieurs fois+Flower Pot Pot de fleurs+{X:mult,C:white} X#1# {} Mult if poker\nhand contains a\n{C:attention}Diamond{} card, {C:attention}Club{} card,\n{C:mult}Heart{} card, and {C:spades}Spade{} card {X:mult,C:white} X#1# {} Multi si la main\ncontient une carte de\n{C:attention}Carreau{}, de {C:attention}Trèfle{},\nde {C:mult}Cœur{} et de {C:spades}Pique+Blueprint Plan+Copies ability of\n{C:attention}Joker{} to the right Copie la capacité\ndu {C:attention}Joker{} à droite+Wee Joker Mini-joker+This Joker gains\n{C:chips}+#2#{} Chips when each\nplayed {C:attention}2{} is scored\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips) Ce Joker gagne\n{C:chips}+#2#{} Jetons quand\nchaque {C:attention}2{} joué compte\n{C:inactive}(Actuellement {C:chips}+#1#{C:inactive} Jetons)+Merry Andy Joyeux Andy+{C:mult}+#1#{} discards\neach round,\n{C:mult}#2#{} hand size {C:mult}+#1#{} défausses\npar manche,\n{C:mult}#2#{} taille de main+Oops! All 6s Oups ! Que des 6+Doubles all {C:attention}listed\n{C:green}probabilities\n{C:inactive}(ex: {C:green}1 in 3{C:inactive} -> {C:green}2 in 3{C:inactive}) Double toutes les\n{C:green}probabilités{} indiquées\n{C:inactive}(ex. : {C:green}1 sur 3{C:inactive} -> {C:green}2 sur 3{C:inactive})+The Idol L'Idole+Each played {C:attention}#2#\nof {C:attention}#3#{} gives\n{X:mult,C:white} X#1# {} Mult when scored\nCard changes every round Chaque {C:attention}#2#\nde {C:attention}#3#{} joué donne\n{X:mult,C:white} X#1# {} Multi quand il compte\nLa carte change à chaque manche+Seeing Double Double vue+{X:mult,C:white} X#1# {} Mult if played\nhand has a scoring\n{C:attention}Club{} card and a scoring\ncard of any other {C:attention}suit {X:mult,C:white} X#1# {} Multi si la main\njouée a une carte de\n{C:attention}Trèfle{} qui compte et une\nautre {C:attention}couleur{} qui compte+Matador Matador+Earn {C:money}$#1#{} if played\nhand triggers the\n{C:attention}Boss Blind{} ability Gagne {C:money}$#1#{} si la main\njouée déclenche la capacité\nde la {C:attention}Blind de boss+Hit the Road En route+This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Jack{}\ndiscarded this round\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\npar {C:attention}Valet{} défaussé\npendant cette manche\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+The Duo Le Duo+{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2# {X:mult,C:white} X#1# {} Multi si la main\njouée contient\n{C:attention}#2#+The Trio Le Trio+The Family La Famille+The Order L'Ordre+The Tribe La Tribu+Stuntman Cascadeur+{C:chips}+#1#{} Chips,\n{C:attention}-#2#{} hand size {C:chips}+#1#{} Jetons,\n{C:attention}-#2#{} taille de main+Invisible Joker Joker invisible+After {C:attention}#1#{} rounds,\nsell this card to\n{C:attention}Duplicate{} a random Joker\n{C:inactive}(Currently {C:attention}#2#{C:inactive}/#1#) Après {C:attention}#1#{} manches,\nvends cette carte pour\n{C:attention}dupliquer{} un Joker au hasard\n{C:inactive}(Actuellement {C:attention}#2#{C:inactive}/#1#)+Brainstorm Remue-méninges+Copies the ability\nof leftmost {C:attention}Joker Copie la capacité\ndu {C:attention}Joker{} le plus à gauche+Satellite Satellite+Earn {C:money}$#1#{} at end of\nround per unique {C:planet}Planet\ncard used this run\n{C:inactive}(Currently {C:money}$#2#{C:inactive}) Gagne {C:money}$#1#{} en fin de manche\npar carte {C:planet}Planète{} différente\nutilisée dans la partie\n{C:inactive}(Actuellement {C:money}$#2#{C:inactive})+Shoot the Moon Viser la Lune+Each {C:attention}Queen{}\nheld in hand\ngives {C:mult}+#1#{} Mult Chaque {C:attention}Dame\nen main donne\n{C:mult}+#1#{} Multi+Driver's License Permis de conduire+{X:mult,C:white} X#1# {} Mult if you have\nat least {C:attention}16{} Enhanced\ncards in your full deck\n{C:inactive}(Currently {C:attention}#2#{C:inactive}) {X:mult,C:white} X#1# {} Multi si le jeu\ncomplet a au moins {C:attention}16\ncartes améliorées\n{C:inactive}(Actuellement {C:attention}#2#{C:inactive})+Cartomancer Cartomancien+Create a {C:tarot}Tarot{} card\nwhen {C:attention}Blind{} is selected\n{C:inactive}(Must have room) Crée une carte {C:tarot}Tarot\nquand une {C:attention}Blind{} est choisie\n{C:inactive}(Place requise)+Astronomer Astronome+All {C:planet}Planet{} cards and\n{C:planet}Celestial Packs{} in\nthe shop are {C:attention}free Les cartes {C:planet}Planète{} et\n{C:planet}paquets Céleste{} de\nla boutique sont {C:attention}gratuits+Burnt Joker Joker brûlé+Upgrade the level of\nthe first {C:attention}discarded\npoker hand each round Améliore le niveau de\nla première {C:attention}main défaussée\nde chaque manche+Bootstraps Tirant de botte+{C:mult}+#1#{} Mult for every\n{C:money}$#2#{} you have\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) {C:mult}+#1#{} Multi pour chaque\ntranche de {C:money}$#2#{} possédée\n{C:inactive}(Actuellement {C:mult}+#3#{C:inactive} Multi)+Canio Canio+This Joker gains {X:mult,C:white} X#1# {} Mult\nwhen a {C:attention}face{} card\nis destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Ce Joker gagne {X:mult,C:white} X#1# {} Multi\nquand une {C:attention}figure{}\nest détruite\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)+Triboulet Triboulet+Played {C:attention}Kings{} and\n{C:attention}Queens{} each give\n{X:mult,C:white} X#1# {} Mult when scored Les {C:attention}Rois{} et {C:attention}Dames\njoués donnent chacun\n{X:mult,C:white} X#1# {} Multi quand ils comptent+Yorick Yorick+This Joker gains\n{X:mult,C:white} X#1# {} Mult every {C:attention}#2#{C:inactive} [#3#]{}\ncards discarded\n{C:inactive}(Currently {X:mult,C:white} X#4# {C:inactive} Mult) Ce Joker gagne\n{X:mult,C:white} X#1# {} Multi toutes les {C:attention}#2#{C:inactive} [#3#]{}\ncartes défaussées\n{C:inactive}(Actuellement {X:mult,C:white} X#4# {C:inactive} Multi)+Chicot Chicot+Disables effect of\nevery {C:attention}Boss Blind Désactive l'effet de\nchaque {C:attention}Blind de boss+Perkeo Perkeo+Creates a {C:dark_edition}Negative{} copy of\n{C:attention}1{} random {C:attention}consumable{}\ncard in your possession\nat the end of the {C:attention}shop Crée une copie {C:dark_edition}négative\nd'{C:attention}1{} {C:attention}consommable{} au hasard\nen ta possession à la\nfin de la {C:attention}boutique+The Fool Le Mat+Creates the last\n{C:tarot}Tarot{} or {C:planet}Planet{} card\nused during this run\n{C:tarot}The Fool excluded Crée la dernière carte\n{C:tarot}Tarot{} ou {C:planet}Planète{}\nutilisée dans la partie\n{C:tarot}Le Mat exclu+The Magician Le Bateleur+Enhances {C:attention}#1#{}\nselected cards to\n{C:attention}#2#s Améliore {C:attention}#1#{} cartes\nchoisies en\n{C:attention}#2#+The High Priestess La Papesse+Creates up to {C:attention}#1#\nrandom {C:planet}Planet{} cards\n{C:inactive}(Must have room) Crée jusqu'à {C:attention}#1#\ncartes {C:planet}Planète{} au hasard\n{C:inactive}(Place requise)+The Empress L'Impératrice+Enhances {C:attention}#1#\nselected cards to\n{C:attention}#2#s Améliore {C:attention}#1#\ncartes choisies en\n{C:attention}#2#+The Emperor L'Empereur+Creates up to {C:attention}#1#\nrandom {C:tarot}Tarot{} cards\n{C:inactive}(Must have room) Crée jusqu'à {C:attention}#1#\ncartes {C:tarot}Tarot{} au hasard\n{C:inactive}(Place requise)+The Hierophant Le Pape+The Lovers L'Amoureux+Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2# Améliore {C:attention}#1#{} carte\nchoisie en\n{C:attention}#2#+The Chariot Le Chariot+Justice La Justice+The Hermit L'Ermite+Doubles money\n{C:inactive}(Max of {C:money}$#1#{C:inactive}) Double ton argent\n{C:inactive}(Max. {C:money}$#1#{C:inactive})+The Wheel of Fortune La Roue de Fortune+{C:green}#1# in #2#{} chance to add\n{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, or\n{C:dark_edition}Polychrome{} edition\nto a random {C:attention}Joker {C:green}#1# chance sur #2#{} d'ajouter\nl'édition {C:dark_edition}métallisée{},\n{C:dark_edition}holographique{} ou {C:dark_edition}polychrome\nà un {C:attention}Joker{} au hasard+Strength La Force+Increases rank of\nup to {C:attention}#1#{} selected\ncards by {C:attention}1 Augmente de {C:attention}1{} la\nvaleur d'au plus\n{C:attention}#1#{} cartes choisies+The Hanged Man Le Pendu+Destroys up to\n{C:attention}#1#{} selected cards Détruit jusqu'à\n{C:attention}#1#{} cartes choisies+Death La Mort+Select {C:attention}#1#{} cards,\nconvert the {C:attention}left{} card\ninto the {C:attention}right{} card\n{C:inactive}(Drag to rearrange) Choisis {C:attention}#1#{} cartes,\nla carte de {C:attention}gauche\ndevient celle de {C:attention}droite\n{C:inactive}(Glisse pour réordonner)+Temperance Tempérance+Gives the total sell\nvalue of all current\nJokers {C:inactive}(Max of {C:money}$#1#{C:inactive})\n{C:inactive}(Currently {C:money}$#2#{C:inactive}) Donne la valeur de vente\ntotale de tes Jokers\n{C:inactive}(Max. {C:money}$#1#{C:inactive})\n{C:inactive}(Actuellement {C:money}$#2#{C:inactive})+The Devil Le Diable+The Tower La Maison Dieu+The Star L'Étoile+Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{} Convertit jusqu'à\n{C:attention}#1#{} cartes choisies\nen {C:attention}#2#{}+The Moon La Lune+The Sun Le Soleil+Judgement Le Jugement+Creates a random\n{C:attention}Joker{} card\n{C:inactive}(Must have room) Crée une carte\n{C:attention}Joker{} au hasard\n{C:inactive}(Place requise)+The World Le Monde+Mercury Mercure+({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips ({C:attention}niv. #1#){} Améliore\n{C:attention}#2#\n{C:mult}+#3#{} Multi et\n{C:chips}+#4#{} Jetons+Venus Vénus+Earth Terre+Mars Mars+Jupiter Jupiter+Saturn Saturne+Uranus Uranus+Neptune Neptune+Pluto Pluton+Planet X Planète X+Ceres Cérès+Eris Éris+Familiar Familier+Destroy {C:attention}1{} random\ncard in your hand, add\n{C:attention}#1#{} random {C:attention}Enhanced face\n{C:attention}cards{} to your hand Détruit {C:attention}1{} carte au hasard\nde ta main, ajoute {C:attention}#1#\n{C:attention}figures améliorées\nau hasard à ta main+Grim Faucheuse+Destroy {C:attention}1{} random\ncard in your hand,\nadd {C:attention}#1#{} random {C:attention}Enhanced\n{C:attention}Aces{} to your hand Détruit {C:attention}1{} carte au hasard\nde ta main, ajoute {C:attention}#1#\n{C:attention}As améliorés{} au hasard\nà ta main+Incantation Incantation+Destroy {C:attention}1{} random\ncard in your hand, add {C:attention}#1#\nrandom {C:attention}Enhanced numbered\n{C:attention}cards{} to your hand Détruit {C:attention}1{} carte au hasard\nde ta main, ajoute {C:attention}#1#\n{C:attention}cartes numérotées améliorées\nau hasard à ta main+Talisman Talisman+Add a {C:attention}Gold Seal{}\nto {C:attention}1{} selected\ncard in your hand Ajoute un {C:attention}sceau doré\nà {C:attention}1{} carte choisie\nde ta main+Aura Aura+Add {C:dark_edition}Foil{}, {C:dark_edition}Holographic{},\nor {C:dark_edition}Polychrome{} effect to\n{C:attention}1{} selected card in hand Ajoute l'effet {C:dark_edition}métallisé{},\n{C:dark_edition}holographique{} ou {C:dark_edition}polychrome\nà {C:attention}1{} carte choisie en main+Wraith Spectre+Creates a random\n{C:mult}Rare{C:attention} Joker{},\nsets money to {C:money}$0 Crée un {C:attention}Joker {C:mult}rare\nau hasard, met ton\nargent à {C:money}$0+Sigil Sigille+Converts all cards\nin hand to a single\nrandom {C:attention}suit Convertit toutes les cartes\nen main en une seule\n{C:attention}couleur{} au hasard+Ouija Ouija+Converts all cards\nin hand to a single\nrandom {C:attention}rank\n{C:mult}-1{} hand size Convertit toutes les cartes\nen main en une seule\n{C:attention}valeur{} au hasard\n{C:mult}-1{} taille de main+Ectoplasm Ectoplasme+Add {C:dark_edition}Negative{} to\na random {C:attention}Joker,\n{C:mult}-#1#{} hand size Ajoute {C:dark_edition}négatif{} à\nun {C:attention}Joker{} au hasard,\n{C:mult}-#1#{} taille de main+Immolate Immolation+Destroys {C:attention}#1#{} random\ncards in hand,\ngain {C:money}$#2# Détruit {C:attention}#1#{} cartes\nau hasard en main,\ngagne {C:money}$#2#+Ankh Ânkh+Create a copy of a\nrandom {C:attention}Joker{}, destroy\nall other Jokers Crée une copie d'un\n{C:attention}Joker{} au hasard, détruit\ntous les autres Jokers+Deja Vu Déjà vu+Add a {C:mult}Red Seal{}\nto {C:attention}1{} selected\ncard in your hand Ajoute un {C:mult}sceau rouge\nà {C:attention}1{} carte choisie\nde ta main+Hex Maléfice+Add {C:dark_edition}Polychrome{} to a\nrandom {C:attention}Joker{}, destroy\nall other Jokers Ajoute {C:dark_edition}polychrome{} à un\n{C:attention}Joker{} au hasard, détruit\ntous les autres Jokers+Trance Transe+Add a {C:chips}Blue Seal{}\nto {C:attention}1{} selected\ncard in your hand Ajoute un {C:chips}sceau bleu\nà {C:attention}1{} carte choisie\nde ta main+Medium Médium+Add a {C:tarot}Purple Seal{}\nto {C:attention}1{} selected\ncard in your hand Ajoute un {C:tarot}sceau violet\nà {C:attention}1{} carte choisie\nde ta main+Cryptid Cryptide+Create {C:attention}#1#{} copies of\n{C:attention}1{} selected card\nin your hand Crée {C:attention}#1#{} copies de\n{C:attention}1{} carte choisie\nde ta main+The Soul L'Âme+Creates a\n{C:tarot}Legendary{} Joker\n{C:inactive}(Must have room) Crée un Joker\n{C:tarot}légendaire\n{C:inactive}(Place requise)+Black Hole Trou noir+Upgrade every\n{C:tarot}poker hand\nby {C:attention}1{} level Améliore chaque\n{C:tarot}main de poker\nde {C:attention}1{} niveau+Overstock Surstock+{C:attention}+1{} card slot\navailable in shop {C:attention}+1{} emplacement de\ncarte en boutique+Clearance Sale Liquidation totale+All cards and packs in\nshop are {C:attention}#1#%{} off Toutes les cartes et\npaquets de la boutique\nsont à {C:attention}-#1#%+Hone Affûtage+{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, and\n{C:dark_edition}Polychrome{} cards\nappear {C:attention}#1#X{} more often Les cartes {C:dark_edition}métallisées{},\n{C:dark_edition}holographiques{} et {C:dark_edition}polychromes\napparaissent {C:attention}#1#X{} plus souvent+Reroll Surplus Surplus de relances+Rerolls cost\n{C:money}$#1#{} less Les relances coûtent\n{C:money}$#1#{} de moins+Crystal Ball Boule de cristal+{C:attention}+1{} consumable slot {C:attention}+1{} emplacement\nde consommable+Telescope Télescope+{C:attention}Celestial Packs{} always\ncontain the {C:planet}Planet{}\ncard for your most\nplayed {C:attention}poker hand Les {C:attention}paquets Céleste{} contiennent\ntoujours la carte {C:planet}Planète\nde ta {C:attention}main de poker\nla plus jouée+Grabber Grappin+Permanently\ngain {C:chips}+#1#{} hand\nper round Gagne définitivement\n{C:chips}+#1#{} main\npar manche+Wasteful Gaspilleur+Permanently\ngain {C:mult}+#1#{} discard\neach round Gagne définitivement\n{C:mult}+#1#{} défausse\npar manche+Tarot Merchant Marchand de tarots+{C:tarot}Tarot{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop Les cartes {C:tarot}Tarot{} apparaissent\n{C:attention}#1#X{} plus souvent\nen boutique+Planet Merchant Marchand de planètes+{C:planet}Planet{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop Les cartes {C:planet}Planète{} apparaissent\n{C:attention}#1#X{} plus souvent\nen boutique+Seed Money Capital de départ+Raise the cap on\ninterest earned in\neach round to {C:money}$#1#{} Augmente le plafond\ndes intérêts gagnés par\nmanche à {C:money}$#1#{}+Blank Vierge+{C:inactive}Does nothing? {C:inactive}Ne fait rien ?+Magic Trick Tour de magie+{C:attention}Playing cards{} can\nbe purchased\nfrom the {C:attention}shop Les {C:attention}cartes à jouer{} peuvent\nêtre achetées en\n{C:attention}boutique+Hieroglyph Hiéroglyphe+{C:attention}-#1#{} Ante,\n{C:chips}-#1#{} hand\neach round {C:attention}-#1#{} Ante,\n{C:chips}-#1#{} main\npar manche+Director's Cut Version longue+Reroll Boss Blind\n{C:attention}1{} time per Ante,\n{C:money}$#1#{} per roll Relance la Blind de boss\n{C:attention}1{} fois par Ante,\n{C:money}$#1#{} par relance+Paint Brush Pinceau+Overstock Plus Surstock plus+Liquidation Liquidation+Glow Up Relooking+Reroll Glut Excès de relances+Omen Globe Globe des présages+{C:spectral}Spectral{} cards may\nappear in any of\nthe {C:attention}Arcana Packs Les cartes {C:spectral}Spectrales{} peuvent\napparaître dans les\n{C:attention}paquets Arcanes+Observatory Observatoire+{C:planet}Planet{} cards in your\n{C:attention}consumable{} area give\n{X:mult,C:white} X#1# {} Mult for their\nspecified {C:attention}poker hand Les cartes {C:planet}Planète{} de ta zone\nde {C:attention}consommables{} donnent\n{X:mult,C:white} X#1# {} Multi pour leur\n{C:attention}main de poker+Nacho Tong Pince à nachos+Recyclomancy Recyclomancie+Tarot Tycoon Magnat des tarots+Planet Tycoon Magnat des planètes+Money Tree Arbre à argent+Antimatter Antimatière+{C:dark_edition}+1{} Joker Slot {C:dark_edition}+1{} emplacement de Joker+Illusion Illusion+{C:attention}Playing cards{} in shop\nmay have an {C:attention}Enhancement{},\n{C:dark_edition}Edition{}, and/or a {C:attention}Seal{} Les {C:attention}cartes à jouer{} en boutique\npeuvent avoir une {C:attention}amélioration{},\nune {C:dark_edition}édition{} ou un {C:attention}sceau+Petroglyph Pétroglyphe+{C:attention}-#1#{} Ante,\n{C:mult}-#1#{} discard\neach round {C:attention}-#1#{} Ante,\n{C:mult}-#1#{} défausse\npar manche+Retcon Retcon+Reroll Boss Blind\n{C:attention}unlimited{} times,\n{C:money}$#1#{} per roll Relance la Blind de boss\nde façon {C:attention}illimitée{},\n{C:money}$#1#{} par relance+Palette Palette+Uncommon Tag Badge peu commun+Shop has a free\n{C:green}Uncommon Joker La boutique a un\nJoker {C:green}peu commun{} gratuit+Rare Tag Badge rare+Shop has a free\n{C:mult}Rare Joker La boutique a un\nJoker {C:mult}rare{} gratuit+Negative Tag Badge négatif+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Negative Le prochain Joker de base\nen boutique est gratuit\net devient {C:dark_edition}négatif+Foil Tag Badge métallisé+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Foil Le prochain Joker de base\nen boutique est gratuit\net devient {C:dark_edition}métallisé+Holographic Tag Badge holographique+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Holographic Le prochain Joker de base\nen boutique est gratuit\net devient {C:dark_edition}holographique+Polychrome Tag Badge polychrome+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Polychrome Le prochain Joker de base\nen boutique est gratuit\net devient {C:dark_edition}polychrome+Investment Tag Badge d'investissement+After defeating\nthe Boss Blind,\ngain {C:money}$#1# Après avoir vaincu\nla Blind de boss,\ngagne {C:money}$#1#+Voucher Tag Badge de bon+Adds one {C:attention}Voucher\nto the next shop Ajoute un {C:attention}bon\nà la prochaine boutique+Boss Tag Badge de boss+Rerolls the\n{C:attention}Boss Blind Relance la\n{C:attention}Blind de boss+Standard Tag Badge standard+Gives a free\n{C:attention}Mega Standard Pack Donne un {C:attention}méga\npaquet standard{} gratuit+Charm Tag Badge charme+Gives a free\n{C:tarot}Mega Arcana Pack Donne un {C:tarot}méga\npaquet Arcanes{} gratuit+Meteor Tag Badge météore+Gives a free\n{C:planet}Mega Celestial Pack Donne un {C:planet}méga\npaquet Céleste{} gratuit+Buffoon Tag Badge bouffon+Gives a free\n{C:attention}Mega Buffoon Pack Donne un {C:attention}méga\npaquet bouffon{} gratuit+Handy Tag Badge pratique+Gives {C:money}$#1#{} per played\n{C:chips}hand{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) Donne {C:money}$#1#{} par {C:chips}main\njouée{} dans la partie\n{C:inactive}(Donnera {C:money}$#2#{C:inactive})+Garbage Tag Badge poubelle+Gives {C:money}$#1#{} per unused\n{C:mult}discard{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) Donne {C:money}$#1#{} par {C:mult}défausse\nnon utilisée{} dans la partie\n{C:inactive}(Donnera {C:money}$#2#{C:inactive})+Ethereal Tag Badge éthéré+Gives a free\n{C:spectral}Spectral Pack Donne un {C:spectral}paquet\nspectral{} gratuit+Coupon Tag Badge coupon+Initial cards and\nbooster packs in next\nshop are free Les premières cartes et\nles paquets de la prochaine\nboutique sont gratuits+Double Tag Badge double+Gives a copy of the\nnext selected {C:attention}Tag{}\n{C:attention}Double Tag excluded Donne une copie du\nprochain {C:attention}badge{} choisi\n{C:attention}Badge double exclu+Juggle Tag Badge jonglage+{C:attention}+#1#{} hand size\nnext round {C:attention}+#1#{} taille de main\nla manche suivante+D6 Tag Badge D6+Rerolls in next shop\nstart at {C:money}$0 Les relances de la prochaine\nboutique commencent à {C:money}$0+Top-up Tag Badge recharge+Create up to {C:attention}#1#\n{C:chips}Common{} Jokers\n{C:inactive}(Must have room) Crée jusqu'à {C:attention}#1#\nJokers {C:chips}communs\n{C:inactive}(Place requise)+Speed Tag Badge vitesse+Gives {C:money}$#1#{} per skipped\nBlind this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) Donne {C:money}$#1#{} par Blind\npassée dans la partie\n{C:inactive}(Donnera {C:money}$#2#{C:inactive})+Orbital Tag Badge orbital+Upgrade {C:attention}#1#\nby {C:attention}#2# levels Améliore {C:attention}#1#\nde {C:attention}#2# niveaux+Economy Tag Badge économie+Doubles your money\n{C:inactive}(Max of {C:money}$#1#{C:inactive}) Double ton argent\n{C:inactive}(Max. {C:money}$#1#{C:inactive})+Small Blind Petite blind+Big Blind Grosse blind+The Ox Le Bœuf+Playing a #1#\nsets money to $0 Jouer {C:attention}#1#\nmet ton argent à $0+The House La Maison+First hand is\ndrawn face down La première main est\npiochée face cachée+The Club Le Trèfle+All Club cards\nare debuffed Toutes les cartes de\nTrèfle sont affaiblies+The Fish Le Poisson+Cards drawn face down\nafter each hand played Les cartes piochées après\nchaque main jouée sont\nface cachée+The Window La Fenêtre+All Diamond cards\nare debuffed Toutes les cartes de\nCarreau sont affaiblies+The Hook Le Crochet+Discards 2 random\ncards per hand played Défausse 2 cartes au hasard\npar main jouée+The Manacle Les Menottes+-1 Hand Size -1 taille de main+The Wall Le Mur+Extra large blind Blind très grosse+The Wheel La Roue+ in 7 cards get\ndrawn face down carte sur 7 est\npiochée face cachée+The Arm Le Bras+Decrease level of\nplayed poker hand Baisse le niveau de\nla main de poker jouée+The Psychic Le Médium+Must play 5 cards Il faut jouer 5 cartes+The Goad L'Aiguillon+All Spade cards\nare debuffed Toutes les cartes de\nPique sont affaiblies+The Water L'Eau+Start with\n0 discards Commence avec\n0 défausse+The Serpent Le Serpent+After Play or Discard,\nalways draw 3 cards Après avoir joué ou défaussé,\npioche toujours 3 cartes+The Pillar Le Pilier+Cards played previously\nthis Ante are debuffed Les cartes déjà jouées\npendant cette Ante\nsont affaiblies+The Eye L'Œil+No repeat hand\ntypes this round Pas deux fois le même\ntype de main cette manche+The Mouth La Bouche+Play only 1 hand\ntype this round Un seul type de main\npeut être joué cette manche+The Plant La Plante+All face cards\nare debuffed Toutes les figures\nsont affaiblies+The Needle L'Aiguille+Play only 1 hand Une seule main à jouer+The Head La Tête+All Heart cards\nare debuffed Toutes les cartes de\nCœur sont affaiblies+The Tooth La Dent+Lose $1 per\ncard played Perds $1 par\ncarte jouée+The Mark La Marque+All face cards are\ndrawn face down Toutes les figures sont\npiochées face cachée+The Flint Le Silex+Base Chips and\nMult are halved Les Jetons et le Multi\nde base sont divisés par 2+Crimson Heart Cœur cramoisi+One random Joker\ndisabled every hand Un Joker au hasard est\ndésactivé à chaque main+Cerulean Bell Cloche céruléenne+Forces 1 card to\nalways be selected Force 1 carte à être\ntoujours choisie+Amber Acorn Gland ambré+Flips and shuffles\nall Joker cards Retourne et mélange\ntous les Jokers+Verdant Leaf Feuille verdoyante+All cards debuffed\nuntil 1 Joker sold Toutes les cartes sont\naffaiblies jusqu'à la\nvente d'1 Joker+Violet Vessel Vase violet+Very large blind Blind gigantesque+Bonus Card Carte bonus+Mult Card Carte multi+Wild Card Carte sauvage+Can be used\nas any suit Compte comme\nn'importe quelle couleur+Glass Card Carte de verre+{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance to\ndestroy card {X:mult,C:white} X#1# {} Multi\n{C:green}#2# chance sur #3#{} de\ndétruire la carte+Steel Card Carte d'acier+{X:mult,C:white} X#1# {} Mult\nwhile this card\nstays in hand {X:mult,C:white} X#1# {} Multi\ntant que cette carte\nreste en main+Stone Card Carte de pierre+{C:chips}+#1#{} Chips\nno rank or suit {C:chips}+#1#{} Jetons\nsans valeur ni couleur+Gold Card Carte dorée+{C:money}$#1#{} if this\ncard is held in hand\nat end of round {C:money}$#1#{} si cette carte\nest en main en\nfin de manche+Lucky Card Carte chanceuse+{C:green}#1# in #3#{} chance\nfor {C:mult}+#2#{} Mult\n{C:green}#1# in #5#{} chance\nto win {C:money}$#4# {C:green}#1# chance sur #3#{} de\ndonner {C:mult}+#2#{} Multi\n{C:green}#1# chance sur #5#{} de\ngagner {C:money}$#4#+Foil Métallisé+{C:chips}+#1#{} chips {C:chips}+#1#{} Jetons+Holographic Holographique+Polychrome Polychrome+{X:mult,C:white} X#1# {} Mult {X:mult,C:white} X#1# {} Multi+Negative Négatif+{C:dark_edition}+#1#{} Joker slot {C:dark_edition}+#1#{} emplacement de Joker+Gold Seal Sceau doré+Earn {C:money}$3{} when this\ncard is played\nand scores Gagne {C:money}$3{} quand cette\ncarte est jouée\net compte+Red Seal Sceau rouge+Retrigger this\ncard {C:attention}1{} time Redéclenche cette\ncarte {C:attention}1{} fois+Blue Seal Sceau bleu+Creates the {C:planet}Planet{} card\nfor final played {C:attention}poker hand{}\nof round if {C:attention}held{} in hand\n{C:inactive}(Must have room) Crée la carte {C:planet}Planète\nde la dernière {C:attention}main de poker\njouée de la manche si la\ncarte est {C:attention}en main\n{C:inactive}(Place requise)+Purple Seal Sceau violet+Creates a {C:tarot}Tarot{} card\nwhen {C:attention}discarded\n{C:inactive}(Must have room) Crée une carte {C:tarot}Tarot\nquand elle est {C:attention}défaussée\n{C:inactive}(Place requise)+Arcana Pack Paquet Arcanes+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:tarot} Tarot{} cards to\nbe used immediately Choisis {C:attention}#1#{} parmi jusqu'à\n{C:attention}#2#{C:tarot} cartes Tarot{} à\nutiliser immédiatement+Jumbo Arcana Pack Paquet Arcanes jumbo+Mega Arcana Pack Méga paquet Arcanes+Celestial Pack Paquet Céleste+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:planet} Planet{} cards to\nbe used immediately Choisis {C:attention}#1#{} parmi jusqu'à\n{C:attention}#2#{C:planet} cartes Planète{} à\nutiliser immédiatement+Jumbo Celestial Pack Paquet Céleste jumbo+Mega Celestial Pack Méga paquet Céleste+Standard Pack Paquet standard+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Playing{} cards to\nadd to your deck Choisis {C:attention}#1#{} parmi jusqu'à\n{C:attention}#2#{C:attention} cartes à jouer{} à\najouter à ton jeu+Jumbo Standard Pack Paquet standard jumbo+Mega Standard Pack Méga paquet standard+Buffoon Pack Paquet bouffon+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Joker{} cards Choisis {C:attention}#1#{} parmi jusqu'à\n{C:attention}#2#{C:attention} cartes Joker+Jumbo Buffoon Pack Paquet bouffon jumbo+Mega Buffoon Pack Méga paquet bouffon+Spectral Pack Paquet spectral+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:spectral} Spectral{} cards to\nbe used immediately Choisis {C:attention}#1#{} parmi jusqu'à\n{C:attention}#2#{C:spectral} cartes Spectrales{} à\nutiliser immédiatement+Jumbo Spectral Pack Paquet spectral jumbo+Mega Spectral Pack Méga paquet spectral+Red Deck Jeu rouge+{C:mult}+#1#{} discard\nevery round {C:mult}+#1#{} défausse\npar manche+Jack Valet+Queen Dame+King Roi+Ace As+Spade Pique+Heart Cœur+Club Trèfle+Diamond Carreau+Spades Piques+Hearts Cœurs+Clubs Trèfles+Diamonds Carreaux+ Mult Multi+Active! Actif !+ remaining restantes+[poker hand] [main de poker]+\020 Mult \020 Multi+Common Commun+Uncommon Peu commun+Rare Rare+Legendary Légendaire+%1 of %2 %1 de %2+\003Debuffed\020\nScores no chips\nand all abilities\nare disabled \003Affaiblie\020\nNe donne aucun jeton\net toutes ses capacités\nsont désactivées+\020 chips \020 jetons+\020 extra chips \020 jetons en plus+compatible compatible+incompatible incompatible+Tarot Tarot+Planet Planète+Spectral Spectrale+Voucher Bon+PLAY JOUER+OPTIONS OPTIONS+QUIT QUITTER+CREDITS CRÉDITS+New Run Nouvelle partie+Continue Continuer+\003+1\020 discard\nevery round \003+1\020 défausse\npar manche+Round Manche+Ante Ante+Money Argent+Best Hand Meilleure main+White Stake Mise blanche+Base Difficulty Difficulté de base+Wins \004 Victoires \004+\001 Best Ante \004 \001 Meilleure ante \004+\001 Best Hand \003 \001 Meilleure main \003+Seed \004 Graine \004+CONTINUE CONTINUER+Back Retour+\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004Flèches\020 aller entre cartes, Jokers et boutons\n\004OK\020 choisir une carte, ou prendre un Joker/objet\n puis \006Vendre\020, \003Utiliser\020, \005Acheter\020...\n\004EXE\020 \002Jouer la main\020 \004DEL\020 \003Défausser\020\n\004shift\020 trier la main par valeur ou couleur\n\004alpha\020 + \004gauche/droite\020 déplacer un Joker ou une carte\n\004Boîte à outils\020 Infos partie \004var\020 voir le jeu\n\004Retour\020 retour / Options \004Accueil\020 sauver, quitter\nMaintiens \004OK\020 ou \004EXE\020 pour accélérer le score.\n\nJoue des mains de poker : score = \002Jetons\020 x \003Multi\020.\nBats le score de chaque Blind avant d'être\nà court de mains. Achète des Jokers en boutique\net bats la Blind de boss de l'Ante 8 pour gagner !+How to play Comment jouer+Credits Crédits+Inspired by \004Balatro\020 by LocalThunk.\nNot affiliated with LocalThunk or Playstack.\n\nCard, Joker and interface art adapted\nfrom Balatro by LocalThunk.\nRules and card texts follow the game.\nFont: \004m6x11\020 by Daniel Linssen.\n\nMade by \004Mason Chen\020 as part of NumPlay.\n\nPlease support the original game! Inspiré de \004Balatro\020 de LocalThunk.\nSans lien avec LocalThunk ni Playstack.\n\nImages des cartes, Jokers et interface\nadaptées de Balatro de LocalThunk.\nRègles et textes des cartes comme le jeu.\nPolice : \004m6x11\020 de Daniel Linssen.\n\nFait par \004Mason Chen\020 pour NumPlay.\n\nSoutiens le jeu original !+Game Speed Vitesse du jeu+How to Play Comment jouer+Main Menu Menu principal+Options Options+Game Speed < Vitesse <+New run? Nouvelle partie ?+The current run will be lost. La partie en cours sera perdue.+Yes Oui+No Non+Poker Hands Mains de poker+Blinds Blinds+Vouchers Bons+lvl. niv.+Score at least Score minimum+Reward: Gain :+No Vouchers redeemed yet Aucun bon utilisé pour l'instant+left/right: tabs back: close gauche/droite : onglets retour : fermer+Remaining Restantes+Full Deck Jeu complet+Play Hand Jouer\nla main+Sort Hand Trier la main+Rank Rang+Suit Coul.+Discard Défausser+SELL\n VENDRE\n+USE UTILISER+Select Choisir+Defeated Vaincue+Skipped Passée+Upcoming À venir+or ou+Skip Blind Passer\nla blind+Reroll Boss\n$10 Relance boss\n$10+Cash Out: Encaisser :+Remaining Hands ($1 each) Mains restantes ($1 chacune)+Defeat the Boss Blind Vaincre la Blind de boss+ interest per $5 ( d'intérêt par $5 (+ max) max)+Next\nRound Manche\nsuivante+Reroll Relancer+ANTE ANTE+ VOUCHER : BON+REDEEM ÉCHANGER+OPEN OUVRIR+BUY ACHETER+BUY\n& USE ACHETER\n& UTILISER+Choose Choisis+Skip Passer+SELECT CHOISIR+Better luck\nnext time! Plus de chance\nla prochaine fois !+Don't give up! N'abandonne pas !+So close! Si près !+The house\nalways wins... La banque\ngagne toujours...+You did it! Tu as réussi !+Unbelievable! Incroyable !+A true\ncard shark! Un vrai\nas des cartes !+YOU WIN! VICTOIRE !+GAME OVER PARTIE PERDUE+Ante \004 Ante \004+\001 Round \004 \001 Manche \004+Most Played Hand Main la plus jouée+Cards Played Cartes jouées+Cards Discarded Cartes défaussées+Cards Purchased Cartes achetées+Times Rerolled Relances+Seed Graine+Endless\nMode Mode\nsans fin+New\nRun Nouvelle\npartie+Main\nMenu Menu\nprincipal+Mult Multi++3 Hand Size +3 taille de main+Debuffed Affaiblie+Again! Encore !+X2 Mult X2 Multi++10 Mult +10 Multi+X1.5 Mult X1.5 Multi+Not Allowed! Interdit !++1 Tarot +1 Tarot+Saved by Mr. Bones Sauvé par M. Os++1 Planet +1 Planète+Nope! Raté !+Improve your run! Améliore ta partie !+to earn pour gagner+Choose your\nnext Blind Choisis ta\nprochaine Blind+Round\nscore Score+Run\nInfo Infos\npartie+Hands Mains+Discards Défausses+Upgrade! Amélioré !+Reset Réinit.+Saved! Sauvé !+Eaten! Mangé !+Extinct! Éteint !+Safe! Sauf !+Melted! Fondu !+Drank! Bu !++1 Spectral +1 Spectrale+Copied! Copié !+Gold Or+Level Up! Niveau sup. !+Value Up! Valeur sup. !+Boss Disabled! Boss désactivé !+Duplicated! Dupliqué !++2 Mult +2 Multi++3 Mult +3 Multi++3 Hands +3 mains++2 Jokers +2 Jokers++1 Stone +1 pierre+-X0.01 Mult -X0.01 Multi+-1 Mult -1 Multi+-4 Mult -4 Multi++1 Mult +1 Multi+Flush Five Quintuple couleur+Flush House Full couleur+Five of a Kind Quintuple+Straight Flush Quinte flush+Four of a Kind Carré+Full House Full+Flush Couleur+Straight Quinte+Three of a Kind Brelan+Two Pair Double paire+Pair Paire+High Card Carte hautediff --git a/games/balatro/lang/zh.txt b/games/balatro/lang/zh.txtnew file mode 100644index 00000000..05ecfb61--- /dev/null+++ b/games/balatro/lang/zh.txt@@ -0,0 +1,765 @@+# Balatro in Chinese: the English text as in the source, a tab, the translation (see tools/lang.py).+# Names and descriptions (src/texts.h) in the game's markup: {C:mult}...{} a colour, #1# a value;+# other texts: \004 and the like are colour codes (src/gfx.h). Terms as in the game's Chinese+# version (筹码, 倍率, 盲注...). A Chinese letter is 12 pixels wide: tooltip lines stay within 12-13.+# The names of the jokers, consumables, vouchers, tags and boss blinds stay English, and the texts+# keep to letters other texts use: each new letter costs NumPlay-Chinese about 18 bytes.+Joker Joker+{C:mult}+#1#{} Mult {C:mult}+#1#{}倍率+Greedy Joker Greedy Joker+Played cards with\n{C:attention}#2#{} suit give\n{C:mult}+#1#{} Mult when scored 打出的{C:attention}#2#{}牌\n在计分时给予\n{C:mult}+#1#{}倍率+Lusty Joker Lusty Joker+Played cards with\n{C:mult}#2#{} suit give\n{C:mult}+#1#{} Mult when scored 打出的{C:mult}#2#{}牌\n在计分时给予\n{C:mult}+#1#{}倍率+Wrathful Joker Wrathful Joker+Played cards with\n{C:spades}#2#{} suit give\n{C:mult}+#1#{} Mult when scored 打出的{C:spades}#2#{}牌\n在计分时给予\n{C:mult}+#1#{}倍率+Gluttonous Joker Gluttonous Joker+Jolly Joker Jolly Joker+{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2# 如果打出的牌中\n包含{C:attention}#2#\n{C:mult}+#1#{}倍率+Zany Joker Zany Joker+Mad Joker Mad Joker+Crazy Joker Crazy Joker+Droll Joker Droll Joker+Sly Joker Sly Joker+{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2# 如果打出的牌中\n包含{C:attention}#2#\n{C:chips}+#1#{}筹码+Wily Joker Wily Joker+Clever Joker Clever Joker+Devious Joker Devious Joker+Crafty Joker Crafty Joker+Half Joker Half Joker+{C:mult}+#1#{} Mult if played\nhand contains\n{C:attention}#2#{} or fewer cards 如果打出的牌\n不多于{C:attention}#2#{}张\n{C:mult}+#1#{}倍率+Joker Stencil Joker Stencil+{X:mult,C:white} X1 {} Mult for each\nempty {C:attention}Joker{} slot\nJoker Stencil included\n{C:inactive}(Currently {X:mult,C:white} X#1# {C:inactive}) 每个空的{C:attention}小丑{}槽位\n给予{X:mult,C:white} X1 {}倍率\n(含小丑模板本身)\n{C:inactive}(当前为{X:mult,C:white} X#1# {C:inactive})+Four Fingers Four Fingers+All {C:attention}Flushes{} and\n{C:attention}Straights{} can be\nmade with {C:attention}4{} cards 所有{C:attention}同花{}和{C:attention}顺子\n只需{C:attention}4{}张牌\n即可组成+Mime Mime+Retrigger all\ncard {C:attention}held in\n{C:attention}hand{} abilities 重新触发所有\n{C:attention}手牌中{}的牌的\n能力+Credit Card Credit Card+Go up to\n{C:mult}-$#1#{} in debt 资金最多可为\n{C:mult}-$#1#+Ceremonial Dagger Ceremonial Dagger+When {C:attention}Blind{} is selected,\ndestroy Joker to the right\nand permanently add {C:attention}double\nits sell value to this {C:mult}Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult) 选择{C:attention}盲注{}时\n摧毁右边的小丑牌\n并将其售价的{C:attention}两倍\n永久加到此牌的{C:mult}倍率\n{C:inactive}(当前为{C:mult}+#1#{C:inactive}倍率)+Banner Banner+{C:chips}+#1#{} Chips for\neach remaining\n{C:attention}discard 每剩余一次\n{C:attention}弃牌\n{C:chips}+#1#{}筹码+Mystic Summit Mystic Summit+{C:mult}+#1#{} Mult when\n{C:attention}#2#{} discards\nremaining 剩余弃牌次数\n为{C:attention}#2#{}时\n{C:mult}+#1#{}倍率+Marble Joker Marble Joker+Adds one {C:attention}Stone{} card\nto deck when\n{C:attention}Blind{} is selected 选择{C:attention}盲注{}时\n向牌组中加入\n一张{C:attention}石头牌+Loyalty Card Loyalty Card+{X:mult,C:white} X#1# {} Mult every\n{C:attention}#2#{} hands played\n{C:inactive}#3# 每打出{C:attention}#2#{}次牌\n给予{X:mult,C:white} X#1# {}倍率\n{C:inactive}#3#+8 Ball 8 Ball+{C:green}#1# in #2#{} chance for each\nplayed {C:attention}8{} to create a\n{C:tarot}Tarot{} card when scored\n{C:inactive}(Must have room) 每张打出的{C:attention}8{}计分时\n有{C:green}#1#/#2#{}的几率\n生成一张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+Misprint Misprint+Dusk Dusk+Retrigger all played\ncards in {C:attention}final\n{C:attention}hand{} of round 重新触发每回合\n{C:attention}最后一次出牌{}中\n所有打出的牌+Raised Fist Raised Fist+Adds {C:attention}double{} the rank\nof {C:attention}lowest{} ranked card\nheld in hand to Mult 将手牌中{C:attention}点数最小{}的牌\n其点数的{C:attention}两倍\n加到倍率上+Chaos the Clown Chaos the Clown+{C:attention}#1#{} free {C:green}Reroll\nper shop 每个商店有\n{C:attention}#1#{}次免费{C:green}重掷+Fibonacci Fibonacci+Each played {C:attention}Ace{},\n{C:attention}2{}, {C:attention}3{}, {C:attention}5{}, or {C:attention}8{} gives\n{C:mult}+#1#{} Mult when scored 每张打出的{C:attention}A{}、{C:attention}2{}、\n{C:attention}3{}、{C:attention}5{}或{C:attention}8{}计分时\n给予{C:mult}+#1#{}倍率+Steel Joker Steel Joker+Gives {X:mult,C:white} X#1# {} Mult\nfor each {C:attention}Steel Card\nin your {C:attention}full deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 完整牌组中每有\n一张{C:attention}钢铁牌\n给予{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Scary Face Scary Face+Played {C:attention}face{} cards\ngive {C:chips}+#1#{} Chips\nwhen scored 打出的{C:attention}人头牌\n计分时给予\n{C:chips}+#1#{}筹码+Abstract Joker Abstract Joker+{C:mult}+#1#{} Mult for\neach {C:attention}Joker{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) 每有一张{C:attention}小丑牌\n{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive}倍率)+Delayed Gratification Delayed Gratification+Earn {C:money}$#1#{} per {C:attention}discard{} if\nno discards are used\nby end of the round 回合结束时如果\n没有使用弃牌,每次\n{C:attention}弃牌{}获得{C:money}$#1#+Hack Hack+Retrigger\neach played\n{C:attention}2{}, {C:attention}3{}, {C:attention}4{}, or {C:attention}5{} 重新触发每张\n打出的{C:attention}2{}、{C:attention}3{}、\n{C:attention}4{}或{C:attention}5+Pareidolia Pareidolia+All cards are\nconsidered\n{C:attention}face{} cards 所有牌都视为\n{C:attention}人头牌+Gros Michel Gros Michel+{C:mult}+#1#{} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round {C:mult}+#1#{}倍率\n回合结束时有{C:green}#2#/#3#\n的几率摧毁此牌+Even Steven Even Steven+Played cards with\n{C:attention}even{} rank give\n{C:mult}+#1#{} Mult when scored\n{C:inactive}(10, 8, 6, 4, 2) 打出的{C:attention}双数{}点数牌\n计分时给予\n{C:mult}+#1#{}倍率\n{C:inactive}(10, 8, 6, 4, 2)+Odd Todd Odd Todd+Played cards with\n{C:attention}odd{} rank give\n{C:chips}+#1#{} Chips when scored\n{C:inactive}(A, 9, 7, 5, 3) 打出的{C:attention}奇数{}点数牌\n计分时给予\n{C:chips}+#1#{}筹码\n{C:inactive}(A, 9, 7, 5, 3)+Scholar Scholar+Played {C:attention}Aces{}\ngive {C:chips}+#2#{} Chips\nand {C:mult}+#1#{} Mult\nwhen scored 打出的{C:attention}A{}计分时\n给予{C:chips}+#2#{}筹码\n和{C:mult}+#1#{}倍率+Business Card Business Card+Played {C:attention}face{} cards have\na {C:green}#1# in #2#{} chance to\ngive {C:money}$2{} when scored 打出的{C:attention}人头牌{}计分时\n有{C:green}#1#/#2#{}的几率\n给予{C:money}$2+Supernova Supernova+Adds the number of times\n{C:attention}poker hand{} has been\nplayed this run to Mult 将本局中该{C:attention}牌型\n已打出的次数\n加到倍率上+Ride the Bus Ride the Bus+This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}consecutive{} hand\nplayed without a\nscoring {C:attention}face{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) 每{C:attention}连续{}一次出牌\n没有计分的{C:attention}人头牌\n此小丑获得{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive}倍率)+Space Joker Space Joker+{C:green}#1# in #2#{} chance to\nupgrade level of\nplayed {C:attention}poker hand{} 有{C:green}#1#/#2#{}的几率\n升级打出的{C:attention}牌型+Egg Egg+Gains {C:money}$#1#{} of\n{C:attention}sell value{} at\nend of round 回合结束时\n{C:attention}售价{}增加{C:money}$#1#+Burglar Burglar+When {C:attention}Blind{} is selected,\ngain {C:chips}+#1#{} Hands and\n{C:attention}lose all discards 选择{C:attention}盲注{}时\n获得{C:chips}+#1#{}次出牌\n并{C:attention}失去所有弃牌+Blackboard Blackboard+{X:mult,C:white} X#1# {} Mult if all\ncards held in hand\nare {C:spades}#2#{} or {C:attention}#3#{} 如果手牌全部为\n{C:spades}#2#{}或{C:attention}#3#\n给予{X:mult,C:white} X#1# {}倍率+Runner Runner+Gains {C:chips}+#2#{} Chips\nif played hand\ncontains a {C:attention}Straight{}\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips) 如果打出的牌中\n包含{C:attention}顺子\n获得{C:chips}+#2#{}筹码\n{C:inactive}(当前为{C:chips}+#1#{C:inactive}筹码)+Ice Cream Ice Cream+{C:chips}+#1#{} Chips\n{C:chips}-#2#{} Chips for\nevery hand played {C:chips}+#1#{}筹码\n每次出牌后\n{C:chips}-#2#{}筹码+DNA DNA+If {C:attention}first hand{} of round\nhas only {C:attention}1{} card, add a\npermanent copy to deck\nand draw it to {C:attention}hand 如果回合的{C:attention}第一次出牌\n只有{C:attention}1{}张牌,将其\n永久复制到牌组\n并抽到{C:attention}手牌{}中+Splash Splash+Every {C:attention}played card\ncounts in scoring 每张{C:attention}打出的牌\n都会计分+Blue Joker Blue Joker+{C:chips}+#1#{} Chips for each\nremaining card in {C:attention}deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) {C:attention}牌组{}中每剩余\n一张牌{C:chips}+#1#{}筹码\n{C:inactive}(当前为{C:chips}+#2#{C:inactive}筹码)+Sixth Sense Sixth Sense+If {C:attention}first hand{} of round is\na single {C:attention}6{}, destroy it and\ncreate a {C:spectral}Spectral{} card\n{C:inactive}(Must have room) 如果回合的{C:attention}第一次出牌\n只有一张{C:attention}6{},将其摧毁\n并生成一张{C:spectral}幻灵牌\n{C:inactive}(必须有空位)+Constellation Constellation+This Joker gains\n{X:mult,C:white} X#1# {} Mult every time\na {C:planet}Planet{} card is used\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每使用一张{C:planet}星球牌\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Hiker Hiker+Every played {C:attention}card{}\npermanently gains\n{C:chips}+#1#{} Chips when scored 每张打出的{C:attention}牌{}计分时\n永久获得{C:chips}+#1#{}筹码+Faceless Joker Faceless Joker+Earn {C:money}$#1#{} if {C:attention}#2#{} or\nmore {C:attention}face cards{}\nare discarded\nat the same time 同时弃掉{C:attention}#2#{}张\n或更多{C:attention}人头牌{}时\n获得{C:money}$#1#+Green Joker Green Joker+{C:mult}+#1#{} Mult per hand played\n{C:mult}-#2#{} Mult per discard\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) 每次出牌{C:mult}+#1#{}倍率\n每次弃牌{C:mult}-#2#{}倍率\n{C:inactive}(当前为{C:mult}+#3#{C:inactive}倍率)+Superposition Superposition+Create a {C:tarot}Tarot{} card if\npoker hand contains an\n{C:attention}Ace{} and a {C:attention}Straight{}\n{C:inactive}(Must have room) 如果牌型中包含\n{C:attention}A{}和{C:attention}顺子\n生成一张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+To Do List To Do List+Earn {C:money}$#1#{} if {C:attention}poker hand{}\nis a {C:attention}#2#{},\npoker hand changes\nat end of round 如果牌型为{C:attention}#2#\n获得{C:money}$#1#\n回合结束时牌型改变+Cavendish Cavendish+{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round {X:mult,C:white} X#1# {}倍率\n回合结束时有{C:green}#2#/#3#\n的几率摧毁此牌+Card Sharp Card Sharp+{X:mult,C:white} X#1# {} Mult if played\n{C:attention}poker hand{} has already\nbeen played this round 如果打出的{C:attention}牌型\n本回合已打出过\n给予{X:mult,C:white} X#1# {}倍率+Red Card Red Card+This Joker gains\n{C:mult}+#1#{} Mult when any\n{C:attention}Booster Pack{} is skipped\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) 每跳过一个{C:attention}补充包\n此小丑获得{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive}倍率)+Madness Madness+When {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 选择{C:attention}小盲注{}或{C:attention}大盲注{}时\n获得{X:mult,C:white} X#1# {}倍率\n并随机{C:attention}摧毁{}一张小丑牌\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Square Joker Square Joker+This Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips) 如果打出的牌\n正好为{C:attention}4{}张\n此小丑获得{C:chips}+#2#{}筹码\n{C:inactive}(当前为{C:chips}#1#{C:inactive}筹码)+Singance Singance+If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room) 如果牌型为{C:attention}#1#\n随机生成一张\n{C:spectral}幻灵牌\n{C:inactive}(必须有空位)+Riff-Raff Riff-Raff+When {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room) 选择{C:attention}盲注{}时\n生成{C:attention}#1#{}张{C:chips}普通{}小丑牌\n{C:inactive}(必须有空位)+Vampire Vampire+This Joker gains {X:mult,C:white} X#1# {} Mult\nper scoring {C:attention}Enhanced card{} played,\nremoves card {C:attention}Enhancement\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每打出一张计分的\n{C:attention}增强牌{},此小丑获得\n{X:mult,C:white} X#1# {}倍率并移除\n该牌的{C:attention}增强\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Shortcut Shortcut+Allows {C:attention}Straights{} to be\nmade with gaps of {C:attention}1 rank\n{C:inactive}(ex: {C:attention}10 8 6 5 3{C:inactive}) {C:attention}顺子{}可以跳过\n{C:attention}1{}个点数\n{C:inactive}(例:{C:attention}10 8 6 5 3{C:inactive})+Hologram Hologram+This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}playing card{}\nis added to your deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每有一张{C:attention}游戏牌{}\n加入牌组,此小丑\n获得{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Vagabond Vagabond+Create a {C:tarot}Tarot{} card\nif hand is played\nwith {C:money}$#1#{} or less 如果出牌时资金\n不多于{C:money}$#1#\n生成一张{C:tarot}塔罗牌+Baron Baron+Each {C:attention}King{}\nheld in hand\ngives {X:mult,C:white} X#1# {} Mult 手牌中每张{C:attention}K\n给予{X:mult,C:white} X#1# {}倍率+Cloud 9 Cloud 9+Earn {C:money}$#1#{} for each\n{C:attention}9{} in your {C:attention}full deck\nat end of round\n{C:inactive}(Currently {C:money}$#2#{}{C:inactive}) 回合结束时{C:attention}完整\n牌组{}中每有一张{C:attention}9\n获得{C:money}$#1#\n{C:inactive}(当前为{C:money}$#2#{}{C:inactive})+Rocket Rocket+Earn {C:money}$#1#{} at end of round\nPayout increases by {C:money}$#2#{}\nwhen {C:attention}Boss Blind{} is defeated 回合结束时获得{C:money}$#1#\n击败{C:attention}Boss盲注{}时\n奖励增加{C:money}$#2#+Obelisk Obelisk+This Joker gains {X:mult,C:white} X#1# {} Mult\nper {C:attention}consecutive{} hand played\nwithout playing your\nmost played {C:attention}poker hand\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每{C:attention}连续{}一次出牌\n不是最常打出的{C:attention}牌型\n此小丑获得{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Midas Mask Midas Mask+All played {C:attention}face{} cards\nbecome {C:attention}Gold{} cards\nwhen scored 打出的{C:attention}人头牌\n计分时变为\n{C:attention}黄金牌+Luchador Luchador+Sell this card to\ndisable the current\n{C:attention}Boss Blind{} 卖掉此牌\n使当前的{C:attention}Boss盲注\n失效+Photograph Photograph+First played {C:attention}face\ncard gives {X:mult,C:white} X#1# {} Mult\nwhen scored 第一张打出的\n{C:attention}人头牌{}计分时\n给予{X:mult,C:white} X#1# {}倍率+Gift Card Gift Card+Add {C:money}$#1#{} of {C:attention}sell value\nto every {C:attention}Joker{} and\n{C:attention}Consumable{} card at\nend of round 回合结束时每张\n{C:attention}小丑牌{}和{C:attention}消耗牌\n的售价增加{C:money}$#1#+Turtle Bean Turtle Bean+{C:attention}+#1#{} hand size,\nreduces by\n{C:mult}#2#{} every round 手牌上限{C:attention}+#1#\n每回合减少{C:mult}#2#+Erosion Erosion+{C:mult}+#1#{} Mult for each\ncard below {C:attention}#3#{}\nin your full deck\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) 完整牌组中每比\n{C:attention}#3#{}张少一张牌\n{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive}倍率)+Reserved Parking Reserved Parking+Each {C:attention}face{} card\nheld in hand has\na {C:green}#2# in #3#{} chance\nto give {C:money}$#1#{} 手牌中每张{C:attention}人头牌\n有{C:green}#2#/#3#{}的几率\n给予{C:money}$#1#+Mail-In Rebate Mail-In Rebate+Earn {C:money}$#1#{} for each\ndiscarded {C:attention}#2#{}, rank\nchanges every round 每弃掉一张{C:attention}#2#\n获得{C:money}$#1#\n点数每回合改变+To the Moon To the Moon+Earn an extra {C:money}$#1#{} of\n{C:attention}interest{} for every {C:money}$5{} you\nhave at end of round 回合结束时每有{C:money}$5\n额外获得{C:money}$#1#{}的{C:attention}利息+Hallucination Hallucination+{C:green}#1# in #2#{} chance to create\na {C:tarot}Tarot{} card when any\n{C:attention}Booster Pack{} is opened\n{C:inactive}(Must have room) 打开任何{C:attention}补充包{}时\n有{C:green}#1#/#2#{}的几率\n生成一张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+Fortune Teller Fortune Teller+{C:mult}+#1#{} Mult per {C:tarot}Tarot{}\ncard used this run\n{C:inactive}(Currently {C:mult}+#2#{C:inactive}) 本局每使用一张\n{C:tarot}塔罗牌{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive})+Juggler Juggler+{C:attention}+#1#{} hand size 手牌上限{C:attention}+#1#+Drunkard Drunkard+{C:mult}+#1#{} discard\neach round 每回合\n弃牌次数{C:mult}+#1#+Stone Joker Stone Joker+Gives {C:chips}+#1#{} Chips for\neach {C:attention}Stone Card\nin your {C:attention}full deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) 完整牌组中每有\n一张{C:attention}石头牌\n给予{C:chips}+#1#{}筹码\n{C:inactive}(当前为{C:chips}+#2#{C:inactive}筹码)+Golden Joker Golden Joker+Earn {C:money}$#1#{} at\nend of round 回合结束时\n获得{C:money}$#1#+Lucky Cat Lucky Cat+This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}Lucky{} card\n{C:green}successfully{} triggers\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每次{C:attention}幸运牌{C:green}成功{}触发\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Baseball Card Baseball Card+{C:green}Uncommon{} Jokers\neach give {X:mult,C:white} X#1# {} Mult 每张{C:green}罕见{}小丑牌\n给予{X:mult,C:white} X#1# {}倍率+Bull Bull+{C:chips}+#1#{} Chips for\neach {C:money}$1{} you have\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips) 每有{C:money}$1\n{C:chips}+#1#{}筹码\n{C:inactive}(当前为{C:chips}+#2#{C:inactive}筹码)+Diet Cola Diet Cola+Sell this card to\ncreate a free\n{C:attention}#1# 卖掉此牌\n获得一个免费的\n{C:attention}#1#+Trading Card Trading Card+If {C:attention}first discard{} of round\nhas only {C:attention}1{} card, destroy\nit and earn {C:money}$#1# 如果回合的{C:attention}第一次弃牌\n只有{C:attention}1{}张牌\n将其摧毁并获得{C:money}$#1#+Flash Card Flash Card+This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}reroll{} in the shop\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult) 商店中每{C:attention}重掷{}一次\n此小丑获得{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#2#{C:inactive}倍率)+Popcorn Popcorn+{C:mult}+#1#{} Mult\n{C:mult}-#2#{} Mult per\nround played {C:mult}+#1#{}倍率\n每回合{C:mult}-#2#{}倍率+Spare Trousers Spare Trousers+This Joker gains {C:mult}+#1#{} Mult\nif played hand contains\na {C:attention}#2#\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) 如果打出的牌中\n包含{C:attention}#2#\n此小丑获得{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#3#{C:inactive}倍率)+Ancient Joker Ancient Joker+Each played card with\n{C:attention}#2#{} suit gives\n{X:mult,C:white} X#1# {} Mult when scored,\nsuit changes at end of round 打出的{C:attention}#2#{}牌计分时\n给予{X:mult,C:white} X#1# {}倍率\n回合结束时花色改变+Ramen Ramen+{X:mult,C:white} X#1# {} Mult,\nloses {X:mult,C:white} X#2# {} Mult\nper {C:attention}card{} discarded {X:mult,C:white} X#1# {}倍率\n每弃掉一张{C:attention}牌\n失去{X:mult,C:white} X#2# {}倍率+Walkie Talkie Walkie Talkie+Each played {C:attention}10{} or {C:attention}4\ngives {C:chips}+#1#{} Chips and\n{C:mult}+#2#{} Mult when scored 每张打出的{C:attention}10{}或{C:attention}4\n计分时给予{C:chips}+#1#{}筹码\n和{C:mult}+#2#{}倍率+Seltzer Seltzer+Retrigger all\ncards played for\nthe next {C:attention}#1#{} hands 在接下来的{C:attention}#1#{}次出牌中\n重新触发所有\n打出的牌+Castle Castle+This Joker gains {C:chips}+#1#{} Chips\nper discarded {C:attention}#2#{} card,\nsuit changes every round\n{C:inactive}(Currently {C:chips}+#3#{C:inactive} Chips) 每弃掉一张{C:attention}#2#{}牌\n此小丑获得{C:chips}+#1#{}筹码\n花色每回合改变\n{C:inactive}(当前为{C:chips}+#3#{C:inactive}筹码)+Smiley Face Smiley Face+Played {C:attention}face{} cards\ngive {C:mult}+#1#{} Mult\nwhen scored 打出的{C:attention}人头牌\n计分时给予\n{C:mult}+#1#{}倍率+Campfire Campfire+This Joker gains {X:mult,C:white}X#1#{} Mult\nfor each card {C:attention}sold{}, resets\nwhen {C:attention}Boss Blind{} is defeated\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每{C:attention}卖出{}一张牌\n此小丑获得{X:mult,C:white}X#1#{}倍率\n击败{C:attention}Boss盲注{}时重置\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Golden Ticket Golden Ticket+Played {C:attention}Gold{} cards\nearn {C:money}$#1#{} when scored 打出的{C:attention}黄金牌\n计分时获得{C:money}$#1#+Mr. Bones Mr. Bones+Prevents Death\nif chips scored\nare at least {C:attention}25%\nof required chips\n{C:mult}self destructs{} 如果得分至少为\n所需筹码的{C:attention}25%\n则免于失败\n然后{C:mult}自我摧毁+Acrobat Acrobat+{X:mult,C:white} X#1# {} Mult on {C:attention}final\n{C:attention}hand{} of round 每回合的{C:attention}最后一次\n{C:attention}出牌{}给予{X:mult,C:white} X#1# {}倍率+Sock and Buskin Sock and Buskin+Retrigger all\nplayed {C:attention}face{} cards 重新触发所有\n打出的{C:attention}人头牌+Swashbuckler Swashbuckler+Adds the sell value\nof all other owned\n{C:attention}Jokers{} to Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult) 将其他所有{C:attention}小丑牌\n的售价加到倍率上\n{C:inactive}(当前为{C:mult}+#1#{C:inactive}倍率)+Troubadour Troubadour+{C:attention}+#1#{} hand size,\n{C:chips}-#2#{} hand each round 手牌上限{C:attention}+#1#\n每回合出牌次数{C:chips}-#2#+Certificate Certificate+When round begins,\nadd a random {C:attention}playing\n{C:attention}card{} with a random\n{C:attention}seal{} to your hand 回合开始时\n将一张有随机{C:attention}蜡封\n的随机{C:attention}游戏牌\n加入手牌+Smeared Joker Smeared Joker+{C:mult}Hearts{} and {C:attention}Diamonds\ncount as the same suit,\n{C:spades}Spades{} and {C:attention}Clubs\ncount as the same suit {C:mult}红桃{}和{C:attention}方片\n视为同一花色\n{C:spades}黑桃{}和{C:attention}梅花\n视为同一花色+Throwback Throwback+{X:mult,C:white} X#1# {} Mult for each\n{C:attention}Blind{} skipped this run\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 本局每跳过一个{C:attention}盲注\n给予{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Hanging Chad Hanging Chad+Retrigger {C:attention}first{} played\ncard used in scoring\n{C:attention}#1#{} additional times 额外重新触发\n第{C:attention}一{}张计分的牌\n{C:attention}#1#{}次+Rough Gem Rough Gem+Played cards with\n{C:attention}Diamond{} suit earn\n{C:money}$#1#{} when scored 打出的{C:attention}方片{}牌\n计分时获得{C:money}$#1#+Bloodstone Bloodstone+{C:green}#1# in #2#{} chance for\nplayed cards with\n{C:mult}Heart{} suit to give\n{X:mult,C:white} X#3# {} Mult when scored 打出的{C:mult}红桃{}牌计分时\n有{C:green}#1#/#2#{}的几率\n给予{X:mult,C:white} X#3# {}倍率+Arrowhead Arrowhead+Played cards with\n{C:spades}Spade{} suit give\n{C:chips}+#1#{} Chips when scored 打出的{C:spades}黑桃{}牌\n计分时给予\n{C:chips}+#1#{}筹码+Onyx Agate Onyx Agate+Played cards with\n{C:attention}Club{} suit give\n{C:mult}+#1#{} Mult when scored 打出的{C:attention}梅花{}牌\n计分时给予\n{C:mult}+#1#{}倍率+Glass Joker Glass Joker+This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Glass Card\nthat is destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每摧毁一张{C:attention}玻璃牌\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Showman Showman+{C:attention}Joker{}, {C:tarot}Tarot{}, {C:planet}Planet{},\nand {C:spectral}Spectral{} cards may\nappear multiple times {C:attention}小丑牌{}、{C:tarot}塔罗牌{}、\n{C:planet}星球牌{}和{C:spectral}幻灵牌\n可以多次出现+Flower Pot Flower Pot+{X:mult,C:white} X#1# {} Mult if poker\nhand contains a\n{C:attention}Diamond{} card, {C:attention}Club{} card,\n{C:mult}Heart{} card, and {C:spades}Spade{} card 如果牌型中包含\n{C:attention}方片{}、{C:attention}梅花{}、\n{C:mult}红桃{}和{C:spades}黑桃{}牌\n给予{X:mult,C:white} X#1# {}倍率+Blueprint Blueprint+Copies ability of\n{C:attention}Joker{} to the right 复制右边\n{C:attention}小丑牌{}的能力+Wee Joker Wee Joker+This Joker gains\n{C:chips}+#2#{} Chips when each\nplayed {C:attention}2{} is scored\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips) 每张打出的{C:attention}2{}计分时\n此小丑获得{C:chips}+#2#{}筹码\n{C:inactive}(当前为{C:chips}+#1#{C:inactive}筹码)+Merry Andy Merry Andy+{C:mult}+#1#{} discards\neach round,\n{C:mult}#2#{} hand size 每回合弃牌\n次数{C:mult}+#1#\n手牌上限{C:mult}#2#+Oops! All 6s Oops! All 6s+Doubles all {C:attention}listed\n{C:green}probabilities\n{C:inactive}(ex: {C:green}1 in 3{C:inactive} -> {C:green}2 in 3{C:inactive}) 所有列出的\n{C:green}几率{}翻倍\n{C:inactive}(例:{C:green}1/3{C:inactive} -> {C:green}2/3{C:inactive})+The Idol The Idol+Each played {C:attention}#2#\nof {C:attention}#3#{} gives\n{X:mult,C:white} X#1# {} Mult when scored\nCard changes every round 每张打出的{C:attention}#3##2#\n计分时给予\n{X:mult,C:white} X#1# {}倍率\n牌每回合改变+Seeing Double Seeing Double+{X:mult,C:white} X#1# {} Mult if played\nhand has a scoring\n{C:attention}Club{} card and a scoring\ncard of any other {C:attention}suit 如果打出的牌中有\n计分的{C:attention}梅花{}牌和\n其他{C:attention}花色{}的计分牌\n给予{X:mult,C:white} X#1# {}倍率+Matador Matador+Earn {C:money}$#1#{} if played\nhand triggers the\n{C:attention}Boss Blind{} ability 如果打出的牌触发\n{C:attention}Boss盲注{}的能力\n获得{C:money}$#1#+Hit the Road Hit the Road+This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Jack{}\ndiscarded this round\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 本回合每弃掉一张{C:attention}J\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+The Duo The Duo+{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2# 如果打出的牌中\n包含{C:attention}#2#\n给予{X:mult,C:white} X#1# {}倍率+The Trio The Trio+The Family The Family+The Order The Order+The Tribe The Tribe+Stuntman Stuntman+{C:chips}+#1#{} Chips,\n{C:attention}-#2#{} hand size {C:chips}+#1#{}筹码\n手牌上限{C:attention}-#2#+Invisible Joker Invisible Joker+After {C:attention}#1#{} rounds,\nsell this card to\n{C:attention}Duplicate{} a random Joker\n{C:inactive}(Currently {C:attention}#2#{C:inactive}/#1#) 经过{C:attention}#1#{}个回合后\n卖掉此牌可随机\n{C:attention}复制{}一张小丑牌\n{C:inactive}(当前为{C:attention}#2#{C:inactive}/#1#)+Brainstorm Brainstorm+Copies the ability\nof leftmost {C:attention}Joker 复制最左边\n{C:attention}小丑牌{}的能力+Satellite Satellite+Earn {C:money}$#1#{} at end of\nround per unique {C:planet}Planet\ncard used this run\n{C:inactive}(Currently {C:money}$#2#{C:inactive}) 回合结束时本局每使用过\n一种{C:planet}星球牌{}获得{C:money}$#1#\n{C:inactive}(当前为{C:money}$#2#{C:inactive})+Shoot the Moon Shoot the Moon+Each {C:attention}Queen{}\nheld in hand\ngives {C:mult}+#1#{} Mult 手牌中每张{C:attention}Q\n给予{C:mult}+#1#{}倍率+Driver's License Driver's License+{X:mult,C:white} X#1# {} Mult if you have\nat least {C:attention}16{} Enhanced\ncards in your full deck\n{C:inactive}(Currently {C:attention}#2#{C:inactive}) 如果完整牌组中\n至少有{C:attention}16{}张增强牌\n给予{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{C:attention}#2#{C:inactive})+Cartomancer Cartomancer+Create a {C:tarot}Tarot{} card\nwhen {C:attention}Blind{} is selected\n{C:inactive}(Must have room) 选择{C:attention}盲注{}时\n生成一张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+Astronomer Astronomer+All {C:planet}Planet{} cards and\n{C:planet}Celestial Packs{} in\nthe shop are {C:attention}free 商店中所有{C:planet}星球牌\n和{C:planet}天体包{}都{C:attention}免费+Burnt Joker Burnt Joker+Upgrade the level of\nthe first {C:attention}discarded\npoker hand each round 每回合升级\n第一次{C:attention}弃掉{}的牌型+Bootstraps Bootstraps+{C:mult}+#1#{} Mult for every\n{C:money}$#2#{} you have\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult) 每有{C:money}$#2#\n{C:mult}+#1#{}倍率\n{C:inactive}(当前为{C:mult}+#3#{C:inactive}倍率)+Canio Canio+This Joker gains {X:mult,C:white} X#1# {} Mult\nwhen a {C:attention}face{} card\nis destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 每摧毁一张{C:attention}人头牌\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)+Triboulet Triboulet+Played {C:attention}Kings{} and\n{C:attention}Queens{} each give\n{X:mult,C:white} X#1# {} Mult when scored 打出的{C:attention}K{}和{C:attention}Q\n计分时各给予\n{X:mult,C:white} X#1# {}倍率+Yorick Yorick+This Joker gains\n{X:mult,C:white} X#1# {} Mult every {C:attention}#2#{C:inactive} [#3#]{}\ncards discarded\n{C:inactive}(Currently {X:mult,C:white} X#4# {C:inactive} Mult) 每弃掉{C:attention}#2#{C:inactive} [#3#]{}张牌\n此小丑获得\n{X:mult,C:white} X#1# {}倍率\n{C:inactive}(当前为{X:mult,C:white} X#4# {C:inactive}倍率)+Chicot Chicot+Disables effect of\nevery {C:attention}Boss Blind 使每个{C:attention}Boss盲注\n的效果失效+Perkeo Perkeo+Creates a {C:dark_edition}Negative{} copy of\n{C:attention}1{} random {C:attention}consumable{}\ncard in your possession\nat the end of the {C:attention}shop 离开{C:attention}商店{}时\n随机复制{C:attention}1{}张持有的\n{C:attention}消耗牌{},复制品为{C:dark_edition}负片+The Fool The Fool+Creates the last\n{C:tarot}Tarot{} or {C:planet}Planet{} card\nused during this run\n{C:tarot}The Fool excluded 生成本局最后使用的\n{C:tarot}塔罗牌{}或{C:planet}星球牌\n{C:tarot}The Fool除外+The Magician The Magician+Enhances {C:attention}#1#{}\nselected cards to\n{C:attention}#2#s 将{C:attention}#1#{}张选定的牌\n增强为{C:attention}#2#+The High Priestess The High Priestess+Creates up to {C:attention}#1#\nrandom {C:planet}Planet{} cards\n{C:inactive}(Must have room) 随机生成最多\n{C:attention}#1#{}张{C:planet}星球牌\n{C:inactive}(必须有空位)+The Empress The Empress+Enhances {C:attention}#1#\nselected cards to\n{C:attention}#2#s 将{C:attention}#1#{}张选定的牌\n增强为{C:attention}#2#+The Emperor The Emperor+Creates up to {C:attention}#1#\nrandom {C:tarot}Tarot{} cards\n{C:inactive}(Must have room) 随机生成最多\n{C:attention}#1#{}张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+The Hierophant The Hierophant+The Lovers The Lovers+Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2# 将{C:attention}#1#{}张选定的牌\n增强为{C:attention}#2#+The Chariot The Chariot+Justice Justice+The Hermit The Hermit+Doubles money\n{C:inactive}(Max of {C:money}$#1#{C:inactive}) 资金翻倍\n{C:inactive}(最多{C:money}$#1#{C:inactive})+The Wheel of Fortune The Wheel of Fortune+{C:green}#1# in #2#{} chance to add\n{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, or\n{C:dark_edition}Polychrome{} edition\nto a random {C:attention}Joker 有{C:green}#1#/#2#{}的几率\n为随机一张{C:attention}小丑牌\n添加{C:dark_edition}闪箔{}、{C:dark_edition}镭射{}\n或{C:dark_edition}多彩{}版本+Strength Strength+Increases rank of\nup to {C:attention}#1#{} selected\ncards by {C:attention}1 将最多{C:attention}#1#{}张选定的牌\n的点数提升{C:attention}1+The Hanged Man The Hanged Man+Destroys up to\n{C:attention}#1#{} selected cards 摧毁最多\n{C:attention}#1#{}张选定的牌+Death Death+Select {C:attention}#1#{} cards,\nconvert the {C:attention}left{} card\ninto the {C:attention}right{} card\n{C:inactive}(Drag to rearrange) 选择{C:attention}#1#{}张牌\n将{C:attention}左边{}的牌\n变为{C:attention}右边{}的牌\n{C:inactive}(可移动以重新排列)+Temperance Temperance+Gives the total sell\nvalue of all current\nJokers {C:inactive}(Max of {C:money}$#1#{C:inactive})\n{C:inactive}(Currently {C:money}$#2#{C:inactive}) 获得所有小丑牌\n的售价总和\n{C:inactive}(最多{C:money}$#1#{C:inactive})\n{C:inactive}(当前为{C:money}$#2#{C:inactive})+The Devil The Devil+The Tower The Tower+The Star The Star+Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{} 将最多{C:attention}#1#{}张\n选定的牌转换为\n{C:attention}#2#{}+The Moon The Moon+The Sun The Sun+Judgement Judgement+Creates a random\n{C:attention}Joker{} card\n{C:inactive}(Must have room) 随机生成一张\n{C:attention}小丑牌\n{C:inactive}(必须有空位)+The World The World+Mercury Mercury+({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips ({C:attention}等级#1#){}升级\n{C:attention}#2#\n{C:mult}+#3#{}倍率和\n{C:chips}+#4#{}筹码+Venus Venus+Earth Earth+Mars Mars+Jupiter Jupiter+Saturn Saturn+Uranus Uranus+Neptune Neptune+Pluto Pluto+Planet X Planet X+Ceres Ceres+Eris Eris+Familiar Familiar+Destroy {C:attention}1{} random\ncard in your hand, add\n{C:attention}#1#{} random {C:attention}Enhanced face\n{C:attention}cards{} to your hand 随机摧毁手牌中\n{C:attention}1{}张牌,并将{C:attention}#1#{}张\n随机{C:attention}增强人头牌\n加入手牌+Grim Grim+Destroy {C:attention}1{} random\ncard in your hand,\nadd {C:attention}#1#{} random {C:attention}Enhanced\n{C:attention}Aces{} to your hand 随机摧毁手牌中\n{C:attention}1{}张牌,并将{C:attention}#1#{}张\n随机{C:attention}增强A\n加入手牌+Incantation Incantation+Destroy {C:attention}1{} random\ncard in your hand, add {C:attention}#1#\nrandom {C:attention}Enhanced numbered\n{C:attention}cards{} to your hand 随机摧毁手牌中\n{C:attention}1{}张牌,并将{C:attention}#1#{}张\n随机{C:attention}增强数字牌\n加入手牌+Talisman Talisman+Add a {C:attention}Gold Seal{}\nto {C:attention}1{} selected\ncard in your hand 为手牌中{C:attention}1{}张选定的牌\n添加{C:attention}金色蜡封+Aura Aura+Add {C:dark_edition}Foil{}, {C:dark_edition}Holographic{},\nor {C:dark_edition}Polychrome{} effect to\n{C:attention}1{} selected card in hand 为手牌中{C:attention}1{}张选定的牌\n添加{C:dark_edition}闪箔{}、{C:dark_edition}镭射\n或{C:dark_edition}多彩{}效果+Wraith Wraith+Creates a random\n{C:mult}Rare{C:attention} Joker{},\nsets money to {C:money}$0 随机生成一张\n{C:mult}稀有{C:attention}小丑牌{}\n资金变为{C:money}$0+Sigil Sigil+Converts all cards\nin hand to a single\nrandom {C:attention}suit 将所有手牌转换为\n随机的同一{C:attention}花色+Ouija Ouija+Converts all cards\nin hand to a single\nrandom {C:attention}rank\n{C:mult}-1{} hand size 将所有手牌转换为\n随机的同一{C:attention}点数\n手牌上限{C:mult}-1+Ectoplasm Ectoplasm+Add {C:dark_edition}Negative{} to\na random {C:attention}Joker,\n{C:mult}-#1#{} hand size 为随机一张{C:attention}小丑牌\n添加{C:dark_edition}负片\n手牌上限{C:mult}-#1#+Immolate Immolate+Destroys {C:attention}#1#{} random\ncards in hand,\ngain {C:money}$#2# 随机摧毁{C:attention}#1#{}张手牌\n获得{C:money}$#2#+Ankh Ankh+Create a copy of a\nrandom {C:attention}Joker{}, destroy\nall other Jokers 随机复制一张{C:attention}小丑牌\n摧毁其他所有小丑牌+Deja Vu Deja Vu+Add a {C:mult}Red Seal{}\nto {C:attention}1{} selected\ncard in your hand 为手牌中{C:attention}1{}张选定的牌\n添加{C:mult}红色蜡封+Hex Hex+Add {C:dark_edition}Polychrome{} to a\nrandom {C:attention}Joker{}, destroy\nall other Jokers 为随机一张{C:attention}小丑牌\n添加{C:dark_edition}多彩\n摧毁其他所有小丑牌+Trance Trance+Add a {C:chips}Blue Seal{}\nto {C:attention}1{} selected\ncard in your hand 为手牌中{C:attention}1{}张选定的牌\n添加{C:chips}蓝色蜡封+Medium Medium+Add a {C:tarot}Purple Seal{}\nto {C:attention}1{} selected\ncard in your hand 为手牌中{C:attention}1{}张选定的牌\n添加{C:tarot}紫色蜡封+Cryptid Cryptid+Create {C:attention}#1#{} copies of\n{C:attention}1{} selected card\nin your hand 为手牌中{C:attention}1{}张选定的牌\n生成{C:attention}#1#{}张复制+The Soul The Soul+Creates a\n{C:tarot}Legendary{} Joker\n{C:inactive}(Must have room) 生成一张\n{C:tarot}传奇{}小丑牌\n{C:inactive}(必须有空位)+Black Hole Black Hole+Upgrade every\n{C:tarot}poker hand\nby {C:attention}1{} level 所有{C:tarot}牌型\n升级{C:attention}1{}级+Overstock Overstock+{C:attention}+1{} card slot\navailable in shop 商店中可用的\n卡槽{C:attention}+1+Clearance Sale Clearance Sale+All cards and packs in\nshop are {C:attention}#1#%{} off 商店中所有卡牌\n和补充包降价{C:attention}#1#%+Hone Hone+{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, and\n{C:dark_edition}Polychrome{} cards\nappear {C:attention}#1#X{} more often {C:dark_edition}闪箔{}、{C:dark_edition}镭射{}和\n{C:dark_edition}多彩{}牌出现的频率\n提高到{C:attention}#1#X+Reroll Surplus Reroll Surplus+Rerolls cost\n{C:money}$#1#{} less 重掷费用\n减少{C:money}$#1#+Crystal Ball Crystal Ball+{C:attention}+1{} consumable slot 消耗牌槽位{C:attention}+1+Telescope Telescope+{C:attention}Celestial Packs{} always\ncontain the {C:planet}Planet{}\ncard for your most\nplayed {C:attention}poker hand {C:attention}天体包{}总是包含\n你最常打出的{C:attention}牌型\n对应的{C:planet}星球牌+Grabber Grabber+Permanently\ngain {C:chips}+#1#{} hand\nper round 永久获得\n每回合{C:chips}+#1#{}次出牌+Wasteful Wasteful+Permanently\ngain {C:mult}+#1#{} discard\neach round 永久获得\n每回合{C:mult}+#1#{}次弃牌+Tarot Merchant Tarot Merchant+{C:tarot}Tarot{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop {C:tarot}塔罗牌{}在商店中\n出现的频率提高到\n{C:attention}#1#X+Planet Merchant Planet Merchant+{C:planet}Planet{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop {C:planet}星球牌{}在商店中\n出现的频率提高到\n{C:attention}#1#X+Seed Money Seed Money+Raise the cap on\ninterest earned in\neach round to {C:money}$#1#{} 每回合获得的\n利息上限提高到{C:money}$#1#+Blank Blank+{C:inactive}Does nothing? {C:inactive}没有效果?+Magic Trick Magic Trick+{C:attention}Playing cards{} can\nbe purchased\nfrom the {C:attention}shop 可以在{C:attention}商店{}中\n购买{C:attention}游戏牌+Hieroglyph Hieroglyph+{C:attention}-#1#{} Ante,\n{C:chips}-#1#{} hand\neach round 底注{C:attention}-#1#\n每回合出牌次数{C:chips}-#1#+Director's Cut Director's Cut+Reroll Boss Blind\n{C:attention}1{} time per Ante,\n{C:money}$#1#{} per roll 每个底注可重掷\nBoss盲注{C:attention}1{}次\n每次{C:money}$#1#+Paint Brush Paint Brush+Overstock Plus Overstock Plus+Liquidation Liquidation+Glow Up Glow Up+Reroll Glut Reroll Glut+Omen Globe Omen Globe+{C:spectral}Spectral{} cards may\nappear in any of\nthe {C:attention}Arcana Packs {C:spectral}幻灵牌{}可能出现在\n{C:attention}秘术包{}中+Observatory Observatory+{C:planet}Planet{} cards in your\n{C:attention}consumable{} area give\n{X:mult,C:white} X#1# {} Mult for their\nspecified {C:attention}poker hand 消耗牌区域中的\n{C:planet}星球牌{}为其对应的\n{C:attention}牌型{}给予{X:mult,C:white} X#1# {}倍率+Nacho Tong Nacho Tong+Recyclomancy Recyclomancy+Tarot Tycoon Tarot Tycoon+Planet Tycoon Planet Tycoon+Money Tree Money Tree+Antimatter Antimatter+{C:dark_edition}+1{} Joker Slot 小丑牌槽位{C:dark_edition}+1+Illusion Illusion+{C:attention}Playing cards{} in shop\nmay have an {C:attention}Enhancement{},\n{C:dark_edition}Edition{}, and/or a {C:attention}Seal{} 商店中的{C:attention}游戏牌\n可能有{C:attention}增强{}、\n{C:dark_edition}版本{}或{C:attention}蜡封+Petroglyph Petroglyph+{C:attention}-#1#{} Ante,\n{C:mult}-#1#{} discard\neach round 底注{C:attention}-#1#\n每回合弃牌次数{C:mult}-#1#+Retcon Retcon+Reroll Boss Blind\n{C:attention}unlimited{} times,\n{C:money}$#1#{} per roll 可以{C:attention}无限{}次重掷\nBoss盲注\n每次{C:money}$#1#+Palette Palette+Uncommon Tag Uncommon Tag+Shop has a free\n{C:green}Uncommon Joker 商店中有一张免费的\n{C:green}罕见{}小丑牌+Rare Tag Rare Tag+Shop has a free\n{C:mult}Rare Joker 商店中有一张免费的\n{C:mult}稀有{}小丑牌+Negative Tag Negative Tag+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Negative 商店中下一张基础版本\n的小丑牌免费\n并变为{C:dark_edition}负片+Foil Tag Foil Tag+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Foil 商店中下一张基础版本\n的小丑牌免费\n并变为{C:dark_edition}闪箔+Holographic Tag Holographic Tag+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Holographic 商店中下一张基础版本\n的小丑牌免费\n并变为{C:dark_edition}镭射+Polychrome Tag Polychrome Tag+Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Polychrome 商店中下一张基础版本\n的小丑牌免费\n并变为{C:dark_edition}多彩+Investment Tag Investment Tag+After defeating\nthe Boss Blind,\ngain {C:money}$#1# 击败Boss盲注后\n获得{C:money}$#1#+Voucher Tag Voucher Tag+Adds one {C:attention}Voucher\nto the next shop 在下一个商店中\n加入一张{C:attention}优惠券+Boss Tag Boss Tag+Rerolls the\n{C:attention}Boss Blind 重掷{C:attention}Boss盲注+Standard Tag Standard Tag+Gives a free\n{C:attention}Mega Standard Pack 免费获得一个\n{C:attention}超级标准包+Charm Tag Charm Tag+Gives a free\n{C:tarot}Mega Arcana Pack 免费获得一个\n{C:tarot}超级秘术包+Meteor Tag Meteor Tag+Gives a free\n{C:planet}Mega Celestial Pack 免费获得一个\n{C:planet}超级天体包+Buffoon Tag Buffoon Tag+Gives a free\n{C:attention}Mega Buffoon Pack 免费获得一个\n{C:attention}超级小丑包+Handy Tag Handy Tag+Gives {C:money}$#1#{} per played\n{C:chips}hand{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) 本局每打出一次{C:chips}牌\n获得{C:money}$#1#\n{C:inactive}(将获得{C:money}$#2#{C:inactive})+Garbage Tag Garbage Tag+Gives {C:money}$#1#{} per unused\n{C:mult}discard{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) 本局每有一次未使用的\n{C:mult}弃牌{}获得{C:money}$#1#\n{C:inactive}(将获得{C:money}$#2#{C:inactive})+Ethereal Tag Ethereal Tag+Gives a free\n{C:spectral}Spectral Pack 免费获得一个\n{C:spectral}幻灵包+Coupon Tag Coupon Tag+Initial cards and\nbooster packs in next\nshop are free 下一个商店中\n初始的卡牌和\n补充包都免费+Double Tag Double Tag+Gives a copy of the\nnext selected {C:attention}Tag{}\n{C:attention}Double Tag excluded 复制下一个选择的\n{C:attention}标签\n{C:attention}双倍标签除外+Juggle Tag Juggle Tag+{C:attention}+#1#{} hand size\nnext round 下一回合\n手牌上限{C:attention}+#1#+D6 Tag D6 Tag+Rerolls in next shop\nstart at {C:money}$0 下一个商店的重掷\n从{C:money}$0{}开始+Top-up Tag Top-up Tag+Create up to {C:attention}#1#\n{C:chips}Common{} Jokers\n{C:inactive}(Must have room) 生成最多{C:attention}#1#{}张\n{C:chips}普通{}小丑牌\n{C:inactive}(必须有空位)+Speed Tag Speed Tag+Gives {C:money}$#1#{} per skipped\nBlind this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive}) 本局每跳过一个盲注\n获得{C:money}$#1#\n{C:inactive}(将获得{C:money}$#2#{C:inactive})+Orbital Tag Orbital Tag+Upgrade {C:attention}#1#\nby {C:attention}#2# levels 将{C:attention}#1#\n升级{C:attention}#2#{}级+Economy Tag Economy Tag+Doubles your money\n{C:inactive}(Max of {C:money}$#1#{C:inactive}) 资金翻倍\n{C:inactive}(最多{C:money}$#1#{C:inactive})+Small Blind 小盲注+Big Blind 大盲注+The Ox The Ox+Playing a #1#\nsets money to $0 打出{C:attention}#1#\n会使资金变为$0+The House The House+First hand is\ndrawn face down 第一手牌\n背面朝上抽取+The Club The Club+All Club cards\nare debuffed 所有梅花牌\n被削弱+The Fish The Fish+Cards drawn face down\nafter each hand played 每次出牌后\n抽到的牌背面朝上+The Window The Window+All Diamond cards\nare debuffed 所有方片牌\n被削弱+The Hook The Hook+Discards 2 random\ncards per hand played 每次出牌时\n随机弃掉2张手牌+The Manacle The Manacle+-1 Hand Size 手牌上限-1+The Wall The Wall+Extra large blind 超大盲注+The Wheel The Wheel+ in 7 cards get\ndrawn face down /7的牌\n背面朝上抽取+The Arm The Arm+Decrease level of\nplayed poker hand 降低打出牌型\n的等级+The Psychic The Psychic+Must play 5 cards 必须打出5张牌+The Goad The Goad+All Spade cards\nare debuffed 所有黑桃牌\n被削弱+The Water The Water+Start with\n0 discards 开始时\n弃牌次数为0+The Serpent The Serpent+After Play or Discard,\nalways draw 3 cards 出牌或弃牌后\n总是抽3张牌+The Pillar The Pillar+Cards played previously\nthis Ante are debuffed 本底注中打出过\n的牌被削弱+The Eye The Eye+No repeat hand\ntypes this round 本回合不能重复\n打出相同牌型+The Mouth The Mouth+Play only 1 hand\ntype this round 本回合只能打出\n一种牌型+The Plant The Plant+All face cards\nare debuffed 所有人头牌\n被削弱+The Needle The Needle+Play only 1 hand 只能出牌1次+The Head The Head+All Heart cards\nare debuffed 所有红桃牌\n被削弱+The Tooth The Tooth+Lose $1 per\ncard played 每打出一张牌\n失去$1+The Mark The Mark+All face cards are\ndrawn face down 所有人头牌\n背面朝上抽取+The Flint The Flint+Base Chips and\nMult are halved 基础筹码和\n倍率除以2+Crimson Heart Crimson Heart+One random Joker\ndisabled every hand 每次出牌时随机\n一张小丑牌失效+Cerulean Bell Cerulean Bell+Forces 1 card to\nalways be selected 强制始终选中\n1张牌+Amber Acorn Amber Acorn+Flips and shuffles\nall Joker cards 翻转所有小丑牌\n并改变顺序+Verdant Leaf Verdant Leaf+All cards debuffed\nuntil 1 Joker sold 卖出1张小丑牌前\n所有牌被削弱+Violet Vessel Violet Vessel+Very large blind 巨型盲注+Bonus Card 奖励牌+Mult Card 倍率牌+Wild Card 万能牌+Can be used\nas any suit 可当作所有花色+Glass Card 玻璃牌+{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance to\ndestroy card {X:mult,C:white} X#1# {}倍率\n有{C:green}#2#/#3#{}的几率\n摧毁此牌+Steel Card 钢铁牌+{X:mult,C:white} X#1# {} Mult\nwhile this card\nstays in hand 此牌留在手牌中时\n给予{X:mult,C:white} X#1# {}倍率+Stone Card 石头牌+{C:chips}+#1#{} Chips\nno rank or suit {C:chips}+#1#{}筹码\n没有点数和花色+Gold Card 黄金牌+{C:money}$#1#{} if this\ncard is held in hand\nat end of round 回合结束时如果\n此牌在手牌中\n获得{C:money}$#1#+Lucky Card 幸运牌+{C:green}#1# in #3#{} chance\nfor {C:mult}+#2#{} Mult\n{C:green}#1# in #5#{} chance\nto win {C:money}$#4# 有{C:green}#1#/#3#{}的几率\n给予{C:mult}+#2#{}倍率\n有{C:green}#1#/#5#{}的几率\n获得{C:money}$#4#+Foil 闪箔+{C:chips}+#1#{} chips {C:chips}+#1#{}筹码+Holographic 镭射+Polychrome 多彩+{X:mult,C:white} X#1# {} Mult {X:mult,C:white} X#1# {}倍率+Negative 负片+{C:dark_edition}+#1#{} Joker slot 小丑牌槽位{C:dark_edition}+#1#+Gold Seal 金色蜡封+Earn {C:money}$3{} when this\ncard is played\nand scores 此牌打出并计分时\n获得{C:money}$3+Red Seal 红色蜡封+Retrigger this\ncard {C:attention}1{} time 重新触发此牌\n{C:attention}1{}次+Blue Seal 蓝色蜡封+Creates the {C:planet}Planet{} card\nfor final played {C:attention}poker hand{}\nof round if {C:attention}held{} in hand\n{C:inactive}(Must have room) 如果此牌在回合结束时\n{C:attention}留在{}手牌中,生成\n最后打出的{C:attention}牌型\n对应的{C:planet}星球牌\n{C:inactive}(必须有空位)+Purple Seal 紫色蜡封+Creates a {C:tarot}Tarot{} card\nwhen {C:attention}discarded\n{C:inactive}(Must have room) 此牌被{C:attention}弃掉{}时\n生成一张{C:tarot}塔罗牌\n{C:inactive}(必须有空位)+Arcana Pack 秘术包+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:tarot} Tarot{} cards to\nbe used immediately 从最多{C:attention}#2#{}张{C:tarot}塔罗牌\n中选择{C:attention}#1#{}张\n立即使用+Jumbo Arcana Pack 巨型秘术包+Mega Arcana Pack 超级秘术包+Celestial Pack 天体包+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:planet} Planet{} cards to\nbe used immediately 从最多{C:attention}#2#{}张{C:planet}星球牌\n中选择{C:attention}#1#{}张\n立即使用+Jumbo Celestial Pack 巨型天体包+Mega Celestial Pack 超级天体包+Standard Pack 标准包+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Playing{} cards to\nadd to your deck 从最多{C:attention}#2#{}张{C:attention}游戏牌\n中选择{C:attention}#1#{}张\n加入牌组+Jumbo Standard Pack 巨型标准包+Mega Standard Pack 超级标准包+Buffoon Pack 小丑包+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Joker{} cards 从最多{C:attention}#2#{}张{C:attention}小丑牌\n中选择{C:attention}#1#{}张+Jumbo Buffoon Pack 巨型小丑包+Mega Buffoon Pack 超级小丑包+Spectral Pack 幻灵包+Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:spectral} Spectral{} cards to\nbe used immediately 从最多{C:attention}#2#{}张{C:spectral}幻灵牌\n中选择{C:attention}#1#{}张\n立即使用+Jumbo Spectral Pack 巨型幻灵包+Mega Spectral Pack 超级幻灵包+Red Deck 红色牌组+{C:mult}+#1#{} discard\nevery round 每回合\n弃牌次数{C:mult}+#1#+Jack J+Queen Q+King K+Ace A+Spade 黑桃+Heart 红桃+Club 梅花+Diamond 方片+Spades 黑桃+Hearts 红桃+Clubs 梅花+Diamonds 方片+ Mult 倍率+Active! 已生效!+ remaining 次后生效+[poker hand] [牌型]+\020 Mult \020倍率+Common 普通+Uncommon 罕见+Rare 稀有+Legendary 传奇+%1 of %2 %2%1+\003Debuffed\020\nScores no chips\nand all abilities\nare disabled \003已削弱\020\n不计筹码\n且所有能力失效+\020 chips \020筹码+\020 extra chips \020额外筹码+compatible 可复制+incompatible 不可复制+Tarot 塔罗牌+Planet 星球牌+Spectral 幻灵牌+Voucher 优惠券+PLAY 开始+OPTIONS 选项+QUIT 退出+CREDITS 制作者+New Run 新游戏+Continue 继续+\003+1\020 discard\nevery round 每回合弃牌次数\003+1+Round 回合+Ante 底注+Money 资金+Best Hand 最佳出牌+White Stake 白注+Base Difficulty 基础难度+Wins \004 胜场 \004+\001 Best Ante \004 \001 最高底注 \004+\001 Best Hand \003 \001 最佳出牌 \003+Seed \004 种子 \004+CONTINUE 继续+Back 返回+\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004方向键\020 在牌、小丑牌和选项间移动\n\004OK\020 选择牌,或选中小丑牌/物品后\n 选择\006出售\020、\003使用\020、\005购买\020等\n\004EXE\020 \002出牌\020 \004DEL\020 \003弃牌\020\n\004shift\020 按点数或花色整理手牌\n\004alpha\020 + \004左/右\020 移动小丑牌或牌\n\004工具箱\020 牌局信息 \004var\020 查看牌组\n\004返回\020 返回/选项 \004主页\020 保存并退出\n按住\004OK\020或\004EXE\020可加快计分\n\n打出扑克牌型:得分 = \002筹码\020 x \003倍率\020\n在出牌次数用完前达到每个盲注的分数\n在商店里购买小丑牌\n击败第8底注的Boss盲注即可获胜!+How to play 玩法说明+Credits 制作者+Inspired by \004Balatro\020 by LocalThunk.\nNot affiliated with LocalThunk or Playstack.\n\nCard, Joker and interface art adapted\nfrom Balatro by LocalThunk.\nRules and card texts follow the game.\nFont: \004m6x11\020 by Daniel Linssen.\n\nMade by \004Mason Chen\020 as part of NumPlay.\n\nPlease support the original game! 灵感来自LocalThunk的\004Balatro\020。\n与LocalThunk及Playstack无关。\n\n卡牌、小丑牌和界面美术\n改编自LocalThunk的Balatro。\n规则和卡牌说明同原版。\n字体:Daniel Linssen的\004m6x11\020。\n\n由\004Mason Chen\020为NumPlay制作。\n\n请购买原版游戏!+Game Speed 游戏速度+How to Play 玩法说明+Main Menu 主菜单+Options 选项+Game Speed < 游戏速度 <+New run? 新游戏?+The current run will be lost. 当前对局将会丢失。+Yes 是+No 否+Poker Hands 牌型+Blinds 盲注+Vouchers 优惠券+lvl. 等级+Score at least 最低得分+Reward: 奖励:+No Vouchers redeemed yet 还没有兑换优惠券+left/right: tabs back: close 左/右:切换 返回:关闭+Remaining 剩余+Full Deck 完整牌组+Play Hand 出牌+Sort Hand 整理手牌+Rank 点数+Suit 花色+Discard 弃牌+SELL\n 出售\n+USE 使用+Select 选择+Defeated 已击败+Skipped 已跳过+Upcoming 即将到来+or 或+Skip Blind 跳过+Reroll Boss\n$10 重掷Boss\n$10+Cash Out: 兑现:+Remaining Hands ($1 each) 剩余出牌(每次$1)+Defeat the Boss Blind 击败Boss盲注+ interest per $5 ( /每$5利息(最多+ max) )+Next\nRound 下一回合+Reroll 重掷+ANTE 第+ VOUCHER 底注优惠券+REDEEM 兑换+OPEN 打开+BUY 购买+BUY\n& USE 购买并\n使用+Choose 选择+Skip 跳过+SELECT 选择+Better luck\nnext time! 下次好运!+Don't give up! 别放弃!+So close! 再试一次!+The house\nalways wins... 庄家\n总是会赢...+You did it! 你做到了!+Unbelievable! 难以置信!+A true\ncard shark! 真正的\n卡牌高手!+YOU WIN! 你赢了!+GAME OVER 游戏结束+Ante \004 底注 \004+\001 Round \004 \001 回合 \004+Most Played Hand 最常打出的牌型+Cards Played 打出的牌+Cards Discarded 弃掉的牌+Cards Purchased 购买的牌+Times Rerolled 重掷次数+Seed 种子+Endless\nMode 无限\n模式+New\nRun 新游戏+Main\nMenu 主菜单+Mult 倍率++3 Hand Size 手牌上限+3+Debuffed 已削弱+Again! 再来!+X2 Mult X2倍率++10 Mult +10倍率+X1.5 Mult X1.5倍率+Not Allowed! 不允许!++1 Tarot +1塔罗牌+Saved by Mr. Bones Mr. Bones保住了你++1 Planet +1星球牌+Nope! 不行!+Improve your run! 强化你的牌局!+to earn 奖励+Choose your\nnext Blind 选择你的\n下一个盲注+Round\nscore 回合\n得分+Run\nInfo 牌局\n信息+Hands 出牌+Discards 弃牌+Upgrade! 升级!+Reset 重置+Saved! 保住了!+Eaten! 吃掉了!+Extinct! 没了!+Safe! 安全!+Melted! 没了!+Drank! 用完了!++1 Spectral +1幻灵牌+Copied! 已复制!+Gold 黄金+Level Up! 升级!+Value Up! 价值提升!+Boss Disabled! Boss失效!+Duplicated! 已复制!++2 Mult +2倍率++3 Mult +3倍率++3 Hands +3次出牌++2 Jokers +2小丑牌++1 Stone +1石头牌+-X0.01 Mult -X0.01倍率+-1 Mult -1倍率+-4 Mult -4倍率++1 Mult +1倍率+Flush Five 同花五条+Flush House 同花葫芦+Five of a Kind 五条+Straight Flush 同花顺+Four of a Kind 四条+Full House 葫芦+Flush 同花+Straight 顺子+Three of a Kind 三条+Two Pair 两对+Pair 对子+High Card 高牌diff --git a/games/balatro/src/cons.c b/games/balatro/src/cons.cindex 42403885..3b860d96 100644--- a/games/balatro/src/cons.c+++ b/games/balatro/src/cons.c@@ -180,7 +180,7 @@ int use_cons_id(int id, int ed, int from) {case C_WHEEL_OF_FORTUNE: case C_ECTOPLASM: case C_HEX: {int pool[MAXJ], n = editionless_jokers(pool);if (id == C_WHEEL_OF_FORTUNE && !prob(4)) {- ev_message("Nope!");+ ev_message(T("Nope!"));break;}if (!n) break;@@ -308,12 +308,12 @@ int use_cons_id(int id, int ed, int from) {else if (R.jokers[i].id == J_FORTUNE_TELLER) {char *p = str_cat(t, "+");p = fmt_int(p, R.tarots_used);- str_cat(p, " Mult");+ str_cat(p, T(" Mult"));ev_popup(TG_JOKER, i, t, PC_MULT);} else {char *p = str_cat(t, "X");p = fmt_short(p, R.jokers[i].x);- str_cat(p, " Mult");+ str_cat(p, T(" Mult"));ev_popup(TG_JOKER, i, t, PC_MULT);}}diff --git a/games/balatro/src/data.c b/games/balatro/src/data.cindex 189c90d7..3632bfc8 100644--- a/games/balatro/src/data.c+++ b/games/balatro/src/data.c@@ -1,6 +1,9 @@/* Generated by tools/mkdata.py from Balatro's game data (LocalThunk): do not edit. */#include "data.h"+#include "../../common/np_text.h"+/* (NumPlay's language builds have their own texts: output/texts.c, from texts.h) */+#if !NP_TEXT_EXTRAconst uint8_t text_blob[11206] = {158,0,217,173,0,71,155,253,157,158,0,80,160,159,182,119,105,151,204,128,115,117,105,137,247,211,217,174,222,231,248,100,0,76,239,116,157,158,0,80,160,159,182,119,105,151,10,3,@@ -494,6 +497,7 @@ const char *text_get(int idx, int part) {}const uint16_t text_off[N_TEXTS] = {0,5,33,63,96,128,146,163,180,199,217,236,256,276,297,319,344,392,439,471,496,574,597,624,660,683,736,745,771,816,843,888,935,962,989,1038,1069,1097,1137,1181,1226,1259,1300,1345,1402,1439,1464,1503,1535,1579,1607,1665,1690,1726,1794,1837,1870,1917,1947,2008,2055,2094,2129,2172,2237,2282,2333,2382,2438,2502,2555,2590,2613,2658,2712,2772,2809,2844,2876,2924,2957,2999,3041,3086,3135,3195,3233,3248,3265,3311,3331,3393,3422,3453,3480,3531,3572,3594,3634,3682,3710,3750,3781,3832,3861,3923,3956,4017,4037,4068,4116,4141,4192,4260,4299,4342,4381,4430,4467,4503,4552,4608,4663,4697,4737,4764,4824,4863,4914,4953,4999,5016,5034,5054,5072,5091,5114,5163,5196,5249,5278,5333,5375,5418,5457,5492,5532,5568,5606,5638,5703,5758,5781,5829,5851,5891,5914,5934,5955,5974,6002,6070,6102,6126,6175,6225,6244,6263,6287,6311,6335,6368,6393,6428,6461,6494,6527,6562,6596,6629,6666,6700,6736,6769,6803,6854,6900,6957,6990,7042,7078,7111,7152,7188,7217,7254,7286,7326,7358,7392,7423,7457,7491,7522,7558,7610,7635,7663,7718,7743,7771,7812,7855,7895,7910,7950,7977,8021,8037,8072,8107,8163,8187,8232,8289,8315,8344,8384,8426,8466,8484,8539,8568,8606,8621,8651,8673,8716,8755,8805,8852,8889,8920,8942,8972,9000,9030,9062,9098,9140,9166,9206,9251,9273,9302,9341,9383,9411,9442,9452,9462,9485,9513,9539,9573,9601,9623,9641,9659,9688,9713,9732,9756,9776,9811,9849,9872,9895,9919,9936,9960,9979,10007,10028,10060,10090,10120,10152,10173,10182,10190,10214,10244,10273,10297,10325,10365,10376,10389,10402,10417,10445,10469,10531,10570,10610,10656,10700,10742,10790,10836,10874,10918,10960,10987,11020,11051,11094,11143,11190};+#endifconst joker_info_t joker_info[N_JOKER] = {{1, 2, 1}, /* Joker */{1, 5, 1}, /* Greedy Joker */@@ -679,4 +683,4 @@ const blind_info_t blind_info[N_BLIND] = {{8, 12, 10, 1, 0x8A71E1}, /* Violet Vessel */};const tag_info_t tag_info[N_TAG] = {{0},{0},{2},{0},{0},{0},{0},{0},{0},{2},{0},{2},{2},{2},{2},{2},{0},{0},{0},{0},{2},{0},{2},{0}};-const char *const hand_names[12] = {"Flush Five","Flush House","Five of a Kind","Straight Flush","Four of a Kind","Full House","Flush","Straight","Three of a Kind","Two Pair","Pair","High Card"};+const char *const hand_names[12] = {T("Flush Five"),T("Flush House"),T("Five of a Kind"),T("Straight Flush"),T("Four of a Kind"),T("Full House"),T("Flush"),T("Straight"),T("Three of a Kind"),T("Two Pair"),T("Pair"),T("High Card")};diff --git a/games/balatro/src/draw.c b/games/balatro/src/draw.cindex ca8fd0e4..899a0ff9 100644--- a/games/balatro/src/draw.c+++ b/games/balatro/src/draw.c@@ -27,6 +27,11 @@ void keycap(int x, int y, const char *label) {void button(int x, int y, int w, int h, C c, const char *label, int flags, int focused, int enabled) {if (!enabled) c = C_INACTIVE;if (focused) x += focus_shake;+#if NP_TEXT_EXTRA+ /* a translation wider than the button: the next size that fits */+ if ((flags & (T_LARGE | T_MED)) && g_textw(label, flags) > w - 4)+ flags = (flags & ~(T_LARGE | T_MED | T_COND)) | text_fit(label, w - 4, flags);+#endifif (focused) g_rrect(x - 2, y - 2, w + 4, h + 5, 5, C_WHITE);panel(x, y, w, h, 4, c, 2);g_text_box(label, x, y, w, h, flags | T_SHADOW, enabled ? C_WHITE : HEXC(0xBBBBBB));@@ -188,13 +193,13 @@ void draw_blind_chip(int b, int x, int y, int scale) {}/* ------------------------------------------------------------ descriptions */-static char vars[6][24];+static char vars[6][NP_TEXT_EXTRA ? 40 : 24];static void v_int(int k, long v) { fmt_int(vars[k], v); }static void v_num(int k, double v) { fmt_short(vars[k], v); }static void v_str(int k, const char *s) {int i = 0;- for (; s[i] && i < 23; i++) vars[k][i] = s[i];+ for (; s[i] && i < (int)sizeof vars[0] - 1; i++) vars[k][i] = s[i];vars[k][i] = 0;}static const char *hand_name(int h) { return hand_names[h]; }@@ -215,7 +220,7 @@ static void joker_vars(int id, const joker_t *j) {switch (id) {case J_JOKER: v_int(0, 4); break;case J_GREEDY_JOKER: case J_LUSTY_JOKER: case J_WRATHFUL_JOKER: case J_GLUTTENOUS_JOKER: {- static const char *const s[4] = {"Diamond", "Heart", "Spade", "Club"};+ static const char *const s[4] = {T("Diamond"), T("Heart"), T("Spade"), T("Club")};v_int(0, 3);v_str(1, s[id - J_GREEDY_JOKER]);break;@@ -247,10 +252,10 @@ static void joker_vars(int id, const joker_t *j) {v_int(0, 4), v_int(1, 5);int rem = j ? (5 - 1 - (R.hands_played - j->b)) % 6 : 5;if (rem < 0) rem += 6;- if (rem == 0) v_str(2, "Active!");+ if (rem == 0) v_str(2, T("Active!"));else {char *o = fmt_int(vars[2], rem);- str_cat(o, " remaining");+ str_cat(o, T(" remaining"));}break;}@@ -272,7 +277,7 @@ static void joker_vars(int id, const joker_t *j) {case J_SPACE: v_num(0, p), v_int(1, 4); break;case J_EGG: v_int(0, 3); break;case J_BURGLAR: v_int(0, 3); break;- case J_BLACKBOARD: v_int(0, 3), v_str(1, "Spades"), v_str(2, "Clubs"); break;+ case J_BLACKBOARD: v_int(0, 3), v_str(1, T("Spades")), v_str(2, T("Clubs")); break;case J_RUNNER: v_int(0, a), v_int(1, 15); break;case J_ICE_CREAM: v_int(0, j ? a : 100), v_int(1, 5); break;case J_BLUE_JOKER: v_int(0, 2), v_int(1, 2 * (R.phase == PH_ROUND ? R.ndeck : 52)); break;@@ -317,7 +322,7 @@ static void joker_vars(int id, const joker_t *j) {case J_LUCKY_CAT: v_num(0, 0.25), v_num(1, x); break;case J_BASEBALL: v_num(0, 1.5); break;case J_BULL: v_int(0, 2), v_int(1, 2 * (R.money > 0 ? R.money : 0)); break;- case J_DIET_COLA: v_str(0, "Double Tag"); break;+ case J_DIET_COLA: v_str(0, T("Double Tag")); break;case J_TRADING: v_int(0, 3); break;case J_FLASH: v_int(0, 2), v_int(1, a); break;case J_POPCORN: v_int(0, j ? a : 20), v_int(1, 4); break;@@ -390,8 +395,8 @@ static const uint8_t planet_hand[12] = {H_PAIR, H_THREE_KIND, H_FULL_HOUSE, H_FOstatic const uint8_t lchips5[12] = {10, 8, 7, 8, 6, 5, 3, 6, 4, 4, 3, 2}, lmult[12] = {3, 4, 3, 4, 3, 2, 2, 3, 2, 1, 1, 1};static void cons_vars(int id) {- static const char *const enh[] = {"Lucky Card", "Mult Card", "Bonus Card", "Wild Card", "Steel Card", "Glass Card",- "Gold Card", "Stone Card"};+ static const char *const enh[] = {T("Lucky Card"), T("Mult Card"), T("Bonus Card"), T("Wild Card"),+ T("Steel Card"), T("Glass Card"), T("Gold Card"), T("Stone Card")};switch (id) {case C_MAGICIAN: v_int(0, 2), v_str(1, enh[0]); break;case C_EMPRESS: v_int(0, 2), v_str(1, enh[1]); break;@@ -411,10 +416,10 @@ static void cons_vars(int id) {v_int(0, 50), v_int(1, m > 50 ? 50 : m);break;}- case C_STAR: v_int(0, 3), v_str(1, "Diamonds"); break;- case C_MOON: v_int(0, 3), v_str(1, "Clubs"); break;- case C_SUN: v_int(0, 3), v_str(1, "Hearts"); break;- case C_WORLD: v_int(0, 3), v_str(1, "Spades"); break;+ case C_STAR: v_int(0, 3), v_str(1, T("Diamonds")); break;+ case C_MOON: v_int(0, 3), v_str(1, T("Clubs")); break;+ case C_SUN: v_int(0, 3), v_str(1, T("Hearts")); break;+ case C_WORLD: v_int(0, 3), v_str(1, T("Spades")); break;case C_FAMILIAR: v_int(0, 3); break;case C_GRIM: v_int(0, 2); break;case C_INCANTATION: v_int(0, 4); break;@@ -445,7 +450,7 @@ static void other_vars(int kind, int id, const void *extra) {case TAG_JUGGLE: v_int(0, 3); break;case TAG_TOP_UP: v_int(0, 2); break;case TAG_SKIP: v_int(0, 5), v_int(1, (R.skips + 1) * 5); break;- case TAG_ORBITAL: v_str(0, orb >= 0 ? hand_name(orb) : "[poker hand]"), v_int(1, 3); break;+ case TAG_ORBITAL: v_str(0, orb >= 0 ? hand_name(orb) : T("[poker hand]")), v_int(1, 3); break;case TAG_ECONOMY: v_int(0, 40); break;}} else if (kind == TK_BLIND) {@@ -498,7 +503,7 @@ void desc_text(char *out, int maxlen, int kind, int id, const void *extra) {/* the game shows a random number flickering here */char *o = str_cat(out, TC_MULT "+");o = fmt_int(o, (long)((g_time / 90) * 7 % 24));- str_cat(o, TC_RESET " Mult");+ str_cat(o, T("\020 Mult"));return;}if (kind == TK_BLIND && id == BL_WHEEL) {@@ -516,7 +521,7 @@ void desc_text(char *out, int maxlen, int kind, int id, const void *extra) {}/* ------------------------------------------------------------ info box */-static const char *const rarity_name[5] = {"", "Common", "Uncommon", "Rare", "Legendary"};+static const char *const rarity_name[5] = {"", T("Common"), T("Uncommon"), T("Rare"), T("Legendary")};static const C rarity_col[5] = {0, HEXC(0x009DFF), HEXC(0x4BC292), HEXC(0xFE5F55), HEXC(0xB26CBB)};/* the coloured pill under an info box (rarity, set, edition) */@@ -529,37 +534,46 @@ static void badge(int cx, int y, const char *label, C col, int w) {/* box: name, description on white, badges. Anchor: the item's rectangle* (x, y top, w width). The box goes below it, or above when there is no room. */void draw_tooltip_for(int kind, int id, int ed, const void *extra, int ax, int ay, int aw) {- static char d[200], d2[120];+ static char d[NP_TEXT_EXTRA ? 320 : 200], d2[NP_TEXT_EXTRA ? 200 : 120];const char *name = tname(kind, id);- char namebuf[40];+ char namebuf[NP_TEXT_EXTRA ? 64 : 40];d[0] = 0, d2[0] = 0;if (kind == TK_CARD) {/* playing card: "+11 chips" and its enhancement / seal */const vcard_t *c = (const vcard_t *)extra;char *o = namebuf;- if (c->enh == E_STONE) o = str_cat(o, "Stone Card");+ if (c->enh == E_STONE) o = str_cat(o, T("Stone Card"));+#if NP_TEXT_EXTRA+ else /* "Ace of Spades", in the translation's order: %1 the rank, %2 the suit */+ for (const char *p = T("%1 of %2"); *p; p++)+ if (p[0] == '%' && (p[1] == '1' || p[1] == '2'))+ o = str_cat(o, *++p == '1' ? rank_names[c->rank] : suit_names_plural[c->suit & 3]);+ else+ *o++ = *p, *o = 0;+#elseelse {o = str_cat(o, rank_names[c->rank]);o = str_cat(o, " of ");o = str_cat(o, suit_names_plural[c->suit & 3]);}+#endifname = namebuf;o = d;- if (c->flags & CF_DEBUFF) o = str_cat(o, TC_MULT "Debuffed" TC_RESET "\nScores no chips\nand all abilities\nare disabled");+ if (c->flags & CF_DEBUFF) o = str_cat(o, T("\003Debuffed\020\nScores no chips\nand all abilities\nare disabled"));else {if (c->enh != E_STONE) {o = str_cat(o, TC_CHIPS "+");o = fmt_int(o, card_chip_nominal(c->rank));- o = str_cat(o, TC_RESET " chips");+ o = str_cat(o, T("\020 chips"));}int extra_chips = c->perma + (c->enh == E_BONUS ? 30 : 0);if (extra_chips) {o = str_cat(o, d[0] ? "\n" TC_CHIPS "+" : TC_CHIPS "+");o = fmt_int(o, extra_chips);- o = str_cat(o, TC_RESET " extra chips");+ o = str_cat(o, T("\020 extra chips"));}if (c->enh && c->enh != E_BONUS) {- char t[120];+ char t[NP_TEXT_EXTRA ? 200 : 120];desc_text(t, sizeof t, TK_ENH, c->enh, 0);if (d[0]) o = str_cat(o, "\n");o = str_cat(o, t);@@ -590,23 +604,23 @@ void draw_tooltip_for(int kind, int id, int ed, const void *extra, int ax, int aif (me >= 0 && me < R.njokers) {int t = id == J_BRAINSTORM ? 0 : me + 1;int ok = t < R.njokers && t != me && joker_info[R.jokers[t].id].bp;- bl[nb] = ok ? "compatible" : "incompatible", bc[nb++] = ok ? C_GREEN : C_RED;+ bl[nb] = ok ? T("compatible") : T("incompatible"), bc[nb++] = ok ? C_GREEN : C_RED;}}if (kind == TK_JOKER) bl[nb] = rarity_name[joker_info[id].rarity], bc[nb++] = rarity_col[joker_info[id].rarity];if (kind == TK_CONS) {int set = id <= C_WORLD ? 0 : id <= C_ERIS ? 1 : 2;- bl[nb] = set == 0 ? "Tarot" : set == 1 ? "Planet" : "Spectral";+ bl[nb] = set == 0 ? T("Tarot") : set == 1 ? T("Planet") : T("Spectral");bc[nb++] = set == 0 ? C_TAROT : set == 1 ? C_PLANET : C_SPECTRAL;}- if (kind == TK_VOUCHER) bl[nb] = "Voucher", bc[nb++] = HEXC(0xFD682B);+ if (kind == TK_VOUCHER) bl[nb] = T("Voucher"), bc[nb++] = HEXC(0xFD682B);if (ed && nb < 3) bl[nb] = tname(TK_EDITION, ed), bc[nb++] = ed == ED_NEG ? HEXC(0x2A2A2A) : C_EDITION;int bw = 0;for (int i = 0; i < nb; i++)if (g_textw(bl[i], F_LABEL) + 14 > bw) bw = g_textw(bl[i], F_LABEL) + 14;if (bw < 48) bw = 48;/* heights: frame 3, name 15, white boxes (lines x 10 + 5), badges 13 each */- int boxh = lines ? lines * 10 + 5 : 0, boxh2 = lines2 ? lines2 * 10 + 5 : 0;+ int boxh = lines ? lines * LINE_H + 5 : 0, boxh2 = lines2 ? lines2 * LINE_H + 5 : 0;int h = 3 + 15 + boxh + (lines2 ? boxh2 + 3 : 0) + (nb ? 3 + nb * (BADGE_H + 2) : 0) + 3;int x = ax + aw / 2 - w / 2;if (x < SIDE_W + 1) x = SIDE_W + 1;@@ -643,6 +657,54 @@ void draw_tooltip_for(int kind, int id, int ed, const void *extra, int ax, int afor (int i = 0; i < nb; i++, yy += BADGE_H + 2) badge(x + w / 2, yy, bl[i], bc[i], bw);}+#if NP_TEXT_EXTRA+/* the length of the Chinese letter at s, or 0 */+static int wide_at(const char *s) {+ if ((unsigned char)*s < 0xC0) return 0;+ const char *q = s;+ return np_utf8(&q) >= 0x2E80 ? (int)(q - s) : 0;+}++/* re-flows a text to a width (colour codes kept, lines joined); a line may also break after a+ Chinese letter, and a Chinese letter joins the next one without a space */+void wrap_text(char *out, int maxlen, const char *in, int width, int flags) {+ char word[48];+ int n = 0, line_w = 0, space_w = g_textw(" x", flags) - g_textw("x", flags), prev_wide = 0;+ const char *p = in;+ while (*p && n < maxlen - 1) {+ int gap = 0, nl = 0;+ for (; *p == ' ' || *p == '\n'; p++) gap |= *p == ' ', nl = 1;+ if (!*p) break;+ int k = 0, wide = wide_at(p);+ if (wide) {+ while (k < wide) word[k++] = *p++;+ } else+ while (*p && *p != ' ' && *p != '\n' && !wide_at(p)) {+ int len = 1;+ if ((unsigned char)*p >= 0xC0) {+ const char *q = p;+ np_utf8(&q);+ len = (int)(q - p);+ }+ if (k + len > 47) break;+ while (len--) word[k++] = *p++;+ }+ word[k] = 0;+ int ww = g_textw(word, flags), space = line_w > 0 && (gap || (nl && !wide && !prev_wide));+ if (line_w > 0 && line_w + (space ? space_w : 0) + ww > width) {+ out[n++] = '\n';+ line_w = 0;+ } else if (space) {+ out[n++] = ' ';+ line_w += space_w;+ }+ for (int i = 0; i < k && n < maxlen - 1; i++) out[n++] = word[i];+ line_w += ww;+ prev_wide = wide;+ }+ out[n] = 0;+}+#else/* re-flows a text to a width (colour codes kept, lines joined) */void wrap_text(char *out, int maxlen, const char *in, int width, int flags) {char word[48];@@ -667,3 +729,4 @@ void wrap_text(char *out, int maxlen, const char *in, int width, int flags) {}out[n] = 0;}+#endifdiff --git a/games/balatro/src/ev.c b/games/balatro/src/ev.cindex cec7880a..0d218c66 100644--- a/games/balatro/src/ev.c+++ b/games/balatro/src/ev.c@@ -42,10 +42,17 @@ void ev_setd(ev_t *e, double v) { memcpy(e->p.w, &v, sizeof v); }static void copy(ev_t *e, const char *s) {int i = 0;while (s && s[i]) i++;+#if NP_TEXT_EXTRA+ static const char suf[] = T(" Mult");+ const int ls = sizeof suf - 1;+ if (i > 11 && i - ls <= 11 && !memcmp(s + i - ls, suf, ls)) {+#else+ const int ls = 5;if (i > 11 && i - 5 <= 11 && s[i - 5] == ' ' && s[i - 4] == 'M' && s[i - 1] == 't') {+#endif/* a number and " Mult" (built in a buffer): keep the number, flag the suffix */int k;- for (k = 0; k < i - 5; k++) e->txt[k] = s[k];+ for (k = 0; k < i - ls; k++) e->txt[k] = s[k];e->txt[k] = 0;e->c |= 1;return;diff --git a/games/balatro/src/game.c b/games/balatro/src/game.cindex cd29b36a..a8dc4d02 100644--- a/games/balatro/src/game.c+++ b/games/balatro/src/game.c@@ -9,9 +9,9 @@run_t R;-const char *const rank_names[15] = {"", "", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace"};-const char *const suit_names[4] = {"Spade", "Heart", "Club", "Diamond"};-const char *const suit_names_plural[4] = {"Spades", "Hearts", "Clubs", "Diamonds"};+const char *const rank_names[15] = {"", "", "2", "3", "4", "5", "6", "7", "8", "9", "10", T("Jack"), T("Queen"), T("King"), T("Ace")};+const char *const suit_names[4] = {T("Spade"), T("Heart"), T("Club"), T("Diamond")};+const char *const suit_names_plural[4] = {T("Spades"), T("Hearts"), T("Clubs"), T("Diamonds")};/* ------------------------------------------------------------------ rng */static uint32_t rotl(uint32_t x, int k) { return (x << k) | (x >> (32 - k)); }@@ -512,7 +512,7 @@ static void add_tag_orb(int t, int orb) {R.tag_orbital[R.ntags++] = (int8_t)orb;}for (int i = 0; i < copies; i++) {- ev_popup(TG_CENTER, 0, "Double Tag", PC_ATTN);+ ev_popup(TG_CENTER, 0, T("Double Tag"), PC_ATTN);add_tag_orb(t, orb);}}diff --git a/games/balatro/src/game.h b/games/balatro/src/game.hindex 0ac8d656..1fbb41f6 100644--- a/games/balatro/src/game.h+++ b/games/balatro/src/game.h@@ -5,6 +5,7 @@#ifndef GAME_H#define GAME_H#include <stdint.h>+#include "../../common/np_text.h" /* T(): the texts players read */#include "data.h"#define MAXCARDS 160diff --git a/games/balatro/src/gfx.c b/games/balatro/src/gfx.cindex ef03f84d..bbcf9579 100644--- a/games/balatro/src/gfx.c+++ b/games/balatro/src/gfx.c@@ -31,7 +31,7 @@ typedef struct {} item_t;static item_t items[MAXI];-static char strbuf[4096]; /* texts are copied: callers reuse their buffers */+static char strbuf[NP_TEXT_EXTRA ? 6144 : 4096]; /* texts are copied: callers reuse their buffers */static int strpos;static int nitems;static int16_t clips[MAXCLIP][4];@@ -192,7 +192,7 @@ static const uint8_t *font_bits(int f) {}static int glyph_rows(int f) { return (f & T_LARGE) ? FONT_LARGE_H : (f & T_MED) ? FONT_MED_H : FONT_SMALL_H; }int g_cap(int f) { return ((f & T_LARGE) ? 11 : (f & T_MED) ? 9 : 7) * ((f & T_X2) ? 2 : 1); }-int g_pitch(int f) { return ((f & T_LARGE) ? 15 : (f & T_MED) ? 13 : 10) * ((f & T_X2) ? 2 : 1); }+int g_pitch(int f) { return ((f & T_LARGE) ? 15 : (f & T_MED) ? 13 : LINE_H) * ((f & T_X2) ? 2 : 1); }/* the glyph of a character (condensed digits for long numbers) */static const glyph_t *glyph(int f, unsigned ch, const uint8_t **bits) {@@ -228,6 +228,102 @@ static int advance(int f, unsigned ch, const glyph_t *g) {return a;}+#if NP_TEXT_EXTRA+/* ---- letters beyond ASCII, in NumPlay's language builds (games/common/np_text.h): an accented+ letter is the font's plain letter with its accent (a cedilla under it), Chinese comes from the+ 12-pixel font, its letters' middle on the capitals' */++/* the letter at *s (a UTF-8 lead byte), *s left at its last byte: its code point; *base its plain+ letter and *second one after it (ligatures), or *base 0 when the 12-pixel font has it */+static uint32_t xletter(const char **s, char *base, char *second, int *acc) {+ const char *q = *s;+ uint32_t cp = np_utf8(&q);+ *s = q - 1;+ *acc = np_latin(cp, base, second);+ if (!*base && !np_xglyph(cp)) *base = '?';+ return cp;+}++static int xadvance(int f, const char **s) {+ char base, second;+ int acc;+ uint32_t cp = xletter(s, &base, &second, &acc);+ if (!base) return np_xadvance(cp, 1);+ const uint8_t *bits;+ int a = advance(f, (unsigned char)base, glyph(f, (unsigned char)base, &bits));+ if (second) a += advance(f, (unsigned char)second, glyph(f, (unsigned char)second, &bits));+ return a;+}++/* pixels of those letters, into the strip: the text's colour or its shadow; turned a quarter left+ for T_ROT (x along the text from the pen, y down from the top of the glyphs) */+typedef struct {+ int y0, ra, rb, cx0, cx1, shadow, rot, ox, oy;+ C col;+} xplot_t;+static void xplot(int x, int y, void *ctx) {+ xplot_t *p = ctx;+ if (p->rot) {+ int t = x;+ x = p->ox + y, y = p->oy - 1 - t;+ }+ if (y < p->ra || y >= p->rb || x < p->cx0 || x >= p->cx1) return;+ C *d = strip + (y - p->y0) * 320 + x;+ *d = p->shadow ? shade565(*d, 12) : p->col;+}++/* a glyph of the font, its shadow first; rows above skip left out (an i's dot under an accent) */+static void xglyph(int f, unsigned ch, int x, int y, int skip, xplot_t *p) {+ int sc = (f & T_X2) ? 2 : 1, gh = glyph_rows(f);+ const uint8_t *b;+ const glyph_t *g = glyph(f, ch, &b);+ int dc = drop_col(f, ch, g);+ for (int pass = (f & (T_SHADOW | T_OUTLINE)) ? 0 : 1; pass < 2; pass++) {+ uint32_t bit = g->off;+ p->shadow = !pass;+ for (int gx = 0; gx < g->w; gx++)+ for (int gy = 0; gy < gh; gy++, bit++) {+ if (gx == dc || gy < skip || !((b[bit >> 3] >> (bit & 7)) & 1)) continue;+ int px = x + (gx - (dc >= 0 && gx > dc)) * sc, py = y + gy * sc + (pass ? 0 : sc);+ for (int k = 0; k < sc * sc; k++) xplot(px + k % sc, py + k / sc, p);+ }+ }+ p->shadow = 0;+}++/* draws the letter at *s (see xletter), the top of its capitals at y; returns its advance */+static int xdraw(int f, const char **s, int x, int y, C col, xplot_t *p) {+ char base, second;+ int acc, sc = (f & T_X2) ? 2 : 1;+ uint32_t cp = xletter(s, &base, &second, &acc);+ p->col = col;+ if (!base) {+ int top = y - ((f & T_LARGE) ? 0 : (f & T_MED) ? 1 : 2) * sc;+ if (f & (T_SHADOW | T_OUTLINE)) {+ p->shadow = 1;+ np_xdraw(cp, x, top + sc, sc, xplot, p);+ p->shadow = 0;+ }+ return np_xdraw(cp, x, top, sc, xplot, p);+ }+ unsigned ch = (unsigned char)base;+ const uint8_t *bits;+ const glyph_t *g = glyph(f, ch, &bits);+ int xh = (f & T_LARGE) ? 3 : 2; /* where lowercase letters start */+ xglyph(f, ch, x, y, acc && (ch == 'i' || ch == 'j') ? xh : 0, p);+ if (acc) {+ int ay = acc == NP_ACC_CEDIL ? y + g_cap(f) : ch >= 'a' && ch <= 'z' ? y + (xh - 2) * sc : y - 2 * sc;+ np_accent(acc, x + (g->w - 5) / 2 * sc, ay, sc, xplot, p);+ }+ int a = advance(f, ch, g) * sc;+ if (second) {+ xglyph(f, (unsigned char)second, x + a, y, 0, p);+ a += advance(f, (unsigned char)second, glyph(f, (unsigned char)second, &bits)) * sc;+ }+ return a;+}+#endif+/* width of the text, or of its first line only */static int textw(const char *s, int f, int one_line) {int w = 0, best = 0, badge = 0;@@ -246,6 +342,12 @@ static int textw(const char *s, int f, int one_line) {else if (badge && ch != 14) w += 2, badge = 0;continue;}+#if NP_TEXT_EXTRA+ if (ch >= 0xC0) {+ w += xadvance(f, &s);+ continue;+ }+#endifif (ch > (f & (T_LARGE | T_MED) ? 126 : 130)) ch = '?';w += advance(f, ch, glyph(f, ch, &bits));}@@ -285,7 +387,8 @@ void g_text(const char *s, int x, int y, int f, C c) {int n = 0;while (s[n]) n++;if (strpos + n + 1 > (int)sizeof strbuf) return;- item_t *it = add(I_TEXT, x - 2, y - 2, w + 4, h + 2);+ /* (two rows more above in a language build, for accents over capitals) */+ item_t *it = add(I_TEXT, x - 2, y - 2 - XROWS, w + 4, h + 2 + XROWS);if (!it) return;char *d = strbuf + strpos;for (int i = 0; i <= n; i++) d[i] = s[i];@@ -302,8 +405,18 @@ void g_text_box(const char *s, int x, int y, int w, int h, int f, C c) {static void draw_text_rot(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {int f = it->b, gh = glyph_rows(f);int x = it->x + 2, pen = it->y + it->h - 2; /* bottom */+#if NP_TEXT_EXTRA+ xplot_t xp = {y0, ra, rb, cx0, cx1, 0, 1, x, 0, it->a};+#endiffor (const char *s = it->s; *s; s++) {unsigned char ch = (unsigned char)*s;+#if NP_TEXT_EXTRA+ if (ch >= 0xC0) {+ xp.oy = pen;+ pen -= xdraw(f, &s, 0, 0, it->a, &xp);+ continue;+ }+#endifif (ch < 32 || ch > 126) continue;const uint8_t *b;const glyph_t *g = glyph(f, ch, &b);@@ -331,8 +444,11 @@ PROF_NOINLINE static void draw_text(item_t *it, int y0, int ra, int rb, int cx0,return;}int sc = (f & T_X2) ? 2 : 1, gh = glyph_rows(f), cap = g_cap(f) / sc, pitch = g_pitch(f);- int x0 = it->x + 2, x = x0, y = it->y + 2;+ int x0 = it->x + 2, x = x0, y = it->y + 2 + XROWS;int multi = 0;+#if NP_TEXT_EXTRA+ xplot_t xp = {y0, ra, y1, cx0, cx1, 0, 0, 0, 0, 0};+#endiffor (const char *p = it->s; *p; p++) multi |= *p == '\n';C col = it->a, base = it->a;int badge = 0;@@ -362,7 +478,15 @@ PROF_NOINLINE static void draw_text(item_t *it, int y0, int ra, int rb, int cx0,const char *e = s + 1;int bw = 0;const uint8_t *bb;- while (*e && (unsigned char)*e >= 32) bw += advance(f, (unsigned char)*e, glyph(f, (unsigned char)*e, &bb)), e++;+ while (*e && (unsigned char)*e >= 32) {+#if NP_TEXT_EXTRA+ if ((unsigned char)*e >= 0xC0) {+ bw += xadvance(f, &e), e++;+ continue;+ }+#endif+ bw += advance(f, (unsigned char)*e, glyph(f, (unsigned char)*e, &bb)), e++;+ }bw = bw * sc + 3;int by0 = y - 2, by1 = y + cap * sc + 2;for (int yy = by0 > ra ? by0 : ra; yy < by1 && yy < y1; yy++) {@@ -377,6 +501,12 @@ PROF_NOINLINE static void draw_text(item_t *it, int y0, int ra, int rb, int cx0,} else if (code_col[ch]) col = code_col[ch];continue;}+#if NP_TEXT_EXTRA+ if (ch >= 0xC0) {+ x += xdraw(f, &s, x, y, col, &xp);+ continue;+ }+#endifif (ch > (f & (T_LARGE | T_MED) ? 126 : 130)) ch = '?';const uint8_t *b;const glyph_t *g = glyph(f, ch, &b);diff --git a/games/balatro/src/gfx.h b/games/balatro/src/gfx.hindex 105d69d5..30781f6a 100644--- a/games/balatro/src/gfx.h+++ b/games/balatro/src/gfx.h@@ -1,6 +1,7 @@#ifndef GFX_H#define GFX_H#include <stdint.h>+#include "../../common/np_text.h"typedef uint16_t C;#define RGB(r, g, b) ((C)((((r) & 0xF8) << 8) | (((g) & 0xFC) << 3) | ((b) >> 3)))@@ -23,6 +24,11 @@ enum {T_COND = 256, /* condensed: large digits, or the whole medium size, one pixel narrower */T_ROT = 512 /* turned a quarter left, reading upwards; (x, y) is the bottom left */};+/* NumPlay's language builds: XROWS rows more above a text, for accents over capitals; in the+ Chinese one (a translated text tells), taller lines for its 12-pixel letters */+#define XROWS (NP_TEXT_EXTRA ? 2 : 0)+#define TXT_CJK (NP_TEXT_EXTRA && (unsigned char)T("Mult")[0] >= 0xE0)+#define LINE_H (TXT_CJK ? 12 : 10) /* lines of the small size *//* inline colour codes in strings */#define TC_WHITE "\x01"#define TC_CHIPS "\x02"diff --git a/games/balatro/src/jokers.c b/games/balatro/src/jokers.cindex 37e59706..7c2dd83d 100644--- a/games/balatro/src/jokers.c+++ b/games/balatro/src/jokers.c@@ -8,11 +8,11 @@#define NOT_BP (!cx->blueprint)#define HAS(h) (cx->hi && (cx->hi->contains >> (h) & 1))-static const char K_UPGRADE[] = "Upgrade!", K_AGAIN[] = "Again!", K_RESET[] = "Reset", K_SAVED[] = "Saved!",- K_EATEN[] = "Eaten!", K_EXTINCT[] = "Extinct!", K_SAFE[] = "Safe!", K_MELTED[] = "Melted!",- K_DRANK[] = "Drank!", K_PLUS_TAROT[] = "+1 Tarot", K_PLUS_SPECTRAL[] = "+1 Spectral",- K_COPIED[] = "Copied!", K_GOLD[] = "Gold", K_LEVELUP[] = "Level Up!", K_VALUP[] = "Value Up!",- K_DEBUFFED[] = "Debuffed", K_ACTIVE[] = "Active!";+static const char K_UPGRADE[] = T("Upgrade!"), K_AGAIN[] = T("Again!"), K_RESET[] = T("Reset"), K_SAVED[] = T("Saved!"),+ K_EATEN[] = T("Eaten!"), K_EXTINCT[] = T("Extinct!"), K_SAFE[] = T("Safe!"), K_MELTED[] = T("Melted!"),+ K_DRANK[] = T("Drank!"), K_PLUS_TAROT[] = T("+1 Tarot"), K_PLUS_SPECTRAL[] = T("+1 Spectral"),+ K_COPIED[] = T("Copied!"), K_GOLD[] = T("Gold"), K_LEVELUP[] = T("Level Up!"), K_VALUP[] = T("Value Up!"),+ K_DEBUFFED[] = T("Debuffed"), K_ACTIVE[] = T("Active!");void joker_init(joker_t *j) {j->a = j->b = 0;@@ -156,7 +156,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {case CX_SELLING_SELF:if (id == J_LUCHADOR && R.phase == PH_ROUND && !R.blind_disabled && R.blind >= BL_OX) {R.blind_disabled = 2; /* a request: the caller disables the blind */- return msg(e, "Boss Disabled!", PC_ATTN);+ return msg(e, T("Boss Disabled!"), PC_ATTN);}if (id == J_DIET_COLA) {add_tag(TAG_DOUBLE);@@ -177,7 +177,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {joker_on_added(&R.jokers[R.njokers - 1]);ev_t *v = ev_push(EV_JOKER_ADD);if (v) v->a = copy.uid, v->b = copy.id, v->c = copy.ed, v->d = (int16_t)(R.njokers - 1);- ev_popup(TG_JOKER, R.njokers - 1, "Duplicated!", PC_ATTN);+ ev_popup(TG_JOKER, R.njokers - 1, T("Duplicated!"), PC_ATTN);}}}@@ -191,7 +191,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {case CX_REROLL:if (id == J_FLASH && NOT_BP) {j->a += 2;- return msg(e, "+2 Mult", PC_MULT); /* a_mult with the new total in the game: show the gain */+ return msg(e, T("+2 Mult"), PC_MULT); /* a_mult with the new total in the game: show the gain */}return 0;case CX_ENDING_SHOP:@@ -204,7 +204,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {R.cons[R.ncons++] = c;ev_t *v = ev_push(EV_CONS_ADD);if (v) v->a = c.uid, v->b = c.id, v->c = c.ed;- return msg(e, "Duplicated!", PC_ATTN);+ return msg(e, T("Duplicated!"), PC_ATTN);}}return 0;@@ -229,7 +229,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {case CX_SKIPPING_BOOSTER:if (id == J_RED_CARD && NOT_BP) {j->a += 3;- return msg(e, "+3 Mult", PC_MULT);+ return msg(e, T("+3 Mult"), PC_MULT);}return 0;case CX_CARDS_ADDED:@@ -257,7 +257,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {if (id == J_CHICOT && NOT_BP && cx->boss) {if (!R.blind_disabled) {R.blind_disabled = 2; /* disable request */- return msg(e, "Boss Disabled!", PC_ATTN);+ return msg(e, T("Boss Disabled!"), PC_ATTN);}return 0;}@@ -266,7 +266,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {int n = 0, pick[MAXJ];for (int i = 0; i < R.njokers; i++)if (i != ji && !(R.jokers[i].flags & JF_SLICED)) pick[n++] = i;- msg(e, "X1.5 Mult", PC_MULT);+ msg(e, T("X1.5 Mult"), PC_MULT);{/* show the new total like the game: "X<new> Mult" */static char t[16];@@ -277,7 +277,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {if (w >= 10) *p++ = (char)('0' + w / 10 % 10);*p++ = (char)('0' + w % 10);if (f) *p++ = '.', *p++ = (char)('0' + f);- const char *s = " Mult";+ const char *s = T(" Mult");while (*s) *p++ = *s++;*p = 0;e->msg = t;@@ -288,13 +288,13 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {if (id == J_BURGLAR) {R.discards_left = 0;R.hands_left += 3;- return msg(e, "+3 Hands", PC_CHIPS);+ return msg(e, T("+3 Hands"), PC_CHIPS);}if (id == J_RIFF_RAFF && R.njokers < joker_slots()) {int k = joker_slots() - R.njokers;if (k > 2) k = 2;for (int i = 0; i < k; i++) joker_add(create_joker_id(1, 0), -1, 0);- return msg(e, "+2 Jokers", PC_CHIPS);+ return msg(e, T("+2 Jokers"), PC_CHIPS);}if (id == J_CARTOMANCER && cons_room()) {give_cons(0);@@ -313,7 +313,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {int nd = 0;do d[nd++] = (char)('0' + m % 10); while (m /= 10);while (nd) *p++ = d[--nd];- const char *s = " Mult";+ const char *s = T(" Mult");while (*s) *p++ = *s++;*p = 0;return msg(e, t, PC_MULT);@@ -330,7 +330,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {eff_t e2 = {0};jcalc(i, &c2, &e2);}- return msg(e, "+1 Stone", PC_CHIPS);+ return msg(e, T("+1 Stone"), PC_CHIPS);}return 0;case CX_DESTROYING_CARD:@@ -388,7 +388,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {return msg(e, K_EATEN, PC_ATTN);}j->x -= 0.01f;- return msg(e, "-X0.01 Mult", PC_MULT);+ return msg(e, T("-X0.01 Mult"), PC_MULT);}if (id == J_YORICK && NOT_BP) {if (j->b <= 1) {@@ -420,7 +420,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {if (id == J_GREEN_JOKER && NOT_BP && last) {int prev = j->a;j->a = j->a - 1 < 0 ? 0 : j->a - 1;- if (j->a != prev) return msg(e, "-1 Mult", PC_MULT);+ if (j->a != prev) return msg(e, T("-1 Mult"), PC_MULT);return 0;}if (id == J_FACELESS && last) {@@ -457,7 +457,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {return msg(e, K_EATEN, PC_ATTN);}j->a -= 1;- return msg(e, "-1 Hand Size", PC_ATTN);+ return msg(e, T("-1 Hand Size"), PC_ATTN);}if (id == J_INVISIBLE) {j->a++;@@ -474,7 +474,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {return msg(e, K_EATEN, PC_ATTN);}j->a -= 4;- return msg(e, "-4 Mult", PC_MULT);+ return msg(e, T("-4 Mult"), PC_MULT);}if (id == J_TODO_LIST) {int n = 0, pick[NHANDS];@@ -746,7 +746,7 @@ int jcalc(int ji, cx_t *cx, eff_t *e) {}if (id == J_GREEN_JOKER && NOT_BP) {j->a += 1;- return msg(e, "+1 Mult", PC_MULT);+ return msg(e, T("+1 Mult"), PC_MULT);}return 0;case CX_AFTER:diff --git a/games/balatro/src/main.c b/games/balatro/src/main.cindex 223c6347..cbb5ed95 100644--- a/games/balatro/src/main.c+++ b/games/balatro/src/main.c@@ -131,7 +131,7 @@ static void draw_title(void) {g_sprite(SPR_F + 3 * 13 + 12, cx, cy, 0, LOGO_CARD);/* buttons, like the main menu (they make way for an open panel) */if (overlay) return;- static const char *const lbl[4] = {"PLAY", "OPTIONS", "QUIT", "CREDITS"};+ static const char *const lbl[4] = {T("PLAY"), T("OPTIONS"), T("QUIT"), T("CREDITS")};static const C col[4] = {C_BLUE, C_ORANGE, C_RED, C_GREEN};g_rrect(20, 195, 280, 42, 7, HEXC(0x1A2224));g_rrect(21, 196, 278, 40, 6, HEXC(0x3A5055));@@ -169,8 +169,8 @@ static void setup_row(int y, int h, int bh) {static void draw_setup(void) {big_panel(30, 10, 260, 214);int ntabs = has_save ? 2 : 1;- tab_button(ntabs == 1 ? 128 : 94, 20, 64, "New Run", ov_tab == 0);- if (ntabs == 2) tab_button(162, 20, 64, "Continue", ov_tab == 1);+ tab_button(ntabs == 1 ? 128 : 94, 20, 64, T("New Run"), ov_tab == 0);+ if (ntabs == 2) tab_button(162, 20, 64, T("Continue"), ov_tab == 1);char t[64];/* the deck: name, then its text or the run's numbers on white */int bh = ov_tab == 0 ? 25 : 45;@@ -178,11 +178,11 @@ static void draw_setup(void) {g_sprite(SPR_E, 69, 53, FX_SHADOW, 256);g_sprite(SPR_E, 67, 51, 0, 256);int wy = 42 + 68 - 4 - bh; /* the white box */- g_text_box("Red Deck", 106, 45, 148, wy - 45, F_NAME, C_WHITE);+ g_text_box(T("Red Deck"), 106, 45, 148, wy - 45, F_NAME, C_WHITE);if (ov_tab == 0)- g_text_box(TC_MULT "+1" TC_RESET " discard\nevery round", 109, wy, 142, bh, F_TEXT, C_TEXT_DARK);+ g_text_box(T("\003+1\020 discard\nevery round"), 109, wy, 142, bh, F_TEXT, C_TEXT_DARK);else {- static const char *const lab[4] = {"Round", "Ante", "Money", "Best Hand"};+ static const char *const lab[4] = {T("Round"), T("Ante"), T("Money"), T("Best Hand")};for (int i = 0; i < 4; i++) {int yy = wy + 3 + i * 10;g_text(lab[i], 170, yy, F_TEXT | T_RIGHT, C_TEXT_DARK);@@ -198,66 +198,46 @@ static void draw_setup(void) {/* the stake */setup_row(115, 38, 19);g_sprite(SPR_STAKE, 76, 126, 0, 256);- g_text_box("White Stake", 106, 117, 148, 13, F_NAME, C_WHITE);- g_text_box("Base Difficulty", 109, 130, 142, 19, F_TEXT, C_TEXT_DARK);+ g_text_box(T("White Stake"), 106, 117, 148, 13, F_NAME, C_WHITE);+ g_text_box(T("Base Difficulty"), 109, 130, 142, 19, F_TEXT, C_TEXT_DARK);if (ov_tab == 0) {- char *o = str_cat(t, "Wins " TC_ATTN);+ char *o = str_cat(t, T("Wins \004"));o = fmt_int(o, S.wins);- o = str_cat(o, TC_WHITE " Best Ante " TC_ATTN);+ o = str_cat(o, T("\001 Best Ante \004"));o = fmt_int(o, S.best_ante > 0 ? S.best_ante : 0);- o = str_cat(o, TC_WHITE " Best Hand " TC_MULT);+ o = str_cat(o, T("\001 Best Hand \003"));fmt_commas(o, S.best_hand);} else {- char *o = str_cat(t, "Seed " TC_ATTN);+ char *o = str_cat(t, T("Seed \004"));str_cat(o, R.seed);}g_text(t, 160, 159, F_LABEL | T_CENTER, C_WHITE);- button(106, 172, 108, 24, C_BLUE, ov_tab == 0 ? "PLAY" : "CONTINUE", T_LARGE, ov_sel == 0, 1);- button(38, 202, 244, 16, C_ORANGE, "Back", T_MED, ov_sel == 1, 1);+ button(106, 172, 108, 24, C_BLUE, ov_tab == 0 ? T("PLAY") : T("CONTINUE"), T_LARGE, ov_sel == 0, 1);+ button(38, 202, 244, 16, C_ORANGE, T("Back"), T_MED, ov_sel == 1, 1);}static const char help_lines[] =- TC_ATTN "Arrows" TC_RESET " move between cards, Jokers, buttons\n"- TC_ATTN "OK" TC_RESET " select a card, or pick a Joker/item and\n"- " choose " TC_GREEN "Sell" TC_RESET ", " TC_MULT "Use" TC_RESET ", " TC_MONEY "Buy" TC_RESET "...\n"- TC_ATTN "EXE" TC_RESET " " TC_CHIPS "Play Hand" TC_RESET " " TC_ATTN "DEL" TC_RESET " " TC_MULT "Discard" TC_RESET "\n"- TC_ATTN "shift" TC_RESET " sort the hand by rank or suit\n"- TC_ATTN "alpha" TC_RESET " + " TC_ATTN "left/right" TC_RESET " move a Joker or card\n"- TC_ATTN "toolbox" TC_RESET " Run Info " TC_ATTN "var" TC_RESET " view deck\n"- TC_ATTN "back" TC_RESET " back / Options " TC_ATTN "home" TC_RESET " save, quit\n"- "Hold " TC_ATTN "OK" TC_RESET " or " TC_ATTN "EXE" TC_RESET " to speed up scoring.\n"- "\n"- "Play poker hands: score = " TC_CHIPS "Chips" TC_RESET " x " TC_MULT "Mult" TC_RESET ".\n"- "Beat each Blind's score before your\n"- "hands run out. Buy Jokers in the shop\n"- "and beat the Ante 8 Boss Blind to win!";+ T("\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win!");static void draw_help(void) {big_panel(10, 6, 300, 228);- panel_title("How to play", 10, 6, 300);+ panel_title(T("How to play"), 10, 6, 300);g_rrect(18, 30, 284, 172, 4, HEXC(0x1F2B2D));- g_text(help_lines, 160 - g_textw(help_lines, F_TEXT) / 2, 30 + (172 - g_lines(help_lines) * 10 + 3) / 2, F_TEXT, C_WHITE);- button(120, 208, 80, 18, C_ORANGE, "Back", T_MED, 1, 1);+ g_text(help_lines, 160 - g_textw(help_lines, F_TEXT) / 2, 30 + (172 - g_lines(help_lines) * LINE_H + 3) / 2, F_TEXT, C_WHITE);+ button(120, 208, 80, 18, C_ORANGE, T("Back"), T_MED, 1, 1);}static void draw_credits(void) {big_panel(12, 10, 296, 220);- panel_title("Credits", 12, 10, 296);+ panel_title(T("Credits"), 12, 10, 296);g_rrect(20, 34, 280, 166, 4, HEXC(0x1F2B2D));- g_text("Inspired by " TC_ATTN "Balatro" TC_RESET " by LocalThunk.\n"- "Not affiliated with LocalThunk or Playstack.\n\n"- "Card, Joker and interface art adapted\n"- "from Balatro by LocalThunk.\n"- "Rules and card texts follow the game.\n"- "Font: " TC_ATTN "m6x11" TC_RESET " by Daniel Linssen.\n\n"- "Made by " TC_ATTN "Mason Chen" TC_RESET " as part of NumPlay.\n\n"- "Please support the original game!",+ g_text(T("Inspired by \004Balatro\020 by LocalThunk.\nNot affiliated with LocalThunk or Playstack.\n\nCard, Joker and interface art adapted\nfrom Balatro by LocalThunk.\nRules and card texts follow the game.\nFont: \004m6x11\020 by Daniel Linssen.\n\nMade by \004Mason Chen\020 as part of NumPlay.\n\nPlease support the original game!"),160, 53, F_TEXT | T_CENTER, C_WHITE);- button(120, 206, 80, 18, C_ORANGE, "Back", T_MED, 1, 1);+ button(120, 206, 80, 18, C_ORANGE, T("Back"), T_MED, 1, 1);}enum { OPT_CONTINUE, OPT_SPEED, OPT_HELP, OPT_NEWRUN, OPT_MAINMENU, OPT_BACK };-static const char *const opt_items[6] = {"Continue", "Game Speed", "How to Play", "New Run", "Main Menu", "Back"};+static const char *const opt_items[6] = {T("Continue"), T("Game Speed"), T("How to Play"), T("New Run"), T("Main Menu"), T("Back")};static const uint8_t opt_game[5] = {OPT_CONTINUE, OPT_SPEED, OPT_HELP, OPT_NEWRUN, OPT_MAINMENU};static const uint8_t opt_title[3] = {OPT_SPEED, OPT_HELP, OPT_BACK};static int opt_count(void) { return in_game ? 5 : 3; }@@ -271,14 +251,14 @@ static int opt_index(int id) {static void draw_options(void) {int n = opt_count(), h = 32 + n * 28, y0 = 120 - h / 2;big_panel(70, y0, 180, h);- panel_title("Options", 70, y0, 180);+ panel_title(T("Options"), 70, y0, 180);static const char *const sp[4] = {"0.5", "1", "2", "4"};for (int i = 0; i < n; i++) {int id = opt_id(i), y = y0 + 28 + i * 28;C c = id == OPT_CONTINUE ? C_BLUE : id == OPT_SPEED || id == OPT_BACK ? C_ORANGE : id == OPT_HELP ? C_GREEN : C_RED;if (id == OPT_SPEED) {char t[24];- char *o = str_cat(t, "Game Speed < ");+ char *o = str_cat(t, T("Game Speed < "));o = str_cat(o, sp[S.speed & 3]);str_cat(o, " >");button(84, y, 152, 21, c, t, T_MED, ov_sel == i, 1);@@ -289,17 +269,17 @@ static void draw_options(void) {static void draw_confirm_new(void) {big_panel(60, 70, 200, 100);- panel_title("New run?", 60, 70, 200);- g_text_box("The current run will be lost.", 60, 96, 200, 16, F_LABEL, HEXC(0xDDDDDD));- button(80, 126, 70, 24, C_RED, "Yes", T_MED, ov_sel == 0, 1);- button(170, 126, 70, 24, C_BLUE, "No", T_MED, ov_sel == 1, 1);+ panel_title(T("New run?"), 60, 70, 200);+ g_text_box(T("The current run will be lost."), 60, 96, 200, 16, F_LABEL, HEXC(0xDDDDDD));+ button(80, 126, 70, 24, C_RED, T("Yes"), T_MED, ov_sel == 0, 1);+ button(170, 126, 70, 24, C_BLUE, T("No"), T_MED, ov_sel == 1, 1);}/* Run Info: poker hands, blinds, vouchers */static void draw_run_info(void) {char t[40];big_panel(6, 4, 308, 232);- static const char *const tabs[3] = {"Poker Hands", "Blinds", "Vouchers"};+ static const char *const tabs[3] = {T("Poker Hands"), T("Blinds"), T("Vouchers")};for (int i = 0; i < 3; i++) tab_button(40 + i * 82, 12, 76, tabs[i], ov_tab == i);if (ov_tab == 0) {static const uint8_t order[12] = {H_FLUSH_FIVE, H_FLUSH_HOUSE, H_FIVE_KIND, H_STRAIGHT_FLUSH, H_FOUR_KIND,@@ -315,7 +295,7 @@ static void draw_run_info(void) {/* lvl | name | chips X mult | # played, as in the game */g_rrect(14, y, 292, 16, 4, HEXC(0xDDE4E6));g_rrect(16, y + 2, 34, 12, 3, lc);- fmt_int(str_cat(t, "lvl."), lv);+ fmt_int(str_cat(t, T("lvl.")), lv);g_text_box(t, 16, y + 2, 34, 12, F_TEXT, C_TEXT_DARK);g_text(hand_names[h], 56, y + 3, T_MED, C_TEXT_DARK);g_rrect(172, y + 2, 42, 12, 3, C_BLUE);@@ -335,7 +315,7 @@ static void draw_run_info(void) {static char bd[80], bd2[96];desc_text(bd, sizeof bd, TK_BLIND, R.boss, 0);wrap_text(bd2, sizeof bd2, bd, 78, F_TEXT);- int colh = 131 + g_lines(bd2) * 10 + 5 + 4 - 34;+ int colh = 131 + g_lines(bd2) * LINE_H + 5 + 4 - 34;for (int k = 0; k < 3; k++) {int b = k == 0 ? BL_SMALL : k == 1 ? BL_BIG : R.boss;int x = 16 + k * 98, w = 92;@@ -345,13 +325,13 @@ static void draw_run_info(void) {g_text_box(blind_name(b), x + 3, 37, w - 6, 15, text_fit(blind_name(b), w - 12, T_MED) | T_SHADOW, C_WHITE);draw_blind_chip(b, x + w / 2 - 13, 57, 256);g_rrect(x + 4, 88, w - 8, 38, 3, HEXC(0x1D2B2C));- g_text("Score at least", x + w / 2, 91, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("Score at least"), x + w / 2, 91, F_LABEL | T_CENTER, C_WHITE);char n[24];int f = num_fit(n, blind_amount(R.ante) * blind_info[b].mult2 / 2, w - 14, T_LARGE);g_text(n, x + w / 2, 101 + (11 - g_cap(f) + 1) / 2, f | T_CENTER | T_SHADOW, C_RED);- label_dollars("Reward:", blind_info[b].dollars, x + w / 2, 116, w - 12);+ label_dollars(T("Reward:"), blind_info[b].dollars, x + w / 2, 116, w - 12);if (b >= BL_OX) {- g_rrect(x + 4, 131, w - 8, g_lines(bd2) * 10 + 5, 3, C_WHITE);+ g_rrect(x + 4, 131, w - 8, g_lines(bd2) * LINE_H + 5, 3, C_WHITE);g_text(bd2, x + w / 2, 134, F_TEXT | T_CENTER, C_TEXT_DARK);}}@@ -363,17 +343,17 @@ static void draw_run_info(void) {g_sprite(SPR_V + v, x, y, 0, 256);n++;}- if (!n) g_text_box("No Vouchers redeemed yet", 6, 100, 308, 30, F_NAME, C_WHITE);+ if (!n) g_text_box(T("No Vouchers redeemed yet"), 6, 100, 308, 30, F_NAME, C_WHITE);}- g_text("left/right: tabs back: close", 160, 225, F_TEXT | T_CENTER, HEXC(0xBBBBBB));+ g_text(T("left/right: tabs back: close"), 160, 225, F_TEXT | T_CENTER, HEXC(0xBBBBBB));}/* View Deck: the cards by suit */static void draw_deck_view(void) {char t[24];big_panel(4, 4, 312, 232);- tab_button(96, 12, 62, "Remaining", ov_tab == 0);- tab_button(162, 12, 62, "Full Deck", ov_tab == 1);+ tab_button(96, 12, 62, T("Remaining"), ov_tab == 0);+ tab_button(162, 12, 62, T("Full Deck"), ov_tab == 1);static const uint8_t suit_order[4] = {S_SPADES, S_HEARTS, S_CLUBS, S_DIAMONDS};int counts[4] = {0};for (int s = 0; s < 4; s++) {@@ -422,14 +402,14 @@ static void round_buttons(int show) {int can_play = n > 0 && n <= 5 && !ui_busy(), can_disc = n > 0 && R.discards_left > 0 && !ui_busy();int f = zone == Z_BTN ? zi : -1;const int px = HAND_X, pw = 52, sx = px + pw + 4, sw = 59, dx = sx + sw + 4, dw = 52;- button(px, BTN_Y, pw, 22, C_BLUE, "Play Hand", F_LABEL, f == 0, can_play);+ button(px, BTN_Y, pw, 22, C_BLUE, T("Play Hand"), F_LABEL, f == 0, can_play);keycap(px + pw / 2, 229, "exe");panel(sx, BTN_Y - 1, sw, 23, 4, HEXC(0x4F6367), 0);- g_text("Sort Hand", sx + sw / 2, BTN_Y + 1, F_LABEL | T_CENTER, C_WHITE);- button(sx + 3, BTN_Y + 10, 25, 11, C_ORANGE, "Rank", F_LABEL, f == 1, 1);- button(sx + sw - 28, BTN_Y + 10, 25, 11, C_ORANGE, "Suit", F_LABEL, f == 2, 1);+ g_text(T("Sort Hand"), sx + sw / 2, BTN_Y + 1, F_LABEL | T_CENTER, C_WHITE);+ button(sx + 3, BTN_Y + 10, 25, 11, C_ORANGE, T("Rank"), F_LABEL, f == 1, 1);+ button(sx + sw - 28, BTN_Y + 10, 25, 11, C_ORANGE, T("Suit"), F_LABEL, f == 2, 1);keycap(sx + sw / 2, 229, "shift");- button(dx, BTN_Y, dw, 22, C_RED, "Discard", F_LABEL, f == 3, can_disc);+ button(dx, BTN_Y, dw, 22, C_RED, T("Discard"), F_LABEL, f == 3, can_disc);keycap(dx + dw / 2, 229, "del");}@@ -475,10 +455,10 @@ static void draw_menu(void) {int yy = y + i * 19;if (kinds[i] == 1) {int val = zone == Z_JOKERS ? joker_sell_value(&R.jokers[menu_open]) : cons_sell_value(&R.cons[menu_open]);- fmt_money(str_cat(t, "SELL\n"), val);+ fmt_money(str_cat(t, T("SELL\n")), val);button(x, yy, bw, 22, C_GREEN, t, F_LABEL, menu_sel == i, 1);} else- button(x, yy, bw, 15, C_RED, "USE", F_LABEL, menu_sel == i, cons_usable(R.cons[menu_open].id, 0));+ button(x, yy, bw, 15, C_RED, T("USE"), F_LABEL, menu_sel == i, cons_usable(R.cons[menu_open].id, 0));if (kinds[i] == 2) y -= 1;}}@@ -748,7 +728,7 @@ static void draw_blind_select(int dt) {if (st == BS_DEFEATED || st == BS_SKIPPED) main = C_BLACK;g_rrect(x - 2, yy - 2, w + 4, 184, 7, on ? C_WHITE : HEXC(0x1D2628));g_rrect(x, yy, w, 180, 6, mix565(main, C_BLACK, 16));- const char *lab = st == BS_SELECT ? "Select" : st == BS_DEFEATED ? "Defeated" : st == BS_SKIPPED ? "Skipped" : "Upcoming";+ const char *lab = st == BS_SELECT ? T("Select") : st == BS_DEFEATED ? T("Defeated") : st == BS_SKIPPED ? T("Skipped") : T("Upcoming");int focused = on && zone == Z_BTN && kinds[zi] == 0;button(x + 5, yy + 4, w - 10, 16, on ? C_ORANGE : HEXC(0x4F6367), lab, F_LABEL, focused, on);/* the name: medium, smaller when it is long (the game shrinks it too) */@@ -762,28 +742,28 @@ static void draw_blind_select(int dt) {desc_text(d, sizeof d, TK_BLIND, b, 0);wrap_text(d2, sizeof d2, d, w - 8, F_TEXT);g_text(d2, x + w / 2, dy, F_LABEL | T_CENTER, C_WHITE);- dy += g_lines(d2) * 10 + 2;+ dy += g_lines(d2) * LINE_H + 2;}g_rrect(x + 2, dy, w - 4, 38, 3, HEXC(0x1D2B2C));- g_text("Score at least", x + w / 2, dy + 3, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("Score at least"), x + w / 2, dy + 3, F_LABEL | T_CENTER, C_WHITE);char n[24];int f = num_fit(n, blind_amount(R.ante) * blind_info[b].mult2 / 2, w - 12, T_LARGE);g_text(n, x + w / 2, dy + 13 + (11 - g_cap(f) + 1) / 2, f | T_CENTER | T_SHADOW, C_RED);- label_dollars("Reward:", blind_info[b].dollars, x + w / 2, dy + 28, w - 8);+ label_dollars(T("Reward:"), blind_info[b].dollars, x + w / 2, dy + 28, w - 8);dy += 42;if (k < 2) {- g_text("or", x + w / 2, dy, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("or"), x + w / 2, dy, F_LABEL | T_CENTER, C_WHITE);int sf = on && zone == Z_BTN && kinds[zi] == 1;int tag = R.skip_tag[k];if (st == BS_SKIPPED || st == BS_DEFEATED) g_sprite(SPR_T + tag, x + w / 2 - 9, dy + 10, FX_GREY, 256);else {- button(x + 4, dy + 11, w - 29, 17, on ? C_RED : HEXC(0x7A2F2A), "Skip Blind", F_LABEL, sf, on);+ button(x + 4, dy + 11, w - 29, 17, on ? C_RED : HEXC(0x7A2F2A), T("Skip Blind"), F_LABEL, sf, on);g_sprite(SPR_T + tag, x + w - 23, dy + 10, on ? 0 : FX_DIM, 256);}if (sf) tip_tag = tag, tip_x = x + w - 23, tip_y = dy + 10;} else if (on && (has_voucher(V_RETCON) || (has_voucher(V_DIRECTORS_CUT) && !R.boss_rerolled))) {int rf = zone == Z_BTN && kinds[zi] == 2;- button(x + 4, dy + 2, w - 8, 24, C_RED, "Reroll Boss\n$10", F_LABEL, rf, R.money >= 10);+ button(x + 4, dy + 2, w - 8, 24, C_RED, T("Reroll Boss\n$10"), F_LABEL, rf, R.money >= 10);}}draw_menu();@@ -860,13 +840,13 @@ static void draw_cashout(int dt) {g_rrect(x - 2, y - 2, w + 4, ph + 4, 7, HEXC(0x1A2224));g_rrect(x, y, w, ph, 6, HEXC(0x3A5055));g_rrect(x + 3, y + 3, w - 6, ph - 6, 5, HEXC(0x2B3A3D));- fmt_money(str_cat(t, "Cash Out: "), R.cash_total);+ fmt_money(str_cat(t, T("Cash Out: ")), R.cash_total);button(x + 10, y + 8, w - 20, 24, C_ORANGE, t, T_LARGE, 1, 1);int yy = y + 40, appear = 250;const int lx = x + 8, rx = x + w - 8;if (cash_t < appear) goto done;draw_blind_chip(R.blind, lx - 2, yy, 256);- g_text("Score at least", lx + 28, yy + 1, F_LABEL, C_WHITE);+ g_text(T("Score at least"), lx + 28, yy + 1, F_LABEL, C_WHITE);{char n[24];int f = num_fit(n, R.blind_chips, rx - 40 - (lx + 42), T_LARGE);@@ -883,7 +863,7 @@ static void draw_cashout(int dt) {if (cash_t < (appear += 300)) goto done;fmt_int(t, R.cash_hands);g_text(t, lx, yy, F_VALUE, C_BLUE);- g_text("Remaining Hands ($1 each)", lx + 3 + g_textw(t, T_LARGE), yy + 4, F_LABEL, C_WHITE);+ g_text(T("Remaining Hands ($1 each)"), lx + 3 + g_textw(t, T_LARGE), yy + 4, F_LABEL, C_WHITE);dollar_row(t, R.cash_hands);g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);yy += 16;@@ -899,7 +879,7 @@ static void draw_cashout(int dt) {if (R.cash_tag) {if (cash_t < (appear += 300)) goto done;g_sprite(SPR_T + TAG_INVESTMENT, lx - 2, yy - 2, 0, 256);- g_text("Defeat the Boss Blind", lx + 20, yy + 4, F_LABEL, C_WHITE);+ g_text(T("Defeat the Boss Blind"), lx + 20, yy + 4, F_LABEL, C_WHITE);dollar_row(t, R.cash_tag);g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);yy += 18;@@ -911,9 +891,9 @@ static void draw_cashout(int dt) {g_text(t, lx, yy, F_VALUE, C_ATTN);int tx = lx + 3 + g_textw(t, T_LARGE);char *o = fmt_int(t, amt);- o = str_cat(o, " interest per $5 (");+ o = str_cat(o, T(" interest per $5 ("));o = fmt_int(o, R.interest_cap / 5 * amt);- str_cat(o, " max)");+ str_cat(o, T(" max)"));g_text(t, tx, yy + 4, F_LABEL, C_WHITE);dollar_row(t, R.cash_interest);g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);@@ -957,12 +937,12 @@ static void draw_shop(int dt) {g_rrect(x + 2, y + 2, w - 4, 174, 5, HEXC(0x3B4B4E));char t[24];int fb = zone == Z_SHOPBTN ? zi : -1;- button(x + 6, y + 6, 58, 36, C_RED, "Next\nRound", F_LABEL, fb == 0, 1);+ button(x + 6, y + 6, 58, 36, C_RED, T("Next\nRound"), F_LABEL, fb == 0, 1);/* Reroll: the word small, the price large */int ok = affordable(R.reroll_cost);button(x + 6, y + 46, 58, 36, C_GREEN, "", F_LABEL, fb == 1, ok);int sx = x + 6 + (fb == 1 ? focus_shake : 0);- g_text("Reroll", sx + 29, y + 50, F_LABEL | T_CENTER, ok ? C_WHITE : HEXC(0xBBBBBB));+ g_text(T("Reroll"), sx + 29, y + 50, F_LABEL | T_CENTER, ok ? C_WHITE : HEXC(0xBBBBBB));fmt_money(t, R.reroll_cost);g_text(t, sx + 29, y + 62, F_VALUE | T_CENTER, ok ? C_WHITE : HEXC(0xBBBBBB));g_shade(x + 68, y + 6, w - 74, 76, 4, 10);@@ -977,9 +957,9 @@ static void draw_shop(int dt) {}/* the voucher box, its name along the left edge as in the game */g_shade(x + 4, y + 88, 88, 84, 4, 10);- char *o = str_cat(t, "ANTE ");+ char *o = str_cat(t, T("ANTE "));o = fmt_int(o, R.ante);- str_cat(o, " VOUCHER");+ str_cat(o, T(" VOUCHER"));g_text(t, x + 9, y + 130, T_SMALL | T_ROT | T_CENTER, HEXC(0x7D8E91));g_shade(x + 96, y + 88, w - 100, 84, 4, 10);for (int i = 0; i < bottom_n(); i++) {@@ -996,10 +976,10 @@ static void draw_shop(int dt) {sitem_t *it = zone == Z_SHOP ? &R.shop[menu_open] : bottom_item(menu_open);int ix = zone == Z_SHOP ? shop_item_x(menu_open, R.nshop) : bottom_x(menu_open);int iy = zone == Z_SHOP ? y + 27 + CH - 4 : y + 111 + CH - 14;- const char *lab = it->kind == IT_VOUCHER ? "REDEEM" : it->kind == IT_PACK ? "OPEN" : "BUY";+ const char *lab = it->kind == IT_VOUCHER ? T("REDEEM") : it->kind == IT_PACK ? T("OPEN") : T("BUY");button(ix - 4, iy, 43, 15, C_GREEN, lab, F_LABEL, menu_sel == 0, affordable(item_cost(it)));if (it->kind == IT_CONS)- button(ix - 4, iy + 18, 43, 22, C_RED, "BUY\n& USE", F_LABEL, menu_sel == 1, cons_usable(it->id, 1));+ button(ix - 4, iy + 18, 43, 22, C_RED, T("BUY\n& USE"), F_LABEL, menu_sel == 1, cons_usable(it->id, 1));}draw_menu();draw_popups();@@ -1135,9 +1115,11 @@ static void draw_pack(int dt) {draw_sidebar();draw_jokers_row(zone == Z_JOKERS ? zi : -1, zone == Z_CONS ? zi : -1, zone == Z_JOKERS ? menu_open : -1,zone == Z_CONS ? menu_open : -1);+#if !NP_TEXT_EXTRAstatic const char *const names[5] = {"Arcana Pack", "Celestial Pack", "Standard Pack", "Buffoon Pack","Spectral Pack"};static const char *const sizes[3] = {"", "Jumbo ", "Mega "};+#endifint py = 70;for (int i = 0; i < R.npack; i++) {int f = zone == Z_PACK && zi == i;@@ -1147,13 +1129,18 @@ static void draw_pack(int dt) {int bw = 170, bx = AREA_X + (AREA_W - bw) / 2, by = with_hand ? 132 : 138, bh = 28;panel(bx, by, bw, bh, 5, HEXC(0x2F3A3C), 2);char t[32];+#if NP_TEXT_EXTRA+ /* (the packs' names among the texts: other languages put the size elsewhere) */+ char *o = str_cat(t, text_get(TXT_EXTRA + 16 + R.pack_kind * 3 + R.pack_size, 0));+#elsechar *o = str_cat(t, sizes[R.pack_size]);str_cat(o, names[R.pack_kind]);+#endifg_text(t, bx + 6, by + 4, text_fit(t, bw - 56, T_MED) | T_SHADOW, C_WHITE);- o = str_cat(t, "Choose ");+ o = str_cat(t, T("Choose "));fmt_int(o, R.pack_picks);g_text(t, bx + 6, by + 17, F_LABEL, C_WHITE);- button(bx + bw - 42, by + 6, 36, 16, C_RED, "Skip", F_LABEL, zone == Z_SKIP, 1);+ button(bx + bw - 42, by + 6, 36, 16, C_RED, T("Skip"), F_LABEL, zone == Z_SKIP, 1);if (with_hand) draw_hand_cards(hand_focus());draw_menu();draw_popups();@@ -1163,7 +1150,7 @@ static void draw_pack(int dt) {int ix = pack_x(zi);int ok = it->kind != IT_CONS || cons_usable(it->id, 1);if (it->kind == IT_JOKER && R.njokers >= joker_slots() && it->ed != ED_NEG) ok = 0;- button(ix - 4, py + CH - 3, 43, 15, it->kind == IT_CONS ? C_RED : C_GREEN, it->kind == IT_CONS ? "USE" : "SELECT",+ button(ix - 4, py + CH - 3, 43, 15, it->kind == IT_CONS ? C_RED : C_GREEN, it->kind == IT_CONS ? T("USE") : T("SELECT"),F_LABEL, 1, ok);if (it->kind == IT_JOKER) {joker_t j = {0};@@ -1239,8 +1226,9 @@ static void pack_input(void) {}/* ------------------------------------------------------------ game over / win */-static const char *const quips_lose[] = {"Better luck\nnext time!", "Don't give up!", "So close!", "The house\nalways wins..."};-static const char *const quips_win[] = {"You did it!", "Unbelievable!", "A true\ncard shark!"};+static const char *const quips_lose[] = {T("Better luck\nnext time!"), T("Don't give up!"), T("So close!"),+ T("The house\nalways wins...")};+static const char *const quips_win[] = {T("You did it!"), T("Unbelievable!"), T("A true\ncard shark!")};static void stat_row(int x, int w, int y, const char *label, const char *value, C col) {g_text(label, x + 14, y + 2, F_LABEL, C_WHITE);@@ -1253,43 +1241,43 @@ static void draw_end(int win) {draw_jokers_row(-1, -1, -1, -1);int x = AREA_X, w = AREA_W;big_panel(x, 20, w, 216);- g_text_box(win ? "YOU WIN!" : "GAME OVER", x, 26, w, 26, T_LARGE | T_X2 | T_SHADOW, win ? C_ATTN : C_RED);+ g_text_box(win ? T("YOU WIN!") : T("GAME OVER"), x, 26, w, 26, T_LARGE | T_X2 | T_SHADOW, win ? C_ATTN : C_RED);draw_joker_sprite(J_JOKER, 0, x + 12, 56, 256, 0);const char *q = win ? quips_win[R.round % 3] : quips_lose[R.round % 4];panel(x + 54, 60, 104, 28, 5, C_WHITE, 1);g_rect(x + 50, 70, 5, 4, C_WHITE);g_text_box(q, x + 54, 60, 104, 28, F_TEXT, C_TEXT_DARK);- char *o = str_cat(t, "Ante " TC_ATTN);+ char *o = str_cat(t, T("Ante \004"));o = fmt_int(o, win ? WIN_ANTE : R.ante);- o = str_cat(o, TC_WHITE " Round " TC_ATTN);+ o = str_cat(o, T("\001 Round \004"));fmt_int(o, R.round);g_text(t, x + 106, 93, F_LABEL | T_CENTER, C_WHITE);int yy = 106;g_rrect(x + 8, yy - 3, w - 16, 88, 4, HEXC(0x1F2B2D));fmt_commas(t, R.best_hand);- stat_row(x, w, yy, "Best Hand", t, C_RED);+ stat_row(x, w, yy, T("Best Hand"), t, C_RED);int mp = 0;for (int h = 0; h < NHANDS; h++)if (R.hands[h].played > R.hands[mp].played) mp = h;- stat_row(x, w, yy + 12, "Most Played Hand", R.hands[mp].played ? hand_names[mp] : "-", C_ATTN);+ stat_row(x, w, yy + 12, T("Most Played Hand"), R.hands[mp].played ? hand_names[mp] : "-", C_ATTN);fmt_int(t, R.cards_played);- stat_row(x, w, yy + 24, "Cards Played", t, C_BLUE);+ stat_row(x, w, yy + 24, T("Cards Played"), t, C_BLUE);fmt_int(t, R.cards_discarded);- stat_row(x, w, yy + 36, "Cards Discarded", t, C_RED);+ stat_row(x, w, yy + 36, T("Cards Discarded"), t, C_RED);fmt_int(t, R.cards_bought);- stat_row(x, w, yy + 48, "Cards Purchased", t, C_MONEY);+ stat_row(x, w, yy + 48, T("Cards Purchased"), t, C_MONEY);fmt_int(t, R.rerolls);- stat_row(x, w, yy + 60, "Times Rerolled", t, C_GREEN);- stat_row(x, w, yy + 72, "Seed", R.seed, C_WHITE);+ stat_row(x, w, yy + 60, T("Times Rerolled"), t, C_GREEN);+ stat_row(x, w, yy + 72, T("Seed"), R.seed, C_WHITE);if (win) {int bw = (w - 16 - 8) / 3;- button(x + 8, 196, bw, 30, C_ORANGE, "Endless\nMode", T_MED, ov_sel == 0, 1);- button(x + 12 + bw, 196, bw, 30, C_BLUE, "New\nRun", T_MED, ov_sel == 1, 1);- button(x + 16 + 2 * bw, 196, bw, 30, C_RED, "Main\nMenu", T_MED, ov_sel == 2, 1);+ button(x + 8, 196, bw, 30, C_ORANGE, T("Endless\nMode"), T_MED, ov_sel == 0, 1);+ button(x + 12 + bw, 196, bw, 30, C_BLUE, T("New\nRun"), T_MED, ov_sel == 1, 1);+ button(x + 16 + 2 * bw, 196, bw, 30, C_RED, T("Main\nMenu"), T_MED, ov_sel == 2, 1);} else {int bw = (w - 16 - 6) / 2;- button(x + 8, 196, bw, 30, C_BLUE, "New Run", T_MED, ov_sel == 0, 1);- button(x + 14 + bw, 196, bw, 30, C_RED, "Main Menu", T_MED, ov_sel == 1, 1);+ button(x + 8, 196, bw, 30, C_BLUE, T("New Run"), T_MED, ov_sel == 0, 1);+ button(x + 14 + bw, 196, bw, 30, C_RED, T("Main Menu"), T_MED, ov_sel == 1, 1);}}diff --git a/games/balatro/src/score.c b/games/balatro/src/score.cindex 078878d2..69229a99 100644--- a/games/balatro/src/score.c+++ b/games/balatro/src/score.c@@ -188,10 +188,10 @@ static const char *j_msg(int ji, eff_t *e) {double x;joker_x_display(j, &x);if (j->id == J_FORTUNE_TELLER) {- text_num(t, "+", R.tarots_used, " Mult");+ text_num(t, "+", R.tarots_used, T(" Mult"));return t;}- text_num(t, "X", j->id == J_CAINO ? j->x : x, " Mult");+ text_num(t, "X", j->id == J_CAINO ? j->x : x, T(" Mult"));return t;}@@ -301,7 +301,7 @@ void draw_phase(void) {for (int i = 0; i < R.ntags; i++)if (R.tags[i] == TAG_JUGGLE) {R.temp_handsize += 3;- ev_popup(TG_CENTER, 0, "+3 Hand Size", PC_ATTN);+ ev_popup(TG_CENTER, 0, T("+3 Hand Size"), PC_ATTN);for (int k = i; k < R.ntags - 1; k++) R.tags[k] = R.tags[k + 1], R.tag_orbital[k] = R.tag_orbital[k + 1];R.ntags--;i--;@@ -330,7 +330,7 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {card_t *c = &R.cards[ci];if (c->flags & CF_DEBUFF) {R.blind_triggered = 1;- ev_popup(TG_PLAY, ci, "Debuffed", PC_MULT);+ ev_popup(TG_PLAY, ci, T("Debuffed"), PC_MULT);return;}/* repetitions: red seal, then jokers */@@ -341,7 +341,7 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {} reps[24];reps[0].src_joker = -1;if (c->seal == SEAL_RED) {- reps[nreps].src_joker = -1, reps[nreps].src_card = ci, reps[nreps].msg = "Again!";+ reps[nreps].src_joker = -1, reps[nreps].src_card = ci, reps[nreps].msg = T("Again!");nreps++;}for (int j = 0; j < R.njokers; j++) {@@ -356,8 +356,8 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {}for (int r = 0; r < nreps; r++) {if (r > 0) {- if (reps[r].src_joker >= 0) ev_popup(TG_JOKER, reps[r].src_joker, "Again!", PC_ATTN);- else ev_popup(TG_PLAY, reps[r].src_card, "Again!", PC_ATTN);+ if (reps[r].src_joker >= 0) ev_popup(TG_JOKER, reps[r].src_joker, T("Again!"), PC_ATTN);+ else ev_popup(TG_PLAY, reps[r].src_card, T("Again!"), PC_ATTN);}c->flags &= (uint8_t)~CF_LUCKY;/* the card's own effects: chips, mult, x_mult, dollars, edition */@@ -378,7 +378,7 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {}if (m) {mult += m;- text_num(t, "+", m, " Mult");+ text_num(t, "+", m, T(" Mult"));ev_popup(TG_PLAY, ci, t, PC_MULT);hud();}@@ -396,13 +396,13 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {}if (c->enh == E_GLASS) {mult *= 2;- ev_popup(TG_PLAY, ci, "X2 Mult", PC_XMULT);+ ev_popup(TG_PLAY, ci, T("X2 Mult"), PC_XMULT);hud();}if (c->ed) {if (c->ed == ED_FOIL) chips += 50, ev_popup(TG_PLAY, ci, "+50", PC_EDITION);- if (c->ed == ED_HOLO) mult += 10, ev_popup(TG_PLAY, ci, "+10 Mult", PC_EDITION);- if (c->ed == ED_POLY) mult *= 1.5, ev_popup(TG_PLAY, ci, "X1.5 Mult", PC_EDITION);+ if (c->ed == ED_HOLO) mult += 10, ev_popup(TG_PLAY, ci, T("+10 Mult"), PC_EDITION);+ if (c->ed == ED_POLY) mult *= 1.5, ev_popup(TG_PLAY, ci, T("X1.5 Mult"), PC_EDITION);hud();}/* jokers on this card */@@ -422,7 +422,7 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {if (e.has & EF_MULT) {mult += e.mult;ev_juice(TG_JOKER, who);- text_num(t, "+", e.mult, " Mult");+ text_num(t, "+", e.mult, T(" Mult"));ev_popup(TG_PLAY, ci, t, PC_MULT);hud();}@@ -441,7 +441,7 @@ static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {if (e.has & EF_XMULT) {mult *= e.x;ev_juice(TG_JOKER, who);- text_num(t, "X", e.x, " Mult");+ text_num(t, "X", e.x, T(" Mult"));ev_popup(TG_PLAY, ci, t, PC_XMULT);hud();}@@ -455,8 +455,8 @@ static void score_held_card(int ci, cx_t *base) {char t[20];for (int r = 0; r < nreps; r++) {if (r > 0) {- if (src[r] >= 0) ev_popup(TG_JOKER, src[r], "Again!", PC_ATTN);- else ev_popup(TG_HAND, ci, "Again!", PC_ATTN);+ if (src[r] >= 0) ev_popup(TG_JOKER, src[r], T("Again!"), PC_ATTN);+ else ev_popup(TG_HAND, ci, T("Again!"), PC_ATTN);}int own = card_has_effect_held(ci), any = own;eff_t effs[MAXJ];@@ -480,7 +480,7 @@ static void score_held_card(int ci, cx_t *base) {if (own) {mult *= 1.5;ev_juice(TG_HAND, ci);- ev_popup(TG_HAND, ci, "X1.5 Mult", PC_XMULT);+ ev_popup(TG_HAND, ci, T("X1.5 Mult"), PC_XMULT);hud();}for (int k = 0; k < ne; k++) {@@ -494,13 +494,13 @@ static void score_held_card(int ci, cx_t *base) {}if (e->has & EF_HMULT) {mult += e->mult;- text_num(t, "+", e->mult, " Mult");+ text_num(t, "+", e->mult, T(" Mult"));ev_popup(TG_HAND, ci, t, PC_MULT);hud();}if (e->has & EF_XMULT) {mult *= e->x;- text_num(t, "X", e->x, " Mult");+ text_num(t, "X", e->x, T(" Mult"));ev_popup(TG_HAND, ci, t, PC_XMULT);hud();}@@ -696,7 +696,7 @@ int play_hand(void) {if (!deb && ed == ED_HOLO) {mult += 10;ev_juice(tg, idx);- ev_popup(tg, idx, "+10 Mult", PC_EDITION);+ ev_popup(tg, idx, T("+10 Mult"), PC_EDITION);hud();}eff_t e = {0};@@ -718,7 +718,7 @@ int play_hand(void) {int who = is_j ? e.card : idx;if (e.has & EF_MULT) {mult += e.mult;- text_num(t, "+", e.mult, " Mult");+ text_num(t, "+", e.mult, T(" Mult"));ev_juice(tg, who);ev_popup(tg, who, t, PC_MULT);}@@ -730,7 +730,7 @@ int play_hand(void) {}if (e.has & EF_XMULT) {mult *= e.x;- text_num(t, "X", e.x, " Mult");+ text_num(t, "X", e.x, T(" Mult"));ev_juice(tg, who);ev_popup(tg, who, t, PC_XMULT);}@@ -755,7 +755,7 @@ int play_hand(void) {eff_t e2 = {0};if (jcalc(k, &cx, &e2) && (e2.has & EF_XMULT)) {mult *= e2.x;- text_num(t, "X", e2.x, " Mult");+ text_num(t, "X", e2.x, T(" Mult"));ev_juice(TG_JOKER, i);ev_popup(TG_JOKER, e2.card, t, PC_XMULT);hud();@@ -764,7 +764,7 @@ int play_hand(void) {if (!deb && ed == ED_POLY) {mult *= 1.5;ev_juice(tg, idx);- ev_popup(tg, idx, "X1.5 Mult", PC_EDITION);+ ev_popup(tg, idx, T("X1.5 Mult"), PC_EDITION);hud();}}@@ -797,7 +797,7 @@ int play_hand(void) {} else {chips = 0, mult = 0;ev_push(EV_BLIND_FLASH);- ev_message("Not Allowed!");+ ev_message(T("Not Allowed!"));hud();run_simple(CX_DEBUFFED_HAND, &base);}@@ -859,7 +859,7 @@ static void discard_cards(const uint8_t *cards, int n, int hook) {/* purple seal */if (R.cards[ci].seal == SEAL_PURPLE && !(R.cards[ci].flags & CF_DEBUFF) && R.ncons < cons_slots()) {add_cons(create_cons_id(0), 0);- ev_popup(TG_HAND, ci, "+1 Tarot", PC_TAROT);+ ev_popup(TG_HAND, ci, T("+1 Tarot"), PC_TAROT);}for (int j = 0; j < R.njokers; j++) {cx_t cx = base;@@ -949,7 +949,7 @@ void end_round(void) {}if (saved) {game_over_ = 0;- ev_message("Saved by Mr. Bones");+ ev_message(T("Saved by Mr. Bones"));}if (game_over_) {ev_delay(5);@@ -970,8 +970,8 @@ void end_round(void) {int nreps = 1, src[16];for (int r = 0; r < nreps; r++) {if (r > 0) {- if (src[r] >= 0) ev_popup(TG_JOKER, src[r], "Again!", PC_ATTN);- else ev_popup(TG_HAND, ci, "Again!", PC_ATTN);+ if (src[r] >= 0) ev_popup(TG_JOKER, src[r], T("Again!"), PC_ATTN);+ else ev_popup(TG_HAND, ci, T("Again!"), PC_ATTN);}int any = 0;if (!(c->flags & CF_DEBUFF)) {@@ -984,7 +984,7 @@ void end_round(void) {static const uint8_t planet_of[12] = {C_ERIS, C_CERES, C_PLANET_X, C_NEPTUNE, C_MARS, C_EARTH, C_JUPITER,C_SATURN, C_VENUS, C_URANUS, C_MERCURY, C_PLUTO};add_cons(planet_of[R.last_hand], 0);- ev_popup(TG_HAND, ci, "+1 Planet", PC_PLANET);+ ev_popup(TG_HAND, ci, T("+1 Planet"), PC_PLANET);any = 1;}}diff --git a/games/balatro/src/texts.h b/games/balatro/src/texts.hnew file mode 100644index 00000000..e9085b24--- /dev/null+++ b/games/balatro/src/texts.h@@ -0,0 +1,324 @@+/* Generated by tools/mkdata.py: Balatro's names and descriptions, as in data.c, marked for NumPlay's+ language builds in the game's own markup ({C:mult} a colour up to {}, #1# a value; see conv()).+ tools/lang.py puts their translations in place (lang/<code>.txt), and tools/mktexts.py makes+ them output/texts.c, which those builds use instead of data.c's texts. Not compiled. */+T("Joker"), T("{C:mult}+#1#{} Mult"),+T("Greedy Joker"), T("Played cards with\n{C:attention}#2#{} suit give\n{C:mult}+#1#{} Mult when scored"),+T("Lusty Joker"), T("Played cards with\n{C:mult}#2#{} suit give\n{C:mult}+#1#{} Mult when scored"),+T("Wrathful Joker"), T("Played cards with\n{C:spades}#2#{} suit give\n{C:mult}+#1#{} Mult when scored"),+T("Gluttonous Joker"), T("Played cards with\n{C:attention}#2#{} suit give\n{C:mult}+#1#{} Mult when scored"),+T("Jolly Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2#"),+T("Zany Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2#"),+T("Mad Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2#"),+T("Crazy Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2#"),+T("Droll Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\na {C:attention}#2#"),+T("Sly Joker"), T("{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2#"),+T("Wily Joker"), T("{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2#"),+T("Clever Joker"), T("{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2#"),+T("Devious Joker"), T("{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2#"),+T("Crafty Joker"), T("{C:chips}+#1#{} Chips if played\nhand contains\na {C:attention}#2#"),+T("Half Joker"), T("{C:mult}+#1#{} Mult if played\nhand contains\n{C:attention}#2#{} or fewer cards"),+T("Joker Stencil"), T("{X:mult,C:white} X1 {} Mult for each\nempty {C:attention}Joker{} slot\nJoker Stencil included\n{C:inactive}(Currently {X:mult,C:white} X#1# {C:inactive})"),+T("Four Fingers"), T("All {C:attention}Flushes{} and\n{C:attention}Straights{} can be\nmade with {C:attention}4{} cards"),+T("Mime"), T("Retrigger all\ncard {C:attention}held in\n{C:attention}hand{} abilities"),+T("Credit Card"), T("Go up to\n{C:mult}-$#1#{} in debt"),+T("Ceremonial Dagger"), T("When {C:attention}Blind{} is selected,\ndestroy Joker to the right\nand permanently add {C:attention}double\nits sell value to this {C:mult}Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult)"),+T("Banner"), T("{C:chips}+#1#{} Chips for\neach remaining\n{C:attention}discard"),+T("Mystic Summit"), T("{C:mult}+#1#{} Mult when\n{C:attention}#2#{} discards\nremaining"),+T("Marble Joker"), T("Adds one {C:attention}Stone{} card\nto deck when\n{C:attention}Blind{} is selected"),+T("Loyalty Card"), T("{X:mult,C:white} X#1# {} Mult every\n{C:attention}#2#{} hands played\n{C:inactive}#3#"),+T("8 Ball"), T("{C:green}#1# in #2#{} chance for each\nplayed {C:attention}8{} to create a\n{C:tarot}Tarot{} card when scored\n{C:inactive}(Must have room)"),+T("Misprint"), "",+T("Dusk"), T("Retrigger all played\ncards in {C:attention}final\n{C:attention}hand{} of round"),+T("Raised Fist"), T("Adds {C:attention}double{} the rank\nof {C:attention}lowest{} ranked card\nheld in hand to Mult"),+T("Chaos the Clown"), T("{C:attention}#1#{} free {C:green}Reroll\nper shop"),+T("Fibonacci"), T("Each played {C:attention}Ace{},\n{C:attention}2{}, {C:attention}3{}, {C:attention}5{}, or {C:attention}8{} gives\n{C:mult}+#1#{} Mult when scored"),+T("Steel Joker"), T("Gives {X:mult,C:white} X#1# {} Mult\nfor each {C:attention}Steel Card\nin your {C:attention}full deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Scary Face"), T("Played {C:attention}face{} cards\ngive {C:chips}+#1#{} Chips\nwhen scored"),+T("Abstract Joker"), T("{C:mult}+#1#{} Mult for\neach {C:attention}Joker{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),+T("Delayed Gratification"), T("Earn {C:money}$#1#{} per {C:attention}discard{} if\nno discards are used\nby end of the round"),+T("Hack"), T("Retrigger\neach played\n{C:attention}2{}, {C:attention}3{}, {C:attention}4{}, or {C:attention}5{}"),+T("Pareidolia"), T("All cards are\nconsidered\n{C:attention}face{} cards"),+T("Gros Michel"), T("{C:mult}+#1#{} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round"),+T("Even Steven"), T("Played cards with\n{C:attention}even{} rank give\n{C:mult}+#1#{} Mult when scored\n{C:inactive}(10, 8, 6, 4, 2)"),+T("Odd Todd"), T("Played cards with\n{C:attention}odd{} rank give\n{C:chips}+#1#{} Chips when scored\n{C:inactive}(A, 9, 7, 5, 3)"),+T("Scholar"), T("Played {C:attention}Aces{}\ngive {C:chips}+#2#{} Chips\nand {C:mult}+#1#{} Mult\nwhen scored"),+T("Business Card"), T("Played {C:attention}face{} cards have\na {C:green}#1# in #2#{} chance to\ngive {C:money}$2{} when scored"),+T("Supernova"), T("Adds the number of times\n{C:attention}poker hand{} has been\nplayed this run to Mult"),+T("Ride the Bus"), T("This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}consecutive{} hand\nplayed without a\nscoring {C:attention}face{} card\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),+T("Space Joker"), T("{C:green}#1# in #2#{} chance to\nupgrade level of\nplayed {C:attention}poker hand{}"),+T("Egg"), T("Gains {C:money}$#1#{} of\n{C:attention}sell value{} at\nend of round"),+T("Burglar"), T("When {C:attention}Blind{} is selected,\ngain {C:chips}+#1#{} Hands and\n{C:attention}lose all discards"),+T("Blackboard"), T("{X:mult,C:white} X#1# {} Mult if all\ncards held in hand\nare {C:spades}#2#{} or {C:attention}#3#{}"),+T("Runner"), T("Gains {C:chips}+#2#{} Chips\nif played hand\ncontains a {C:attention}Straight{}\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips)"),+T("Ice Cream"), T("{C:chips}+#1#{} Chips\n{C:chips}-#2#{} Chips for\nevery hand played"),+T("DNA"), T("If {C:attention}first hand{} of round\nhas only {C:attention}1{} card, add a\npermanent copy to deck\nand draw it to {C:attention}hand"),+T("Splash"), T("Every {C:attention}played card\ncounts in scoring"),+T("Blue Joker"), T("{C:chips}+#1#{} Chips for each\nremaining card in {C:attention}deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips)"),+T("Sixth Sense"), T("If {C:attention}first hand{} of round is\na single {C:attention}6{}, destroy it and\ncreate a {C:spectral}Spectral{} card\n{C:inactive}(Must have room)"),+T("Constellation"), T("This Joker gains\n{X:mult,C:white} X#1# {} Mult every time\na {C:planet}Planet{} card is used\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Hiker"), T("Every played {C:attention}card{}\npermanently gains\n{C:chips}+#1#{} Chips when scored"),+T("Faceless Joker"), T("Earn {C:money}$#1#{} if {C:attention}#2#{} or\nmore {C:attention}face cards{}\nare discarded\nat the same time"),+T("Green Joker"), T("{C:mult}+#1#{} Mult per hand played\n{C:mult}-#2#{} Mult per discard\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult)"),+T("Superposition"), T("Create a {C:tarot}Tarot{} card if\npoker hand contains an\n{C:attention}Ace{} and a {C:attention}Straight{}\n{C:inactive}(Must have room)"),+T("To Do List"), T("Earn {C:money}$#1#{} if {C:attention}poker hand{}\nis a {C:attention}#2#{},\npoker hand changes\nat end of round"),+T("Cavendish"), T("{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance this\ncard is destroyed\nat end of round"),+T("Card Sharp"), T("{X:mult,C:white} X#1# {} Mult if played\n{C:attention}poker hand{} has already\nbeen played this round"),+T("Red Card"), T("This Joker gains\n{C:mult}+#1#{} Mult when any\n{C:attention}Booster Pack{} is skipped\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),+T("Madness"), T("When {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Square Joker"), T("This Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips)"),+T("Singance"), T("If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room)"),+T("Riff-Raff"), T("When {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room)"),+T("Vampire"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nper scoring {C:attention}Enhanced card{} played,\nremoves card {C:attention}Enhancement\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Shortcut"), T("Allows {C:attention}Straights{} to be\nmade with gaps of {C:attention}1 rank\n{C:inactive}(ex: {C:attention}10 8 6 5 3{C:inactive})"),+T("Hologram"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}playing card{}\nis added to your deck\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Vagabond"), T("Create a {C:tarot}Tarot{} card\nif hand is played\nwith {C:money}$#1#{} or less"),+T("Baron"), T("Each {C:attention}King{}\nheld in hand\ngives {X:mult,C:white} X#1# {} Mult"),+T("Cloud 9"), T("Earn {C:money}$#1#{} for each\n{C:attention}9{} in your {C:attention}full deck\nat end of round\n{C:inactive}(Currently {C:money}$#2#{}{C:inactive})"),+T("Rocket"), T("Earn {C:money}$#1#{} at end of round\nPayout increases by {C:money}$#2#{}\nwhen {C:attention}Boss Blind{} is defeated"),+T("Obelisk"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nper {C:attention}consecutive{} hand played\nwithout playing your\nmost played {C:attention}poker hand\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Midas Mask"), T("All played {C:attention}face{} cards\nbecome {C:attention}Gold{} cards\nwhen scored"),+T("Luchador"), T("Sell this card to\ndisable the current\n{C:attention}Boss Blind{}"),+T("Photograph"), T("First played {C:attention}face\ncard gives {X:mult,C:white} X#1# {} Mult\nwhen scored"),+T("Gift Card"), T("Add {C:money}$#1#{} of {C:attention}sell value\nto every {C:attention}Joker{} and\n{C:attention}Consumable{} card at\nend of round"),+T("Turtle Bean"), T("{C:attention}+#1#{} hand size,\nreduces by\n{C:mult}#2#{} every round"),+T("Erosion"), T("{C:mult}+#1#{} Mult for each\ncard below {C:attention}#3#{}\nin your full deck\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),+T("Reserved Parking"), T("Each {C:attention}face{} card\nheld in hand has\na {C:green}#2# in #3#{} chance\nto give {C:money}$#1#{}"),+T("Mail-In Rebate"), T("Earn {C:money}$#1#{} for each\ndiscarded {C:attention}#2#{}, rank\nchanges every round"),+T("To the Moon"), T("Earn an extra {C:money}$#1#{} of\n{C:attention}interest{} for every {C:money}$5{} you\nhave at end of round"),+T("Hallucination"), T("{C:green}#1# in #2#{} chance to create\na {C:tarot}Tarot{} card when any\n{C:attention}Booster Pack{} is opened\n{C:inactive}(Must have room)"),+T("Fortune Teller"), T("{C:mult}+#1#{} Mult per {C:tarot}Tarot{}\ncard used this run\n{C:inactive}(Currently {C:mult}+#2#{C:inactive})"),+T("Juggler"), T("{C:attention}+#1#{} hand size"),+T("Drunkard"), T("{C:mult}+#1#{} discard\neach round"),+T("Stone Joker"), T("Gives {C:chips}+#1#{} Chips for\neach {C:attention}Stone Card\nin your {C:attention}full deck\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips)"),+T("Golden Joker"), T("Earn {C:money}$#1#{} at\nend of round"),+T("Lucky Cat"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nevery time a {C:attention}Lucky{} card\n{C:green}successfully{} triggers\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Baseball Card"), T("{C:green}Uncommon{} Jokers\neach give {X:mult,C:white} X#1# {} Mult"),+T("Bull"), T("{C:chips}+#1#{} Chips for\neach {C:money}$1{} you have\n{C:inactive}(Currently {C:chips}+#2#{C:inactive} Chips)"),+T("Diet Cola"), T("Sell this card to\ncreate a free\n{C:attention}#1#"),+T("Trading Card"), T("If {C:attention}first discard{} of round\nhas only {C:attention}1{} card, destroy\nit and earn {C:money}$#1#"),+T("Flash Card"), T("This Joker gains {C:mult}+#1#{} Mult\nper {C:attention}reroll{} in the shop\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),+T("Popcorn"), T("{C:mult}+#1#{} Mult\n{C:mult}-#2#{} Mult per\nround played"),+T("Spare Trousers"), T("This Joker gains {C:mult}+#1#{} Mult\nif played hand contains\na {C:attention}#2#\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult)"),+T("Ancient Joker"), T("Each played card with\n{C:attention}#2#{} suit gives\n{X:mult,C:white} X#1# {} Mult when scored,\nsuit changes at end of round"),+T("Ramen"), T("{X:mult,C:white} X#1# {} Mult,\nloses {X:mult,C:white} X#2# {} Mult\nper {C:attention}card{} discarded"),+T("Walkie Talkie"), T("Each played {C:attention}10{} or {C:attention}4\ngives {C:chips}+#1#{} Chips and\n{C:mult}+#2#{} Mult when scored"),+T("Seltzer"), T("Retrigger all\ncards played for\nthe next {C:attention}#1#{} hands"),+T("Castle"), T("This Joker gains {C:chips}+#1#{} Chips\nper discarded {C:attention}#2#{} card,\nsuit changes every round\n{C:inactive}(Currently {C:chips}+#3#{C:inactive} Chips)"),+T("Smiley Face"), T("Played {C:attention}face{} cards\ngive {C:mult}+#1#{} Mult\nwhen scored"),+T("Campfire"), T("This Joker gains {X:mult,C:white}X#1#{} Mult\nfor each card {C:attention}sold{}, resets\nwhen {C:attention}Boss Blind{} is defeated\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Golden Ticket"), T("Played {C:attention}Gold{} cards\nearn {C:money}$#1#{} when scored"),+T("Mr. Bones"), T("Prevents Death\nif chips scored\nare at least {C:attention}25%\nof required chips\n{C:mult}self destructs{}"),+T("Acrobat"), T("{X:mult,C:white} X#1# {} Mult on {C:attention}final\n{C:attention}hand{} of round"),+T("Sock and Buskin"), T("Retrigger all\nplayed {C:attention}face{} cards"),+T("Swashbuckler"), T("Adds the sell value\nof all other owned\n{C:attention}Jokers{} to Mult\n{C:inactive}(Currently {C:mult}+#1#{C:inactive} Mult)"),+T("Troubadour"), T("{C:attention}+#1#{} hand size,\n{C:chips}-#2#{} hand each round"),+T("Certificate"), T("When round begins,\nadd a random {C:attention}playing\n{C:attention}card{} with a random\n{C:attention}seal{} to your hand"),+T("Smeared Joker"), T("{C:mult}Hearts{} and {C:attention}Diamonds\ncount as the same suit,\n{C:spades}Spades{} and {C:attention}Clubs\ncount as the same suit"),+T("Throwback"), T("{X:mult,C:white} X#1# {} Mult for each\n{C:attention}Blind{} skipped this run\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Hanging Chad"), T("Retrigger {C:attention}first{} played\ncard used in scoring\n{C:attention}#1#{} additional times"),+T("Rough Gem"), T("Played cards with\n{C:attention}Diamond{} suit earn\n{C:money}$#1#{} when scored"),+T("Bloodstone"), T("{C:green}#1# in #2#{} chance for\nplayed cards with\n{C:mult}Heart{} suit to give\n{X:mult,C:white} X#3# {} Mult when scored"),+T("Arrowhead"), T("Played cards with\n{C:spades}Spade{} suit give\n{C:chips}+#1#{} Chips when scored"),+T("Onyx Agate"), T("Played cards with\n{C:attention}Club{} suit give\n{C:mult}+#1#{} Mult when scored"),+T("Glass Joker"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Glass Card\nthat is destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Showman"), T("{C:attention}Joker{}, {C:tarot}Tarot{}, {C:planet}Planet{},\nand {C:spectral}Spectral{} cards may\nappear multiple times"),+T("Flower Pot"), T("{X:mult,C:white} X#1# {} Mult if poker\nhand contains a\n{C:attention}Diamond{} card, {C:attention}Club{} card,\n{C:mult}Heart{} card, and {C:spades}Spade{} card"),+T("Blueprint"), T("Copies ability of\n{C:attention}Joker{} to the right"),+T("Wee Joker"), T("This Joker gains\n{C:chips}+#2#{} Chips when each\nplayed {C:attention}2{} is scored\n{C:inactive}(Currently {C:chips}+#1#{C:inactive} Chips)"),+T("Merry Andy"), T("{C:mult}+#1#{} discards\neach round,\n{C:mult}#2#{} hand size"),+T("Oops! All 6s"), T("Doubles all {C:attention}listed\n{C:green}probabilities\n{C:inactive}(ex: {C:green}1 in 3{C:inactive} -> {C:green}2 in 3{C:inactive})"),+T("The Idol"), T("Each played {C:attention}#2#\nof {C:attention}#3#{} gives\n{X:mult,C:white} X#1# {} Mult when scored\nCard changes every round"),+T("Seeing Double"), T("{X:mult,C:white} X#1# {} Mult if played\nhand has a scoring\n{C:attention}Club{} card and a scoring\ncard of any other {C:attention}suit"),+T("Matador"), T("Earn {C:money}$#1#{} if played\nhand triggers the\n{C:attention}Boss Blind{} ability"),+T("Hit the Road"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nfor every {C:attention}Jack{}\ndiscarded this round\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("The Duo"), T("{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2#"),+T("The Trio"), T("{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2#"),+T("The Family"), T("{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2#"),+T("The Order"), T("{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2#"),+T("The Tribe"), T("{X:mult,C:white} X#1# {} Mult if played\nhand contains\na {C:attention}#2#"),+T("Stuntman"), T("{C:chips}+#1#{} Chips,\n{C:attention}-#2#{} hand size"),+T("Invisible Joker"), T("After {C:attention}#1#{} rounds,\nsell this card to\n{C:attention}Duplicate{} a random Joker\n{C:inactive}(Currently {C:attention}#2#{C:inactive}/#1#)"),+T("Brainstorm"), T("Copies the ability\nof leftmost {C:attention}Joker"),+T("Satellite"), T("Earn {C:money}$#1#{} at end of\nround per unique {C:planet}Planet\ncard used this run\n{C:inactive}(Currently {C:money}$#2#{C:inactive})"),+T("Shoot the Moon"), T("Each {C:attention}Queen{}\nheld in hand\ngives {C:mult}+#1#{} Mult"),+T("Driver's License"), T("{X:mult,C:white} X#1# {} Mult if you have\nat least {C:attention}16{} Enhanced\ncards in your full deck\n{C:inactive}(Currently {C:attention}#2#{C:inactive})"),+T("Cartomancer"), T("Create a {C:tarot}Tarot{} card\nwhen {C:attention}Blind{} is selected\n{C:inactive}(Must have room)"),+T("Astronomer"), T("All {C:planet}Planet{} cards and\n{C:planet}Celestial Packs{} in\nthe shop are {C:attention}free"),+T("Burnt Joker"), T("Upgrade the level of\nthe first {C:attention}discarded\npoker hand each round"),+T("Bootstraps"), T("{C:mult}+#1#{} Mult for every\n{C:money}$#2#{} you have\n{C:inactive}(Currently {C:mult}+#3#{C:inactive} Mult)"),+T("Canio"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nwhen a {C:attention}face{} card\nis destroyed\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),+T("Triboulet"), T("Played {C:attention}Kings{} and\n{C:attention}Queens{} each give\n{X:mult,C:white} X#1# {} Mult when scored"),+T("Yorick"), T("This Joker gains\n{X:mult,C:white} X#1# {} Mult every {C:attention}#2#{C:inactive} [#3#]{}\ncards discarded\n{C:inactive}(Currently {X:mult,C:white} X#4# {C:inactive} Mult)"),+T("Chicot"), T("Disables effect of\nevery {C:attention}Boss Blind"),+T("Perkeo"), T("Creates a {C:dark_edition}Negative{} copy of\n{C:attention}1{} random {C:attention}consumable{}\ncard in your possession\nat the end of the {C:attention}shop"),+T("The Fool"), T("Creates the last\n{C:tarot}Tarot{} or {C:planet}Planet{} card\nused during this run\n{C:tarot}The Fool excluded"),+T("The Magician"), T("Enhances {C:attention}#1#{}\nselected cards to\n{C:attention}#2#s"),+T("The High Priestess"), T("Creates up to {C:attention}#1#\nrandom {C:planet}Planet{} cards\n{C:inactive}(Must have room)"),+T("The Empress"), T("Enhances {C:attention}#1#\nselected cards to\n{C:attention}#2#s"),+T("The Emperor"), T("Creates up to {C:attention}#1#\nrandom {C:tarot}Tarot{} cards\n{C:inactive}(Must have room)"),+T("The Hierophant"), T("Enhances {C:attention}#1#\nselected cards to\n{C:attention}#2#s"),+T("The Lovers"), T("Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2#"),+T("The Chariot"), T("Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2#"),+T("Justice"), T("Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2#"),+T("The Hermit"), T("Doubles money\n{C:inactive}(Max of {C:money}$#1#{C:inactive})"),+T("The Wheel of Fortune"), T("{C:green}#1# in #2#{} chance to add\n{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, or\n{C:dark_edition}Polychrome{} edition\nto a random {C:attention}Joker"),+T("Strength"), T("Increases rank of\nup to {C:attention}#1#{} selected\ncards by {C:attention}1"),+T("The Hanged Man"), T("Destroys up to\n{C:attention}#1#{} selected cards"),+T("Death"), T("Select {C:attention}#1#{} cards,\nconvert the {C:attention}left{} card\ninto the {C:attention}right{} card\n{C:inactive}(Drag to rearrange)"),+T("Temperance"), T("Gives the total sell\nvalue of all current\nJokers {C:inactive}(Max of {C:money}$#1#{C:inactive})\n{C:inactive}(Currently {C:money}$#2#{C:inactive})"),+T("The Devil"), T("Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2#"),+T("The Tower"), T("Enhances {C:attention}#1#{} selected\ncard into a\n{C:attention}#2#"),+T("The Star"), T("Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{}"),+T("The Moon"), T("Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{}"),+T("The Sun"), T("Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{}"),+T("Judgement"), T("Creates a random\n{C:attention}Joker{} card\n{C:inactive}(Must have room)"),+T("The World"), T("Converts up to\n{C:attention}#1#{} selected cards\nto {C:attention}#2#{}"),+T("Mercury"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Venus"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Earth"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Mars"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Jupiter"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Saturn"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Uranus"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Neptune"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Pluto"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Planet X"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Ceres"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Eris"), T("({C:attention}lvl.#1#){} Level up\n{C:attention}#2#\n{C:mult}+#3#{} Mult and\n{C:chips}+#4#{} chips"),+T("Familiar"), T("Destroy {C:attention}1{} random\ncard in your hand, add\n{C:attention}#1#{} random {C:attention}Enhanced face\n{C:attention}cards{} to your hand"),+T("Grim"), T("Destroy {C:attention}1{} random\ncard in your hand,\nadd {C:attention}#1#{} random {C:attention}Enhanced\n{C:attention}Aces{} to your hand"),+T("Incantation"), T("Destroy {C:attention}1{} random\ncard in your hand, add {C:attention}#1#\nrandom {C:attention}Enhanced numbered\n{C:attention}cards{} to your hand"),+T("Talisman"), T("Add a {C:attention}Gold Seal{}\nto {C:attention}1{} selected\ncard in your hand"),+T("Aura"), T("Add {C:dark_edition}Foil{}, {C:dark_edition}Holographic{},\nor {C:dark_edition}Polychrome{} effect to\n{C:attention}1{} selected card in hand"),+T("Wraith"), T("Creates a random\n{C:mult}Rare{C:attention} Joker{},\nsets money to {C:money}$0"),+T("Sigil"), T("Converts all cards\nin hand to a single\nrandom {C:attention}suit"),+T("Ouija"), T("Converts all cards\nin hand to a single\nrandom {C:attention}rank\n{C:mult}-1{} hand size"),+T("Ectoplasm"), T("Add {C:dark_edition}Negative{} to\na random {C:attention}Joker,\n{C:mult}-#1#{} hand size"),+T("Immolate"), T("Destroys {C:attention}#1#{} random\ncards in hand,\ngain {C:money}$#2#"),+T("Ankh"), T("Create a copy of a\nrandom {C:attention}Joker{}, destroy\nall other Jokers"),+T("Deja Vu"), T("Add a {C:mult}Red Seal{}\nto {C:attention}1{} selected\ncard in your hand"),+T("Hex"), T("Add {C:dark_edition}Polychrome{} to a\nrandom {C:attention}Joker{}, destroy\nall other Jokers"),+T("Trance"), T("Add a {C:chips}Blue Seal{}\nto {C:attention}1{} selected\ncard in your hand"),+T("Medium"), T("Add a {C:tarot}Purple Seal{}\nto {C:attention}1{} selected\ncard in your hand"),+T("Cryptid"), T("Create {C:attention}#1#{} copies of\n{C:attention}1{} selected card\nin your hand"),+T("The Soul"), T("Creates a\n{C:tarot}Legendary{} Joker\n{C:inactive}(Must have room)"),+T("Black Hole"), T("Upgrade every\n{C:tarot}poker hand\nby {C:attention}1{} level"),+T("Overstock"), T("{C:attention}+1{} card slot\navailable in shop"),+T("Clearance Sale"), T("All cards and packs in\nshop are {C:attention}#1#%{} off"),+T("Hone"), T("{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, and\n{C:dark_edition}Polychrome{} cards\nappear {C:attention}#1#X{} more often"),+T("Reroll Surplus"), T("Rerolls cost\n{C:money}$#1#{} less"),+T("Crystal Ball"), T("{C:attention}+1{} consumable slot"),+T("Telescope"), T("{C:attention}Celestial Packs{} always\ncontain the {C:planet}Planet{}\ncard for your most\nplayed {C:attention}poker hand"),+T("Grabber"), T("Permanently\ngain {C:chips}+#1#{} hand\nper round"),+T("Wasteful"), T("Permanently\ngain {C:mult}+#1#{} discard\neach round"),+T("Tarot Merchant"), T("{C:tarot}Tarot{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop"),+T("Planet Merchant"), T("{C:planet}Planet{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop"),+T("Seed Money"), T("Raise the cap on\ninterest earned in\neach round to {C:money}$#1#{}"),+T("Blank"), T("{C:inactive}Does nothing?"),+T("Magic Trick"), T("{C:attention}Playing cards{} can\nbe purchased\nfrom the {C:attention}shop"),+T("Hieroglyph"), T("{C:attention}-#1#{} Ante,\n{C:chips}-#1#{} hand\neach round"),+T("Director's Cut"), T("Reroll Boss Blind\n{C:attention}1{} time per Ante,\n{C:money}$#1#{} per roll"),+T("Paint Brush"), T("{C:attention}+#1#{} hand size"),+T("Overstock Plus"), T("{C:attention}+1{} card slot\navailable in shop"),+T("Liquidation"), T("All cards and packs in\nshop are {C:attention}#1#%{} off"),+T("Glow Up"), T("{C:dark_edition}Foil{}, {C:dark_edition}Holographic{}, and\n{C:dark_edition}Polychrome{} cards\nappear {C:attention}#1#X{} more often"),+T("Reroll Glut"), T("Rerolls cost\n{C:money}$#1#{} less"),+T("Omen Globe"), T("{C:spectral}Spectral{} cards may\nappear in any of\nthe {C:attention}Arcana Packs"),+T("Observatory"), T("{C:planet}Planet{} cards in your\n{C:attention}consumable{} area give\n{X:mult,C:white} X#1# {} Mult for their\nspecified {C:attention}poker hand"),+T("Nacho Tong"), T("Permanently\ngain {C:chips}+#1#{} hand\nper round"),+T("Recyclomancy"), T("Permanently\ngain {C:mult}+#1#{} discard\neach round"),+T("Tarot Tycoon"), T("{C:tarot}Tarot{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop"),+T("Planet Tycoon"), T("{C:planet}Planet{} cards appear\n{C:attention}#1#X{} more frequently\nin the shop"),+T("Money Tree"), T("Raise the cap on\ninterest earned in\neach round to {C:money}$#1#{}"),+T("Antimatter"), T("{C:dark_edition}+1{} Joker Slot"),+T("Illusion"), T("{C:attention}Playing cards{} in shop\nmay have an {C:attention}Enhancement{},\n{C:dark_edition}Edition{}, and/or a {C:attention}Seal{}"),+T("Petroglyph"), T("{C:attention}-#1#{} Ante,\n{C:mult}-#1#{} discard\neach round"),+T("Retcon"), T("Reroll Boss Blind\n{C:attention}unlimited{} times,\n{C:money}$#1#{} per roll"),+T("Palette"), T("{C:attention}+#1#{} hand size"),+T("Uncommon Tag"), T("Shop has a free\n{C:green}Uncommon Joker"),+T("Rare Tag"), T("Shop has a free\n{C:mult}Rare Joker"),+T("Negative Tag"), T("Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Negative"),+T("Foil Tag"), T("Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Foil"),+T("Holographic Tag"), T("Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Holographic"),+T("Polychrome Tag"), T("Next base edition shop\nJoker is free and\nbecomes {C:dark_edition}Polychrome"),+T("Investment Tag"), T("After defeating\nthe Boss Blind,\ngain {C:money}$#1#"),+T("Voucher Tag"), T("Adds one {C:attention}Voucher\nto the next shop"),+T("Boss Tag"), T("Rerolls the\n{C:attention}Boss Blind"),+T("Standard Tag"), T("Gives a free\n{C:attention}Mega Standard Pack"),+T("Charm Tag"), T("Gives a free\n{C:tarot}Mega Arcana Pack"),+T("Meteor Tag"), T("Gives a free\n{C:planet}Mega Celestial Pack"),+T("Buffoon Tag"), T("Gives a free\n{C:attention}Mega Buffoon Pack"),+T("Handy Tag"), T("Gives {C:money}$#1#{} per played\n{C:chips}hand{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive})"),+T("Garbage Tag"), T("Gives {C:money}$#1#{} per unused\n{C:mult}discard{} this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive})"),+T("Ethereal Tag"), T("Gives a free\n{C:spectral}Spectral Pack"),+T("Coupon Tag"), T("Initial cards and\nbooster packs in next\nshop are free"),+T("Double Tag"), T("Gives a copy of the\nnext selected {C:attention}Tag{}\n{C:attention}Double Tag excluded"),+T("Juggle Tag"), T("{C:attention}+#1#{} hand size\nnext round"),+T("D6 Tag"), T("Rerolls in next shop\nstart at {C:money}$0"),+T("Top-up Tag"), T("Create up to {C:attention}#1#\n{C:chips}Common{} Jokers\n{C:inactive}(Must have room)"),+T("Speed Tag"), T("Gives {C:money}$#1#{} per skipped\nBlind this run\n{C:inactive}(Will give {C:money}$#2#{C:inactive})"),+T("Orbital Tag"), T("Upgrade {C:attention}#1#\nby {C:attention}#2# levels"),+T("Economy Tag"), T("Doubles your money\n{C:inactive}(Max of {C:money}$#1#{C:inactive})"),+T("Small Blind"), "",+T("Big Blind"), "",+T("The Ox"), T("Playing a #1#\nsets money to $0"),+T("The House"), T("First hand is\ndrawn face down"),+T("The Club"), T("All Club cards\nare debuffed"),+T("The Fish"), T("Cards drawn face down\nafter each hand played"),+T("The Window"), T("All Diamond cards\nare debuffed"),+T("The Hook"), T("Discards 2 random\ncards per hand played"),+T("The Manacle"), T("-1 Hand Size"),+T("The Wall"), T("Extra large blind"),+T("The Wheel"), T(" in 7 cards get\ndrawn face down"),+T("The Arm"), T("Decrease level of\nplayed poker hand"),+T("The Psychic"), T("Must play 5 cards"),+T("The Goad"), T("All Spade cards\nare debuffed"),+T("The Water"), T("Start with\n0 discards"),+T("The Serpent"), T("After Play or Discard,\nalways draw 3 cards"),+T("The Pillar"), T("Cards played previously\nthis Ante are debuffed"),+T("The Eye"), T("No repeat hand\ntypes this round"),+T("The Mouth"), T("Play only 1 hand\ntype this round"),+T("The Plant"), T("All face cards\nare debuffed"),+T("The Needle"), T("Play only 1 hand"),+T("The Head"), T("All Heart cards\nare debuffed"),+T("The Tooth"), T("Lose $1 per\ncard played"),+T("The Mark"), T("All face cards are\ndrawn face down"),+T("The Flint"), T("Base Chips and\nMult are halved"),+T("Crimson Heart"), T("One random Joker\ndisabled every hand"),+T("Cerulean Bell"), T("Forces 1 card to\nalways be selected"),+T("Amber Acorn"), T("Flips and shuffles\nall Joker cards"),+T("Verdant Leaf"), T("All cards debuffed\nuntil 1 Joker sold"),+T("Violet Vessel"), T("Very large blind"),+T("Bonus Card"), "",+T("Mult Card"), T("{C:mult}+#1#{} Mult"),+T("Wild Card"), T("Can be used\nas any suit"),+T("Glass Card"), T("{X:mult,C:white} X#1# {} Mult\n{C:green}#2# in #3#{} chance to\ndestroy card"),+T("Steel Card"), T("{X:mult,C:white} X#1# {} Mult\nwhile this card\nstays in hand"),+T("Stone Card"), T("{C:chips}+#1#{} Chips\nno rank or suit"),+T("Gold Card"), T("{C:money}$#1#{} if this\ncard is held in hand\nat end of round"),+T("Lucky Card"), T("{C:green}#1# in #3#{} chance\nfor {C:mult}+#2#{} Mult\n{C:green}#1# in #5#{} chance\nto win {C:money}$#4#"),+T("Foil"), T("{C:chips}+#1#{} chips"),+T("Holographic"), T("{C:mult}+#1#{} Mult"),+T("Polychrome"), T("{X:mult,C:white} X#1# {} Mult"),+T("Negative"), T("{C:dark_edition}+#1#{} Joker slot"),+T("Gold Seal"), T("Earn {C:money}$3{} when this\ncard is played\nand scores"),+T("Red Seal"), T("Retrigger this\ncard {C:attention}1{} time"),+T("Blue Seal"), T("Creates the {C:planet}Planet{} card\nfor final played {C:attention}poker hand{}\nof round if {C:attention}held{} in hand\n{C:inactive}(Must have room)"),+T("Purple Seal"), T("Creates a {C:tarot}Tarot{} card\nwhen {C:attention}discarded\n{C:inactive}(Must have room)"),+T("Arcana Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:tarot} Tarot{} cards to\nbe used immediately"),+T("Jumbo Arcana Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:tarot} Tarot{} cards to\nbe used immediately"),+T("Mega Arcana Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:tarot} Tarot{} cards to\nbe used immediately"),+T("Celestial Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:planet} Planet{} cards to\nbe used immediately"),+T("Jumbo Celestial Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:planet} Planet{} cards to\nbe used immediately"),+T("Mega Celestial Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:planet} Planet{} cards to\nbe used immediately"),+T("Standard Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Playing{} cards to\nadd to your deck"),+T("Jumbo Standard Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Playing{} cards to\nadd to your deck"),+T("Mega Standard Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Playing{} cards to\nadd to your deck"),+T("Buffoon Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Joker{} cards"),+T("Jumbo Buffoon Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Joker{} cards"),+T("Mega Buffoon Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:attention} Joker{} cards"),+T("Spectral Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:spectral} Spectral{} cards to\nbe used immediately"),+T("Jumbo Spectral Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:spectral} Spectral{} cards to\nbe used immediately"),+T("Mega Spectral Pack"), T("Choose {C:attention}#1#{} of up to\n{C:attention}#2#{C:spectral} Spectral{} cards to\nbe used immediately"),+T("Red Deck"), T("{C:mult}+#1#{} discard\nevery round"),diff --git a/games/balatro/src/ui.c b/games/balatro/src/ui.cindex 681351a1..2f4394fa 100644--- a/games/balatro/src/ui.c+++ b/games/balatro/src/ui.c@@ -15,7 +15,7 @@ vis_t V;/* ------------------------------------------------------------ popups */typedef struct {- char txt[20];+ char txt[NP_TEXT_EXTRA ? 40 : 20];uint8_t col, tgt;uint16_t id;int16_t t, life;@@ -149,11 +149,11 @@ static void add_popup(const ev_t *e) {popup_t *p = &pops[slot];const char *src = (e->txt[0] == 1 && !e->txt[1]) ? e->p.s : e->txt;int n = 0;- while (src[n] && n < 15) p->txt[n] = src[n], n++;+ while (src[n] && n < (NP_TEXT_EXTRA ? 31 : 15)) p->txt[n] = src[n], n++;p->txt[n] = 0;if (e->c & 1) {- static const char suf[] = " Mult";- for (int k = 0; suf[k] && n < 19; k++) p->txt[n++] = suf[k];+ static const char suf[] = T(" Mult");+ for (int k = 0; suf[k] && n < (int)sizeof p->txt - 1; k++) p->txt[n++] = suf[k];p->txt[n] = 0;}p->col = e->b, p->tgt = e->t, p->id = e->a;@@ -463,7 +463,7 @@ void draw_sidebar(void) {g_rrect(SB_X, 3, SB_W, 62, 4, C_RED);g_rrect(SB_X + 2, 5, SB_W - 4, 58, 3, SB_BLACK);g_sprite(SPR_SHOP, SB_X + (SB_W - 72) / 2, 7, 0, 256);- g_text("Improve your run!", SB_X + SB_W / 2, 50, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("Improve your run!"), SB_X + SB_W / 2, 50, F_LABEL | T_CENTER, C_WHITE);} else if (in_round) {int b = R.blind;cell(SB_X, 3, SB_W, 62, SB_BLACK);@@ -475,20 +475,20 @@ void draw_sidebar(void) {/* score at least / chips / to earn */int bx = SB_X + 31, bw = SB_W - 33;cell(bx, 23, bw, 38, SB_BLACK);- g_text("Score at least", bx + bw / 2, 26, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("Score at least"), bx + bw / 2, 26, F_LABEL | T_CENTER, C_WHITE);char n[24];int f = num_fit(n, R.blind_chips, bw - 19, T_LARGE);int tw = g_textw(n, f) + 14, x0 = bx + (bw - tw) / 2;g_sprite(SPR_CHIP, x0, 36, 0, 256);g_text(n, x0 + 14, 36 + (11 - g_cap(f) + 1) / 2, f | T_SHADOW, C_RED);- label_dollars("to earn", blind_info[b].dollars, bx + bw / 2, 51, bw - 4);+ label_dollars(T("to earn"), blind_info[b].dollars, bx + bw / 2, 51, bw - 4);} else {cell(SB_X, 3, SB_W, 62, SB_BLACK);- g_text_box("Choose your\nnext Blind", SB_X, 3, SB_W, 62, F_NAME, C_WHITE);+ g_text_box(T("Choose your\nnext Blind"), SB_X, 3, SB_W, 62, F_NAME, C_WHITE);}/* round score (y 68..88) */cell(SB_X, 68, SB_W, 21, cellc);- g_text("Round\nscore", SB_X + 13, 70, F_LABEL | T_CENTER, C_WHITE);+ g_text(T("Round\nscore"), SB_X + 13, 70, F_LABEL | T_CENTER, C_WHITE);g_rrect(SB_X + 25, 70, SB_W - 27, 17, 3, fill);{char n[24];@@ -503,7 +503,7 @@ void draw_sidebar(void) {if (V.hand_name >= 0) {int lv = levelup_t > 0 ? (levelup_t < levelup_len * 6 / 10 ? levelup_level : levelup_old) : V.hand_level;const char *hn = hand_names[V.hand_name];- char *o = str_cat(t, "lvl.");+ char *o = str_cat(t, T("lvl."));fmt_int(o, lv);int lw = g_textw(t, F_LABEL);/* long names are narrower, as in the game (hand_text_UI_set) */@@ -529,10 +529,10 @@ void draw_sidebar(void) {/* buttons and counters (y 143..235): two columns ending on one line */int y0 = 143, lw = 30, rx = SB_X + lw + 2, rw = SB_W - lw - 2, hw = 30, dw = rw - hw - 2;cell(SB_X, y0, lw, 45, C_RED);- g_text_box("Run\nInfo", SB_X, y0, lw, 45, F_LABEL, C_WHITE);+ g_text_box(T("Run\nInfo"), SB_X, y0, lw, 45, F_LABEL, C_WHITE);cell(SB_X, y0 + 48, lw, 45, C_ORANGE);- g_text_box("Options", SB_X, y0 + 48, lw, 45, F_LABEL, C_WHITE);- static const char *const lab[4] = {"Hands", "Discards", "Ante", "Round"};+ g_text_box(T("Options"), SB_X, y0 + 48, lw, 45, F_LABEL, C_WHITE);+ static const char *const lab[4] = {T("Hands"), T("Discards"), T("Ante"), T("Round")};for (int k = 0; k < 4; k++) {int x = k & 1 ? rx + hw + 2 : rx, w = k & 1 ? dw : hw, y = k < 2 ? y0 : y0 + 64;cell(x, y, w, 29, cellc);diff --git a/games/balatro/tools/mkdata.py b/games/balatro/tools/mkdata.pyindex 98f95f4a..9d5eb735 100644--- a/games/balatro/tools/mkdata.py+++ b/games/balatro/tools/mkdata.py@@ -6,7 +6,11 @@ Usage: mkdata.py PATH_TO_BALATRO_SOURCEDescriptions keep the game's wording and colours. Colour tags become thecontrol codes of src/gfx.h, and #n# placeholders become bytes 0x11+n-1, filled-in at run time."""+in at run time.++It also writes src/texts.h: the same texts, each marked for NumPlay's language+builds, in the game's own markup. Without Balatro's source at hand,+`mkdata.py --texts` writes it again from src/data.c."""import osimport reimport sys@@ -152,6 +156,90 @@ def cstr(s):return '"' + "".join(out) + '"'+# the markup again, for the codes (src/texts.h)+UNCODES = {"\x01": "{C:white}", "\x02": "{C:chips}", "\x03": "{C:mult}", "\x04": "{C:attention}",+ "\x05": "{C:money}", "\x06": "{C:green}", "\x07": "{C:inactive}", "\x08": "{C:tarot}",+ "\x09": "{C:planet}", "\x0B": "{C:spectral}", "\x0C": "{C:spades}", "\x0E": "{X:mult,C:white}",+ "\x0F": "{C:dark_edition}", "\x10": "{}"}+++def unconv(s):+ out = "".join(UNCODES.get(ch) or (f"#{ord(ch) - 0x10}#" if 0x11 <= ord(ch) <= 0x16 else ch) for ch in s)+ assert conv(out) == s, s+ return out+++def tstr(s):+ """a C string of the markup: newlines as \\n"""+ return '"' + s.replace("\\", "\\\\").replace('"', '\\"').replace("\n", "\\n") + '"'+++def write_texts(texts):+ """src/texts.h: (name, description) pairs, in the codes of data.c"""+ out = ["/* Generated by tools/mkdata.py: Balatro's names and descriptions, as in data.c, marked for NumPlay's",+ " language builds in the game's own markup ({C:mult} a colour up to {}, #1# a value; see conv()).",+ " tools/lang.py puts their translations in place (lang/<code>.txt), and tools/mktexts.py makes",+ " them output/texts.c, which those builds use instead of data.c's texts. Not compiled. */"]+ for name, desc in texts:+ d = unconv(desc)+ out.append(f"T({tstr(unconv(name))}), " + (f"T({tstr(d)})," if d else '"",'))+ open(os.path.join(ROOT, "src", "texts.h"), "w").write("\n".join(out) + "\n")+++def bpe(raw, codes):+ """byte pair encoding of byte strings (each ending with 0s): every code in turn stands for the+ most frequent pair. Returns the sequences and the pairs."""+ pairs = []+ seqs = [list(x) for x in raw]+ for code in codes:+ counts = {}+ for sq in seqs:+ for i in range(len(sq) - 1):+ if sq[i] and sq[i + 1]:+ counts[(sq[i], sq[i + 1])] = counts.get((sq[i], sq[i + 1]), 0) + 1+ if not counts:+ break+ best = max(counts, key=counts.get)+ if counts[best] < 3:+ break+ pairs.append(best)+ for k, sq in enumerate(seqs):+ out, i = [], 0+ while i < len(sq):+ if i + 1 < len(sq) and (sq[i], sq[i + 1]) == best:+ out.append(code)+ i += 2+ else:+ out.append(sq[i])+ i += 1+ seqs[k] = out+ return seqs, pairs+++def texts_from_data():+ """the (name, description) pairs of src/data.c, decoded"""+ c = open(os.path.join(ROOT, "src", "data.c")).read()+ def nums(name):+ m = re.search(name + r"\[[^]]*\](?:\[2\])? = \{(.*?)\};", c, re.S)+ return [int(x) for x in re.findall(r"\d+", m.group(1))]+ blob, flat, offs = nums("text_blob"), nums("text_pairs"), nums("text_off")+ pairs = [flat[i:i + 2] for i in range(0, len(flat), 2)]+ def expand(v):+ return [v] if v < 0x80 else expand(pairs[v - 0x80][0]) + expand(pairs[v - 0x80][1])+ out = []+ for o in offs:+ parts = []+ for _ in range(2):+ s = []+ while blob[o]:+ s += expand(blob[o])+ o += 1+ o += 1+ parts.append(bytes(s).decode("latin1"))+ out.append(tuple(parts))+ return out++TEXT_GET = r"""static char *expand(char *o, char *end, int c) {if (c < 0x80) {@@ -239,30 +327,7 @@ def main():# string blob, compressed with byte pair encoding (codes 0x80..0xFF)raw = [(r[2] + "\0" + r[3] + "\0").encode("latin1") for r in rows]- pairs = []- seqs = [list(x) for x in raw]- for code in range(0x80, 0x100):- counts = {}- for sq in seqs:- for i in range(len(sq) - 1):- if sq[i] and sq[i + 1]:- counts[(sq[i], sq[i + 1])] = counts.get((sq[i], sq[i + 1]), 0) + 1- if not counts:- break- best = max(counts, key=counts.get)- if counts[best] < 3:- break- pairs.append(best)- for k, sq in enumerate(seqs):- out, i = [], 0- while i < len(sq):- if i + 1 < len(sq) and (sq[i], sq[i + 1]) == best:- out.append(code)- i += 2- else:- out.append(sq[i])- i += 1- seqs[k] = out+ seqs, pairs = bpe(raw, range(0x80, 0x100))blob = b"".join(bytes(x) for x in seqs)offs = []pos = 0@@ -296,7 +361,8 @@ def main():h.append("extern const char *const hand_names[12];")h.append("#endif")c = ["/* Generated by tools/mkdata.py from Balatro's game data (LocalThunk): do not edit. */",- '#include "data.h"', ""]+ '#include "data.h"', '#include "../../common/np_text.h"', "",+ "/* (NumPlay's language builds have their own texts: output/texts.c, from texts.h) */", "#if !NP_TEXT_EXTRA"]c.append("const uint8_t text_blob[%d] = {" % len(blob))for i in range(0, len(blob), 24):c.append(" " + ",".join(str(v) for v in blob[i:i + 24]) + ",")@@ -304,6 +370,7 @@ def main():c.append("const uint8_t text_pairs[128][2] = {" + ",".join("{%d,%d}" % p for p in pairs) + "};")c.append(TEXT_GET)c.append("const uint16_t text_off[N_TEXTS] = {" + ",".join(map(str, offs)) + "};")+ c.append("#endif")c.append("const joker_info_t joker_info[N_JOKER] = {")for o, k, v in jokers:c.append(f" {{{v['rarity']}, {v['cost']}, {1 if v.get('blueprint_compat') else 0}}}, /* {v['name']} */")@@ -319,10 +386,14 @@ def main():f"{{{v.get('min_ante') or 0}}}" for o, k, v in tags) + "};")hands = ["Flush Five", "Flush House", "Five of a Kind", "Straight Flush", "Four of a Kind", "Full House", "Flush","Straight", "Three of a Kind", "Two Pair", "Pair", "High Card"]- c.append("const char *const hand_names[12] = {" + ",".join(cstr(misc["poker_hands"][x]) for x in hands) + "};")+ c.append("const char *const hand_names[12] = {" + ",".join("T(%s)" % cstr(misc["poker_hands"][x]) for x in hands) + "};")open(os.path.join(ROOT, "src", "data.h"), "w").write("\n".join(h) + "\n")open(os.path.join(ROOT, "src", "data.c"), "w").write("\n".join(c) + "\n")+ write_texts([(r[2], r[3]) for r in rows])print("texts", len(rows), "bytes", pos, "(raw", sum(len(x) for x in raw), ") pairs", len(pairs))if __name__ == "__main__":- main()+ if sys.argv[1:] == ["--texts"]:+ write_texts(texts_from_data())+ else:+ main()diff --git a/games/balatro/tools/mktexts.py b/games/balatro/tools/mktexts.pynew file mode 100644index 00000000..2e7d30e6--- /dev/null+++ b/games/balatro/tools/mktexts.py@@ -0,0 +1,94 @@+#!/usr/bin/env python3+"""Balatro's texts in NumPlay's language builds: output/texts.c from src/texts.h.++Usage: mktexts.py src/texts.h out.c++tools/lang.py has put each text's translation in place in texts.h, written in the+game's markup like the English ones; they become the same control codes as in+data.c (mkdata.py's conv()) and are compressed the same way, by byte pairs, with+more of them (UTF-8 letters use many bytes): the bytes the texts use are numbered+from 1, the pairs take the numbers after them, and a number from ESC0 on takes+two bytes. A pair is two such numbers, 12 bits each. The C defines what data.c+does in the English build: text_off and text_get()."""+import os+import re+import sys++sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+from mkdata import bpe, conv # noqa: E402++N_TEXTS = 320+ESC0 = 252+ENTRY = re.compile(r'T\(\s*"((?:[^"\\]|\\.)*)"\s*\)|"((?:[^"\\]|\\.)*)"')+++def unescape(s):+ return re.sub(r'\\(.)', lambda m: "\n" if m.group(1) == "n" else m.group(1), s)+++def main():+ src = open(sys.argv[1], encoding="utf-8").read()+ src = re.sub(r"/\*.*?\*/", "", src, flags=re.S)+ texts = [unescape(m.group(1) if m.group(1) is not None else m.group(2)) for m in ENTRY.finditer(src)]+ assert len(texts) == 2 * N_TEXTS, len(texts)+ raw = [(conv(texts[i]) + "\0" + conv(texts[i + 1]) + "\0").encode("utf-8") for i in range(0, len(texts), 2)]+ # the bytes the texts use become 1.. (0 ends a text), the pairs the numbers after them+ lit = sorted({b for r in raw for b in r} - {0})+ to = {b: k + 1 for k, b in enumerate(lit)}+ seqs, pairs = bpe([[to[b] if b else 0 for b in r] for r in raw], range(len(lit) + 1, ESC0 + 256 * (256 - ESC0)))+ blob, offs = bytearray(), []+ for sq in seqs:+ offs.append(len(blob))+ for v in sq:+ blob += bytes([v]) if v < ESC0 else bytes([ESC0 + (v - ESC0) // 256, (v - ESC0) % 256])+ pos = len(blob)+ packed = bytearray()+ for a, b in pairs:+ packed += bytes([a & 255, a >> 8 | (b & 15) << 4, b >> 4])+ c = ["/* Made by tools/mktexts.py from src/texts.h (translated): Balatro's texts in this language. */",+ '#include "../src/data.h"', ""]+ c.append("static const uint8_t lang_blob[%d] = {" % len(blob))+ for i in range(0, len(blob), 24):+ c.append(" " + ",".join(str(v) for v in blob[i:i + 24]) + ",")+ c.append("};")+ c.append("#define NLIT %d /* 1..NLIT: these bytes; after them, pairs */" % len(lit))+ c.append("#define ESC0 %d /* from here on, a number takes two bytes */" % ESC0)+ c.append("static const uint8_t lang_lit[NLIT] = {" + ",".join(map(str, lit)) + "};")+ c.append("static const uint8_t lang_pairs[%d] = {" % max(1, len(packed)))+ for i in range(0, len(packed), 24):+ c.append(" " + ",".join(str(v) for v in packed[i:i + 24]) + ",")+ c.append("};")+ c.append(r"""+static char *expand(char *o, char *end, int c) {+ if (c <= NLIT) {+ if (o < end) *o++ = (char)lang_lit[c - 1];+ return o;+ }+ const uint8_t *p = lang_pairs + 3 * (c - NLIT - 1);+ o = expand(o, end, p[0] | (p[1] & 15) << 8);+ return expand(o, end, p[1] >> 4 | p[2] << 4);+}++const char *text_get(int idx, int part) {+ static char bufs[4][320];+ static int k;+ char *b = bufs[k = (k + 1) & 3], *o = b;+ const uint8_t *p = lang_blob + text_off[idx];+ for (;;) {+ int c = *p++;+ if (c >= ESC0) c = ESC0 + (c - ESC0) * 256 + *p++;+ else if (!c && part--) continue; /* the name skipped */+ else if (!c) break;+ if (!part) o = expand(o, b + sizeof bufs[0] - 1, c);+ }+ *o = 0;+ return b;+}+""")+ c.append("const uint16_t text_off[N_TEXTS] = {" + ",".join(map(str, offs)) + "};")+ open(sys.argv[2], "w").write("\n".join(c) + "\n")+ print(f"{sys.argv[2]}: {len(texts) // 2} texts, {pos} bytes ({sum(len(r) for r in raw)} before), {len(pairs)} pairs")+++if __name__ == "__main__":+ main()