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 #5037

Open
wants to merge 1 commit into
base: beta
Choose a base branch
from

Conversation

Jimmybald1
Copy link

@Jimmybald1 Jimmybald1 commented Dec 23, 2024

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 December 23, 2024 23:40
@Tempo-anon
Copy link
Collaborator

A good idea that would be helpful for any future pokedex implementations. Tracking the git blame points to one of Sam's old commits: 5ebc351

As a sidenote, you probably don't want to be developing on your own beta branch as that may make it hard for you to keep things organized. Your local beta should be sync'd to this repo's beta and then you work in and submit pull requests from a seperate branch.

@Tempo-anon Tempo-anon added UI/UX User interface/-experience related P3 Bug Non gameplay affecting bug. typos, graphical issues, or other minor incorrect interactions. labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Bug Non gameplay affecting bug. typos, graphical issues, or other minor incorrect interactions. UI/UX User interface/-experience related
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
3 participants