Fairy Ocarina override #18
Closed
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.
The "block code" lines in Patches.py are the ones which reduced the original "Fairy Ocarina" textbox to the simple one currently used in ootr.
Commenting this block makes the whole textbox just disappear.
The hook for the fairy ocarina get item is put on this function : https://github.com/zeldaret/oot/blob/8913c4fa0d2cec19db6e8b4d8598125977243c5d/src/code/z_demo.c#L2381C1-L2381C1
Which enables us to write anything in there we want instead of automatically give the Fairy Ocarina.
I wrote a simple replacement in main.c, just to give a code example.