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

Randomzier: Fix starting rupee item collection #2645

Merged

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Mar 22, 2023

When rupees are given as starting items, they still modify gSaveContext.rupeeAccumulator, which is never saved, which means that if you make a new file, start it, and reload without saving, or exit SoH before starting the new file, those rupees are lost. This adds a check in Rupees_ChangeBy for gPlayState being NULL, and if it is, adds those initial rupees to the rupee count directly.

Build Artifacts

…ext.rupeeAccumulator`, which means that if you make a new file, start it, and reload without saving, or exit SoH before starting the new file, those rupees were lost. This adds a check for `gPlayState` being NULL, and if it is, adds those initial rupees to the rupee count directly.
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
@briaguya-ai briaguya-ai merged commit e76b990 into HarbourMasters:develop-khan Mar 23, 2023
@Malkierian Malkierian deleted the fix-starting-with-rupees branch March 23, 2023 01:01
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