Skip to content

Fix weird egg logic #5382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Apr 10, 2025

There were three problems with weird egg logic. First, RAND_INF_WEIRD_EGG was getting set when talking to Malon, even if weird egg was shuffled (availability change). This would falsely show things past Talon as accessible after talking to Malon but without the egg. Second was that RAND_INF_WEIRD_EGG wasn't getting set if the egg was collected elsewhere due to shuffling it. These were both solved by removing the eventchkinf trigger for it from RandomizerOnFlagSetHandler() and moving it to the trade item give processing in z_parameter instead.

The third was that logic was showing "Song from Impa" as accessible before getting the egg when it wasn't shuffled because the entrance access was checking for the RSK not being set, which was redundant because of ApplyItemEffect() still being triggered when the egg was vanilla, so CanUse(RG_WEIRD_EGG) there covers both cases, so this removes that RSK check.

Build Artifacts

… happens whenever you get the egg.

Remove RSK check for garden entrance because access is still handled by `CanUse(RG_WEIRD_EGG)`.
@Pepe20129
Copy link
Contributor

Is RAND_INF_WEIRD_EGG the flag for the item? I thought it was the one for the check

@Malkierian
Copy link
Contributor Author

Malkierian commented Apr 10, 2025

No, the check still uses EVENTCHKINF_OBTAINED_POCKET_EGG for whatever's on Malon. Pretty sure that flag is misnamed.

@leggettc18
Copy link
Contributor

I'll maintain my approval of this PR because I think this is a pre-existing issue, but I have noticed during testing this that if you shuffle the weird egg and use it to move Talon, you lose access to the HC Malon Egg check. Now I did use Save Editor to hack in the Cucco so if that does something weird that isn't possible in normal gameplay please do let me know. I don't think we necessarily need to fix that here though. Might require either source intrusions or new VB Hooks to make it work properly.

@leggettc18
Copy link
Contributor

As far as seed-gen logic goes everything here works great though.

@leggettc18
Copy link
Contributor

I'll merge this for now, the Malon behavior isn't caused by this anyway and fixing it should be the job of a different PR.

@leggettc18 leggettc18 merged commit f0f2157 into HarbourMasters:develop-blair Apr 11, 2025
6 checks passed
@Malkierian Malkierian deleted the fix-weird-egg-logic branch April 11, 2025 21:13
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