Skip to content

Keysanity expansions - #113

Open
asherlh197 wants to merge 13 commits into
ootrando:nightlyfrom
asherlh197:keysanity-expansions
Open

asherlh197 wants to merge 13 commits into
ootrando:nightlyfrom
asherlh197:keysanity-expansions

Conversation

@asherlh197

Copy link
Copy Markdown
Contributor

Gerudo Fortress keysanity

  • Adds keysanity-style shuffling for Gerudo Fortress.
  • Currently requires gerudo_fortress: open.
  • All 4 Hideout small keys are shuffled into the pool.
  • Their original key-drop locations are replaced with normal shuffled items.
  • The first guard-key use still grants whatever item is shuffled onto the Member Card check.

Key rings

  • Adds key rings for all small-key dungeons, including Gerudo Fortress:
    • Forest Temple
    • Fire Temple
    • Water Temple
    • Spirit Temple
    • Shadow Temple
    • Bottom of the Well
    • Gerudo Training Ground
    • Ganon’s Castle
    • Thieves Hideout / Gerudo Fortress
  • Each ring gives the full correct key count for its dungeon when collected.
  • Replaced small keys are removed from the pool; the old key locations receive junk/filler unless one of them holds the ring.

Ring modes

Standard dungeons support all current modes:

  • all
  • count
  • selection
  • random

The Hideout ring is handled separately as a simple on/off toggle because it currently requires Open Fortress. It does not participate in the standard ring Count, Selection, or Random settings.

Placement rules

  • Key rings respect the chosen small-key scope:
    • dungeon: the ring stays in its own dungeon and is placed in an eligible chest that does not require that dungeon’s keys.
    • any_dungeon: the ring can appear anywhere inside a dungeon.
    • keysanity: the ring can appear anywhere.
    • vanilla small keys cannot be combined with rings.
  • The reachability guarantee is only that the ring is reachable without needing that ring’s own keys.
  • Rings can appear anywhere normal key items can be placed, including:
    • Chests
    • Ground pickup spots
    • Pots
    • Crates
    • Flying pots
    • Beehives
    • Rocks
    • Grass
    • Gold Skulltulas when skull shuffle is enabled
  • Gold Skulltula spots follow the same ring scope:
    • Own-dungeon scope: only GS in the matching dungeon.
    • Any-dungeon scope: any GS inside a dungeon.
    • Keysanity: any GS, overworld or dungeon.
    • The Hideout ring can go to any GS when enabled.

Compatibility

  • Uses setting numbers 204–208.
  • Existing frozen settings strings still decode correctly.
  • Old 143–147 strings are not re-encoded.
  • Inactive rings stay in their original logic item slots so existing pinned seeds and item IDs do not shift.
  • Resynced with upstream nightly while preserving all key-ring and Hideout behavior.

Testing

  • All key-ring modes and Hideout toggle combinations were tested.
  • All supported pickup spot types were tested in game.
  • Rings collect correctly from every location they can appear in.
  • Each ring grants the full correct key count for the proper dungeon.
  • Ring-off generation is unchanged from clean upstream nightly.

LocalTester and others added 13 commits November 22, 2026 12:15
Keep chest/gift checks on ordinary item flows, preserve ring identity for dropped rings, and support plandoed inactive rings.
The Hideout ring lives outside the standard RINGS catalog and is enabled only by hideout_key_rings with keysanity Hideout keys and an open fortress. It reuses the generated pickup, credit, and text machinery while Count/Selection/Random remain eight standard rings only.
Generate ring event AINBs from the player's game at build time

Remove checked in ring AINBs

Move settings under In Dev and mark them experimental

Move hideout placement rules into place_rules

Fix the ring shelf test and style findings
Standard key rings now follow shuffle_smallkeys: own dungeon, dungeon-only, or anywhere. Added regression tests for ring reachability without that ring's keys and for removing a ring's keys.
Resolve the nightly merge while keeping the custom key-ring behavior intact: Hideout remains a separate manual toggle, inactive ring items stay in their original logic slots, and upstream pickup-tier runtime handling is preserved. Verified with the full core suite (1727 passed, 0 failed, 6 ignored), a clean release build, and exact ring-off placement parity with upstream c179e4b.
Hideout keys have no entrance in the shuffle pool, so the key-fit check now ignores dungeons without a movable entrance. Adds a regression test for both Hideout-key scopes and verifies the reported settings string generates.
Code comments added by this branch are removed while behavior stays the same. Verified with a full core test run and the reported settings string.

This branch has not been deployed

No deployments
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