Skip to content

fix: Frog Hat seal render and Cerber-Glorp deck integration#9

Open
VX1D wants to merge 10 commits into1srscx4:mainfrom
VX1D:fix/bugs
Open

fix: Frog Hat seal render and Cerber-Glorp deck integration#9
VX1D wants to merge 10 commits into1srscx4:mainfrom
VX1D:fix/bugs

Conversation

@VX1D
Copy link
Copy Markdown

@VX1D VX1D commented Mar 7, 2026

Bug fixes:

  • Frog Hat: Fixed seal propagation render (set_seal with nil,true args)
  • Cerber: Added integration with Glorp joker card creation
  • Cerber: Added integration with Glorp deck card creation
  • Ensures 2s created by Glorp effects properly become Negative

Files changed:

  • content/objects/jokers.lua (includes merged j_cerber)
  • content/objects/decks.lua

VX1D added 7 commits March 7, 2026 19:26
Bug fixes:

1. Frog Hat (content/objects/jokers.lua line 358-360):
   - Fixed seal propagation not rendering visually
   - Changed: set_seal(seal) -> set_seal(seal, nil, true)
   - The nil, true params trigger immediate visual update

2. Glorp deck (content/objects/decks.lua lines 77-90):
   - Added Cerber joker integration
   - When Glorp deck creates cards, checks if j_cerber exists
   - If Cerber is present and card is rank 2, applies Negative edition
   - Uses inline check (no dependency on utility modules)

Testing:
- Verify Frog Hat seal propagation shows visually
- Verify 2s from Glorp deck become Negative with Cerber active
Add nil-safe context and pool checks across jokers, enhancements, suit, blind, and editions to reduce runtime crashes from missing game state tables. Keep probability and scoring-hand operations bounded and defensive without changing intended gameplay flow.

(cherry picked from commit 69496b56b9881daaa3d1cf4aca3ffb13b8f4770c)
Replace strict assert with soft warning for Lovely patch detection to prevent crash when Lovely isn't properly loaded.

(cherry picked from commit 4b8c04f3add1479a5102963a9ebb7e79fdaacd93)
Add safety guards to:
- hooks.lua: jokers.cards iteration in open_booster
- tags.lua: G.CONTROLLER.locks access in both tag apply functions
- modules/hooks/general.lua: jokers.cards check in draw_card hook

Prevents crashes when game areas are not yet initialized.

(cherry picked from commit 9128a9defb8faa6ce8c49854c539f3c1f3d5defb)
Fix j_vedalsdrink2 description typo (remove extra 'equal' word)

Remove 9 commented-out sendDebugMessage calls from handtype.lua

(cherry picked from commit 176638e0decd79f4744858c64404a9585f0ee89e)
…oldfish hook, capitalize Neuratro in booster text
VX1D added 3 commits March 23, 2026 21:03
Io, Europa, Ganymede and Callisto borrow c_mercury's description which uses
{V:1} for the hand level colour. Added loc_vars so the colours table is
always provided, preventing the nil index crash on tooltip hover.
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