Skip to content

Conversation

@Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Mar 12, 2024

This PR had one main goal: prevent the trackers from spoiling dungeon MQ status prematurely. To accomplish this, I persisted areasSpoiled in the check tracker, then used functions referencing that in the item tracker to unify the point of spoiling across the trackers. I then set it up to spoil dungeons only on specific entrances that have obvious, immediate visual cues. Otherwise, they rely on the dungeon map or collecting the first check in a dungeon. The max key counts are hidden until the dungeon is registered as spoiled.

This also adds a light yellow color to the dungeon abbreviations if they're known to be vanilla, to differentiate from unspoiled dungeons.

Entrances that spoil: Deku Tree front, Dodongo's Cavern back, Jabu Jabu both, Forest Temple front, Fire Temple both, Water Temple back, Spirit Temple front, Shadow Temple back, Ice Cavern, GTG, IGC front. From boss door (back) was added to account for dungeon chain possibilities in dev-rando.

Known issues: currently, RSK_RANDOM_MQ_DUNGEONS remains RO_MQ_DUNGEONS_SET_NUMBER even if selection was used (which should be spoiled), and RSK_MQ_DUNGEON_COUNT is never set above 0, so being set to 12 doesn't register either, both of which should be situations where they get spoiled right at the start. RO_MQ_DUNGEONS_NONE still works, though.

Build Artifacts

Tie personal notes saving to `OnExitGame()` to account for save scum resets.
Hide text input box (but not window) for personal notes when a save isn't loaded to prevent saving over a save's notes while in file select.
…le load..." text in file select (ease of positioning).
Add `IsAreaSpoiled` for tie-in to Item Tracker.
Add `SetAreaSpoiled` to unify bitmagic.
…st check collection.

Add light yellow color for vanilla dungeon abbreviations to match the purple for MQ.
Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall this seems reasonable, couple questions in there (it seems like a lot of the ternaries are backwards but maybe i'm not understanding the logic correctly)

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks almost ready to ship, couple last comments

@briaguya0 briaguya0 merged commit 19be6e9 into HarbourMasters:develop-macready Apr 19, 2024
@Malkierian Malkierian deleted the trackers-cleanup branch April 19, 2024 15:00
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.

3 participants