Skip to content

Underground Ruins: fix hidden door puzzle flow#24

Open
jotacarma90 wants to merge 1 commit into
jneb802:masterfrom
jotacarma90:fix/underground-ruins-door-stays-open
Open

Underground Ruins: fix hidden door puzzle flow#24
jotacarma90 wants to merge 1 commit into
jneb802:masterfrom
jotacarma90:fix/underground-ruins-door-stays-open

Conversation

@jotacarma90
Copy link
Copy Markdown

#Description

  • Initialize() now handles load-time door state correctly: if the puzzle is already solved, the door opens immediately; otherwise the puzzle is re-initialized and the door is reset closed.
  • GenerateSolution() is deterministic and always requires all 8 cores (1,1,1,1,1,1,1,1), removing random/unclear puzzle states.
  • OnSwitchUse() is the solve path: it validates the item stands, sets solved state, and opens the door only when the full correct setup is present.
  • Direct door bypass is blocked with a Door.Interact Harmony prefix (PuzzleDoorInteractPatch), allowing interaction only when the puzzle has been solved.
  • ResetDoorState() writes ZDOVars.s_state = 0 for unsolved initialization, ensuring closed-door behavior until a valid solve occurs.
  • Lever interaction text is explicitly set to include $KEY_Use (Submit Offering), so the interaction prompt is consistently visible.

Testing

Captura de pantalla 2026-02-17 223609 Captura de pantalla 2026-02-17 223657

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