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

Decompile dungeon code #82

Merged
merged 4 commits into from
Oct 20, 2024
Merged

Decompile dungeon code #82

merged 4 commits into from
Oct 20, 2024

Conversation

chordtoll
Copy link
Contributor

Now that the dungeon struct is imported, let's work on some of that code!

Copy link
Collaborator

@AnonymousRandomPerson AnonymousRandomPerson left a 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.

void SetShouldBoostHiddenStairsSpawnChance(u8 should_boost)
{
#ifdef JAPAN
DUNGEON_PTR[0]->unknown_file_buffer_0x12162[0x91f]=should_boost;
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@AnonymousRandomPerson AnonymousRandomPerson merged commit 4be2971 into pret:main Oct 20, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Oct 20, 2024
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.

2 participants