Skip to content

Local patches#185

Closed
DrLatBC wants to merge 2 commits intocoder:mainfrom
DrLatBC:local-patches
Closed

Local patches#185
DrLatBC wants to merge 2 commits intocoder:mainfrom
DrLatBC:local-patches

Conversation

@DrLatBC
Copy link
Copy Markdown

@DrLatBC DrLatBC commented Apr 18, 2026

asd

DrLatBC and others added 2 commits April 3, 2026 02:27
…re-entrancy

- utils/gamestate: detect SMODS editions via card.edition.key (e_holo/e_foil)
  and track win overlay state for unblocking play() after game win
- play: wait for win_overlay_dismissed before returning ROUND_EVAL; register
  on_game_over for loss detection via love.update (paused state workaround)
- sell: remove count_decreased check; use card_gone by sort_id to handle
  Invisible Joker spawning a replacement on sell
- rearrange: set card.rank, call set_ranks() and align_cards() for visual sync
- pack: add re-entrancy guard for Black Hole animations; fix pack-type inference
  using hand card count instead of first card set; add debug logging
- buy: same pack-type inference fix; add debug logging for pack buy stalls
- start: reset win overlay flags on new run; wrap setup_run in pcall; add
  delete_run + retry path when start_run fails
- discard: use trigger=immediate on completion event to survive brief pauses
Balatro stores The Idol's target card (rank+suit) on
G.GAME.current_round.idol_card, not on the joker itself, so clients
previously had no way to compute The Idol's X2 Mult accurately. Surface
it alongside ancient_suit using the same rank/suit enum normalization.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DrLatBC DrLatBC closed this Apr 18, 2026
@DrLatBC DrLatBC deleted the local-patches branch April 18, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant