Skip to content
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

Frogs Ocarina Game Difficulty Options #3373

Merged

Conversation

A-Green-Spoon
Copy link
Contributor

@A-Green-Spoon A-Green-Spoon commented Nov 8, 2023

Adds instant win, an unlimited failure timer, and a slider to increase the frames before failure

Build Artifacts

Copy link
Contributor

@Malkierian Malkierian left a comment

Choose a reason for hiding this comment

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

Congratulations, you get to be the guinea pig for the new vanilla codeflow PR policy. We're going to start being more strict about notating changes to vanilla code, and yours was freshest in my mind.

soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c Outdated Show resolved Hide resolved
@Malkierian
Copy link
Contributor

Just noticed that you put the // Enhancement end one bracket too low on the first enhancement block.

@Malkierian
Copy link
Contributor

Malkierian commented Nov 10, 2023

Also, I was looking more closely at that code block, and I think I misunderstood some of what was going on there. I think some of the vanilla block needs to be reincorporated into the enhancement block. I think this

        else {
            this->ocarinaNoteIndex = 0;
            func_8010BD58(play, OCARINA_ACTION_FROGS);
            this->ocarinaNote = EnFr_GetNextNoteFrogSong(this->ocarinaNoteIndex);
            EnFr_CheckOcarinaInputFrogSong(this->ocarinaNote);
            this->actionFunc = EnFr_ContinueFrogSong;
        }

needs to be added back onto the if (CVarGetInteger("gInstantFrogsGameWin", 0)) block flow, as that does still need to run in the enhancement block if the instant win isn't on. My apologies XD. I knew there was supposed to be some code duplication. Should probably test that to make sure everything still works before the next commit.

Copy link
Contributor

@Malkierian Malkierian left a comment

Choose a reason for hiding this comment

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

Perfect. All aspects work (and the difference in multipliers is noticeable, but not overly much), and I'm satisfied with the format of the code now. Great work.

@Malkierian
Copy link
Contributor

Also, should we decide to change the default time for non-modified stuff, I think that should be a separate PR and doesn't need to hold this up.

@Pepper0ni
Copy link
Contributor

I want to review this and probably your other outstanding PRs soon and see if I can push them through, can you please resolve the conflicts.

@A-Green-Spoon
Copy link
Contributor Author

I want to review this and probably your other outstanding PRs soon and see if I can push them through, can you please resolve the conflicts.

Conflicts resolved and CVAR changes updated on all of my outstanding PRs!

Copy link
Contributor

@Pepper0ni Pepper0ni left a comment

Choose a reason for hiding this comment

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

LGTM.

It's not blocking, but I think a future PR that adds more granular options (especially for trying to simulate the intended time) and the option to use the random game you get on second play for the first play would make this even better.

Copy link
Contributor

@inspectredc inspectredc left a comment

Choose a reason for hiding this comment

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

Just a couple things here

soh/soh/SohMenuBar.cpp Outdated Show resolved Hide resolved
soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c Outdated Show resolved Hide resolved
soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c Outdated Show resolved Hide resolved
soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c Outdated Show resolved Hide resolved
soh/soh/SohMenuBar.cpp Outdated Show resolved Hide resolved
Oops, added

Co-authored-by: inspectredc <78732756+inspectredc@users.noreply.github.com>
@garrettjoecox garrettjoecox merged commit 63bc2af into HarbourMasters:develop May 10, 2024
6 checks passed
@A-Green-Spoon A-Green-Spoon deleted the feature/frog-game-difficulty branch February 4, 2025 23:26
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.

7 participants