FunctionTeam-Function icon

Function

Mathematical Function Jokers, expression operators, dynamic constants, and Convergence for Balatro.

CHANGELOG

Changelog

0.0.2-beta

Compared with the previous 0.0.1-beta release.

Expression parser and mathematics

  • Added implicit multiplication between adjacent operands and constants, including expressions such as 3π, 4Xe, φ2, and Xπ.
  • Added support for factorials applied after an implicit product, as well as chained factorial operators such as 6!!.
  • Added Gamma-function evaluation for non-integer factorials (for example, e! and (4Xe)!).
  • Improved large integer parsing by accumulating digits incrementally, avoiding an early conversion through a native Lua number when a Big/OmegaNum backend is available.
  • Added a native factorial path for integer values up to 170!, which does not require Amulet/Talisman.

Function operands and live values

  • Changed X to resolve to the previous completed Function expression result.
  • Pi now uses the level of the hand currently being scored, including when Pi appears inside an expression.
  • Phi now uses φ ^ current Ante.
  • Euler's number now uses e × consumables used this Ante (instead of the previous 2 + e × uses value).
  • Improved per-Ante consumable counting by using the game's total consumable-use counter when available and deduplicating repeated observations of the same consumed card.
  • Added a per-round payout guard for Euler's number so repeated end-of-round evaluation cannot pay multiple times in one round.

Compatibility and stability

  • Added Cryptid value-manipulation compatibility for numeric Function operands (digits, Pi, Phi, and e), supporting multiplicative (X), additive (+), and power (^) operations.
  • Prevented Function operator/effect Jokers and X from being passed through Cryptid's generic numeric-field manipulation.
  • Added a compatibility bridge for L'Hôpital scoring-source scanning, including nested scoring results and common context call shapes.
  • Improved Function card recognition when role metadata is missing by falling back to the j_func_ center key.
  • Improved state access when the game state is not initialized, and added explicit state fields for the previous expression result and consumable tracking.

Joker and localization adjustments

  • Pi, Phi, and Euler's number changed from Common to Uncommon rarity.
  • Numeric Joker descriptions now display their live values.
  • Updated Pi, Phi, e, factorial, Product, Sigma, Integral, and Fundamental Theorem descriptions to match the updated mechanics.
  • Renamed the displayed Product and Sigma symbols to text labels ("Product" and "Sigma").

Tests

  • Expanded tests.py with regression coverage for implicit multiplication, chained and Gamma factorial behavior, dynamic constants, current-hand Pi values, Cryptid operand manipulation, and end-of-round payout guarding.
  • The updated Python regression test script passes.

Notes

  • mod.json now identifies this packaged build as 0.0.2-beta.
  • Generated Python bytecode/cache files are not included in the release archive.