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

Pokemon Emerald: Some dexsanity locations contribute evolution items #3187

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Zunawe
Copy link
Collaborator

@Zunawe Zunawe commented Apr 21, 2024

What is this fixing or adding?

Evolving pokemon isn't (currently) in-logic for dexsanity, but it's still common enough to do. But for some pokemon that evolve via item use, it can be difficult or impossible to find the relevant items.

This changes the "vanilla item" that dexsanity locations contribute if the species evolves by using those items. So with a shuffled item pool, there will always be enough evolution items to evolve all included species. And with diverse_balanced there will at least be a slightly higher concentration of evolution items.

Also technically fixes a bug where _str_to_evolution_method was missing the ITEM method, which resulted in the value being None for pokemon with evolution items. This value was never read anyway, so the bug had no effect.

How was this tested?

Generated a game with a shuffled item pool and checked the counts for a few evolution items.

Zunawe added 2 commits April 20, 2024 18:16
If a species evolves via item use (Fire Stone, Metal Coat, etc.), use that as it's vanilla item instead of a ball
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Apr 21, 2024
@Zunawe Zunawe added the is: enhancement Issues requesting new features or pull requests implementing new features. label Apr 21, 2024
Copy link
Member

@Exempt-Medic Exempt-Medic left a comment

Choose a reason for hiding this comment

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

The code LGTM. Tested through generations and looking at spoiler logs to see that all evo items were added to the pool a number of times equal to the number of Mons that evolve by that method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants