Chocolate Die grand fix - #925
Open
Nanuzer0 wants to merge 7 commits into
Open
Conversation
fix event 6, fix double activation for some events, move booster pack activation to a separate function and remove a redundant patch
…olate Die - Hide blind skip and tags on Small/Big blind UI when ev_cry_choco2 is active - Hook G.FUNCS.skip_blind to prevent skipping via shortcuts - Remove broken legacy regex patch from spooky.toml - Add nil checks to chocolate_dice loc_vars, calculate, and remove_from_deck
- Fix redundant pseudoseed call in potion random_event generation - Prevent hand levels from being reduced below Level 1 - Fix UI level text during potion level-down animation to display -1 instead of +1
- Fix mult division not applying - Add a mult division message
…essed sticker crashes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR comprehensively fixes, restores, and polishes Chocolate Die, its events, and associated items/stickers.
Chocolate Die (
j_cry_chocolate_dice)[2, 10]to[1, 10]to re-enable Event 1.choco0): Temporarily commented out the unfinishedchoco0("Possible Events") tooltip box for now (due to Balatro engine limitations with interactive sub-tooltips on hover). Preserved the code in comments so a custom UI can re-enable it in the future.Event 1: Ghostly Possession, Ghost Joker (
j_cry_ghost), & Possessed Sticker (cry_possessed)j_cry_ghost:loc_vars.for i = #G.jokers.cards, 1, -1 do) when Ghost self-destructs with possessed Jokers to prevent table indexing crashes.Card:calculate_jokerwhere possessed cards calledcontext.callbackwithout checking if a callback was provided.cry_possessedsticker is properly applied and stripped during Ghost triggers.choco1:loc_varscrash by referencing registered centerG.P_CENTERS.j_cry_ghost.Event 2: Haunted House
Event 3: Witch's Brews
c_cry_potioninfo tooltip references.Event 4: Lunar Abyss
context.final_scoring_stepso Mult divides by the number of played face cards right after Jokers calculate.G.play).Event 5: Bloodsucker
{ remove = not SMODS.is_eternal(context.destroying_card) }) instead of manual dissolution event scheduling.Event 6: Please Take One
Cryptid.open_booster()helper and fixed trigger context (context.post_jokers and context.start_shop) so the free booster pack opens cleanly at the start of the shop without UI conflicts or double activations.Event 7: Festive Atmosphere
context.post_jokers and context.start_shopto prevent duplicate shop triggers.Event 8: Candy Rain
context.post_jokers and context.cash_outto prevent duplicate candy generation.General Improvements & Cleanup
spooky.toml.