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

Make it possible to drop any item from trees #7

Merged
merged 2 commits into from
Feb 28, 2022

Conversation

mike8699
Copy link
Contributor

Builds on top of #6 to allowing a tree to drop any item. Note to do this, you must set the drop_id in the tree's ZMB entry to the item id you want to drop OR'd with 0x8000 (i.e. the 16-bit item_id you want with its MSB set).

Unfortunately I had to use assembly for this, as I needed to reuse existing code to do this. However, with the exception of one line, all of the assembly is based on existing routines, so we can treat it more or less as a black box.

@mike8699 mike8699 changed the base branch from main to extend-rupy-npc January 31, 2022 02:21
@mike8699 mike8699 changed the base branch from extend-rupy-npc to main February 6, 2022 18:55
@lunarsoap5
Copy link
Contributor

Looks good to me. I'd say we go ahead and approve this and pull it in and can make any changes that are needed.

Copy link
Contributor

@lunarsoap5 lunarsoap5 left a comment

Choose a reason for hiding this comment

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

reference my comment on this PR

@mike8699 mike8699 merged commit 18e855a into main Feb 28, 2022
@mike8699 mike8699 deleted the drop-any-item-from-trees branch February 28, 2022 16:42
@mike8699 mike8699 mentioned this pull request Mar 31, 2022
3 tasks
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

2 participants