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

Always run effect functions before giving base item #2189

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

fenhl
Copy link
Collaborator

@fenhl fenhl commented Mar 10, 2024

The dispatch_item function, which is used by pot/crate/freestanding/etc as well as gold skulltula locations, first calls z64_GiveItem and then call_effect_function, while try_pending_item necessarily has to work the other way around. This PR fixes this inconsistency by changing the order of calls in dispatch_item.

Fixes #2184.

@fenhl fenhl added Type: Bug Something isn't working Component: ASM/C Changes some internals of the ASM/C libraries Status: Needs Review Someone should be looking at it Status: Needs Testing Probably should be tested labels Mar 10, 2024
@fenhl fenhl removed the Status: Needs Testing Probably should be tested label Mar 23, 2024
@cjohnson57 cjohnson57 merged commit 05006ae into OoTRandomizer:Dev Apr 22, 2024
3 checks passed
@fenhl fenhl deleted the item-effect-consistency branch April 22, 2024 01:59
@fenhl fenhl added this to the next milestone Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: ASM/C Changes some internals of the ASM/C libraries Status: Needs Review Someone should be looking at it Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collected heart pieces getting reset to "0" when picking up freestanding heart containers at 18/19 hearts
2 participants