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

[Hotfix][Bug] Unneeded RNG calls #3966

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

frutescens
Copy link
Collaborator

What are the changes the user will see?

RNG will be unaffected by accessing save-slot-select UI, run history UI, or run-info UI.

Why am I making these changes?

Bug Report: https://discord.com/channels/1125469663833370665/1279928555186290698/1280005345321816136

What are the changes from a developer perspective?

The RNG calls have been moved until after the Pokemon has been checked for an ability index. Because the PokemonData involved in these UIs already have an ability index, the RNG calls will not be called. This will not affect Pokemon generation for battle.

Screenshots/Videos

Will upload a run tomorrow morning. Sorry, very tired. Feel free to test though.

How to test the changes?

Start and play a wave (do not complete) --> Save and Quit --> Open Run History/Load Save/Run Info --> Go back to the wave and repeat the same actions.
The second playthrough should be identical in results to the first playthrough.

Checklist

  • I'm using beta as my base branch
  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I tested the changes (manually)?
    • Are all unit tests still passing? (npm run test)
  • Are the changes visual?
    • Have I provided screenshots/videos of the changes?

@frutescens frutescens added (Legacy) Bug Legacy Label, don't apply to new issues/PRs P3 Bug Non gameplay affecting bug. typos, graphical issues, or other minor incorrect interactions. labels Sep 2, 2024
@frutescens frutescens requested a review from a team as a code owner September 2, 2024 03:56
@Tempo-anon Tempo-anon added P2 Bug Minor. Non crashing Incorrect move/ability/interaction and removed P3 Bug Non gameplay affecting bug. typos, graphical issues, or other minor incorrect interactions. labels Sep 2, 2024
Copy link
Collaborator

@Tempo-anon Tempo-anon left a comment

Choose a reason for hiding this comment

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

How was this not caught earlier :plains:

@Tempo-anon Tempo-anon merged commit c4c9cf9 into pagefaultgames:beta Sep 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs P2 Bug Minor. Non crashing Incorrect move/ability/interaction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants