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

Fix: Medi-Goron not selling the correct item #2206

Merged

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Dec 18, 2022

Medigoron has two functions that hand out the proper sale item: the main choice func, and then a second func that gets called every frame until the rupees are ready to be taken. This second func also contains the same item give logic, but since the main function already set the randomizer inf flag, it then gives out the giants knife.

I adjusted the two functions to not set the randomizer inf flag until the rupees are ready to be taken, this should fix both scenarios of the item being handed out.

I also noticed that medi-goron would repeatedly sell giants knifes even if you have a non-broken knife, and would also prioritize fixing a broken knife over the randomizer item. I rearranged the logic so that he will always prefer to give you the randomizer item, then properly handle broken/non-broken knife prompts.

Fixes #2205

Build Artifacts

@briaguya-ai briaguya-ai merged commit 51f3e37 into HarbourMasters:develop-bradley Dec 19, 2022
@Archez Archez deleted the fix-medi-goron-sale branch December 19, 2022 01:21
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.

None yet

3 participants