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

[Bug] Fix #5034 removed unnecessary caught data block for certain forms #5119

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

Jimmybald1
Copy link
Contributor

Remade this PR, now from a branch based on beta and not actually from Beta. Thanks.

What are the changes the user will see?

Caught data will now be tracked correctly. When a trainer uses a Mega form you have unlocked already, it won't show as a grey ball icon anymore. Currently a user can only find these forms when they use RogueDex google sheet. In the future this would show up in the in-game pokedex too.

Why am I making these changes?

I am making these changes so the collectors can actually collect all the remaining forms and so users finally have a way to get rid of those grey ball icons on some mega form trainer pokemon. Issue included in title.
fixes #5034

What are the changes from a developer perspective?

Removed a list of form names from pokemon-species.ts. Removed an if-statement from game-data.ts. The no starter form checks are done by configuring isStarterSelectable in PokemonForm, which is already done for every pokemon in the game. The list that I removed is just an old bit of code that was never removed.

Screenshots/Videos

Caught attribute of Palkia using the data and session of the referenced issue is now 405n, that is 110010101 in binary, where the first two 1s are the caught forms. Before the change this was only the base form, now the second Origin form is also stored in caught data. Any trainer that would use Palkia Origin would no longer have a grey ball icon when I face them in the future. (the form is still not available in starter select, see section above this)
image
And proof that the form is still not selectable after removing the obsolete code: image

How to test the changes?

See the issue number. Import data, import session. Continue, beat the wave. Go to check team. Disable and Activate Lustrous Globe.
game-data.ts - setPokemonSpeciesCaught should now set formIndex 1 in caught data, resulting in a caught data value of 405n.

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)
    • Have I created new automated tests (npm run create-test) or updated existing tests related to the PR's changes?
  • Have I provided screenshots/videos of the changes (if applicable)?
    • Have I made sure that any UI change works for both UI themes (default and legacy)?

Are there any localization additions or changes? If so:

  • Has a locales PR been created on the locales repo?
    • If so, please leave a link to it here:
  • Has the translation team been contacted for proofreading/translation?

@Jimmybald1 Jimmybald1 requested a review from a team as a code owner January 13, 2025 09:40
@DayKev DayKev added the Miscellaneous Changes that don't fit under any other label label Jan 14, 2025
@damocleas damocleas merged commit d624733 into pagefaultgames:beta Jan 15, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Miscellaneous Changes that don't fit under any other label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Mega, GMax, Origin, and more forms are not stored in caught data
5 participants