Contexts - nicholassam6425/balatro-mods GitHub Wiki

Used in Card:calculate_joker. Defines what event is happening during the game.

  • context.open_booster (hallucination)
  • context.buying_card ()
  • context.selling_self (luchador, diet cola, invisible joker)
  • context.selling_card (campfire)
  • context.reroll_shop (flash card)
  • context.ending shop (perkeo)
  • context.skip_blind (throwback)
  • context.skipping_booster (red card)
  • context.playing_card_added (hologram)
  • context.first_hand_drawn (certificate, dna, trading card, chicot, madness, burglar, riff-raff, cartomancer, ceremonial dagger, marble joker)
  • context.destroying_card (sixth sense)
  • context.cards_destroyed (caino, glass joker)
  • context.remove_playing_cards (caino, glass joker)
  • context.using_consumeable (glass joker{hanged man only}, fortune teller, constellation)
  • context.debuffed_hand (matador)
  • context.pre_discard (burnt joker)
  • context.discard (ramen, trading card, castle, mail-in rebate, hit the road, green joker, yorick, faceless joker)
  • context.end_of_round (campfire, rocket, turtle bean, invisible joker, popcorn, egg, gift card, hit the road, gros michel, cavendish, mr. bones)
  • context.individual (I THINK this is used for scoring a card)
    • context.repetition (I THINK used for repetitions) (mime, sock and buskin, hanging chad, dusk, seltzer, hack)
    • context.cardarea (used to compare to G.hand (hand cards), G.play (cards in play), G.jokers (jokers))
      • G.hand (mime, shoot the moon, baron, reserved parking, raised fist)
      • G.play (hiker, lucky cat, wee joker, photograph, the idol, scary face, smiley face, golden ticket, scholar, walkie talkie, business card, fibonacci, even steven, odd todd, suit mult, rough gem, onyx agate, arrowhead, bloodstone, ancient joker, triboulet, sock and buskin, hanging chad, dusk, seltzer, hack)
      • G.joker
        • context.before (activate this BEFORE scoring this hand) (spare trousers, space joker, square joker, runner, midas mask, vampire, to do list, DNA, ride the bus, obelisk, green joker)
        • context.after (activate this AFTER scoring this hand) (ice cream, seltzer)
        • else {neither context.before nor context.after} (if your joker gives a bonus when scored, define it here) (loyalty card, seeing double, half joker, abstract joker, acrobat, mystic summit, misprint, banner, stuntman, matador, supernova, ceremonial dagger, 8 ball, vagabond, superposition, seance, flower pot, wee joker, castle, blue joker, erosion, square joker, runner, ice cream, stone joker, steel joker, bull, driver's license, blackboard, joker stencil, swashbuckler, joker, spare trousers, ride the bus, flash card, popcorn, green joker, fortune teller, gros michel, cavendish, red card, card sharp, bootstraps, caino, yorick)
  • context.game_over (mr. bones)
  • context.other_card (to reference the current card in scoring)
  • context.other_joker (to reference the current joker in scoring) (baseball card)