Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I found this a while ago when discussing why fairies would spawn from bushes but other items seemingly wouldn't. It turns out that the wrong actor parameter was being passed to the function which would call the actor spawn and so item00 actors were being spawned with undefined actor params, causing uncollectible and invisible items (due to the undefined nature) to spawn; fairies turned out to be handled as a special case before this function would get called.
May need more testing but I believe this path is only reachable from rustling the bushes, from memory the function's params need params & 0x8000 to be true. In the case of the bush the function param is 0x8020 and there is no defined item00 with actor param 0x20 (only the last part is taken into account). Regular items would be spawned with params in the range 0x8000 -> 0x8019 (0x8018 without chu drops), however, this would still be what I believe is 'unintended' behaviour.
Wasn't sure if this should be added to any enhancement presets so lmk if any are suitable.
Build Artifacts