-
Notifications
You must be signed in to change notification settings - Fork 13
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
Decompile dungeon code #82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's a mismatch when building the JP ROM.
src/overlay_29_02338604.c
Outdated
void SetShouldBoostHiddenStairsSpawnChance(u8 should_boost) | ||
{ | ||
#ifdef JAPAN | ||
DUNGEON_PTR[0]->unknown_file_buffer_0x12162[0x91f]=should_boost; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely a variable for boosting the hidden stairs chance that is not yet documented in the dungeon struct. It seems unlikely that this info would be stored in a file buffer, or within an array for that matter. Perhaps we can shorten the file buffer, add the new variable, and add another filler array to ensure that the dungeon struct remains the same size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I did my math wrong and overran the end of this array- it's actually the later (appropriately-named) variable boost_hidden_stairs_spawn_chance. Fixed.
Now that the dungeon struct is imported, let's work on some of that code!