Skip to content

Improve KZ hook#4732

Merged
Archez merged 5 commits intoHarbourMasters:developfrom
Pepper0ni:FixOnlyKZ
Dec 20, 2024
Merged

Improve KZ hook#4732
Archez merged 5 commits intoHarbourMasters:developfrom
Pepper0ni:FixOnlyKZ

Conversation

@Pepper0ni
Copy link
Contributor

@Pepper0ni Pepper0ni commented Dec 19, 2024

This time with no decomp changes. Fixes #4528

Build Artifacts

UIWidgets::PaddedEnhancementCheckbox("Early Eyeball Frog", CVAR_ENHANCEMENT("EarlyEyeballFrog"), true, false);
UIWidgets::Tooltip("Restores a bug from NTSC 1.0/1.1 that allows you to obtain the eyeball frog from King Zora instead of the Zora Tunic by holding shield.");
UIWidgets::PaddedEnhancementCheckbox("Early Eyeball Frog", CVAR_ENHANCEMENT("EarlyEyeballFrog"), true, false, IS_RANDO,
"This glitch is non-functional in randomiser due to changes in how the items are given.");
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're going to have this forced off and untoggleable in rando, we need to have applicable IS_RANDO checks anywhere the CVar is checked in code to make sure the code paths evaluate properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an awkward situation where I didn't choose to disable the setting, but I noticed that it simply wasn't working or worth the mess to fix so disabled the setting for expectations reasons.

Ironically, if I had to spread a ton of extra checks around code that is already questionably invasive, I would probably end up making the mess needed to implement it instead as you've removed the only clean solution!

Copy link
Contributor

Choose a reason for hiding this comment

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

LOL, I'm just saying, only disabling the checkbox during rando isn't really a solution since people could just set it before loading a seed and it would still be enabled after entering a rando save.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am aware, it would just do nothing in that case because the hook execution breaks the glitch.

Pepper0ni and others added 2 commits December 20, 2024 15:34
Co-authored-by: Archez <Archez@users.noreply.github.com>
Co-authored-by: Archez <Archez@users.noreply.github.com>
@Archez Archez merged commit c17b55b into HarbourMasters:develop Dec 20, 2024
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.

Not able to turn in Prescription in Rando when "Early Eyeball Frog" is enabled

3 participants