[Bug] fix #5034 removed unnecessary caught data block for certain forms #5037
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)
And proof that the form is still not selectable after removing the obsolete code:
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
beta
as my base branchnpm run test
)npm run create-test
) or updated existing tests related to the PR's changes?Are there any localization additions or changes? If so: