Skip to content

Add evolution condition: near_special_rock#1547

Merged
Naramsim merged 2 commits into
PokeAPI:masterfrom
jemarq04:add-evolution-condition
Jun 9, 2026
Merged

Add evolution condition: near_special_rock#1547
Naramsim merged 2 commits into
PokeAPI:masterfrom
jemarq04:add-evolution-condition

Conversation

@jemarq04

@jemarq04 jemarq04 commented Jun 7, 2026

Copy link
Copy Markdown
Member

Change description

Follow-up to PR #1525 and discussion #1538. Adds an additional evolution condition near_special_rock to pokemon_evolution.csv for early Leafeon and Glaceon evolutions near Moss Rock and Icy Rock, respectively. Set to 0 for all other evolutions.

Contributor check list

  • I have written a description of the contribution and explained its motivation.
  • I have written tests for my code changes (if applicable).
  • I have read and understood the AI Assisted Contribution guidelines.
  • I will own this change in production, and I am prepared to fix any bugs caused by my code change.

@jemarq04 jemarq04 changed the title Add evolution condition Add evolution condition: near_special_rock Jun 7, 2026
@Naramsim

Naramsim commented Jun 8, 2026

Copy link
Copy Markdown
Member

I'm not super convinced by the line

        near_special_rock=bool(int(info[21])),

What do you think about adding a new different catch-all attribute such as 'special condition' that we can reuse also for other evolutions? This would be more complicated of course and would need some prose as well.

Just asking

@jemarq04

jemarq04 commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

What do you think about adding a new different catch-all attribute such as 'special condition' that we can reuse also for other evolutions? This would be more complicated of course and would need some prose as well.

Something like that would be nice, but we have no way of adding any prose or additional comments on these evolution condition fields. That's why in the past we've just added relevant new fields (e.g. needs_multiplayer, needs_overworld_rain, and turn_upside_down). As far as I know, the framework doesn't have any way to add prose on these evolution conditions.

Talking about this did remind me of the evolution_triggers.csv file – maybe we could add a level-up-near-moss-rock and level-up-near-icy-rock triggers for these evolutions instead? This would allow for dedicated prose that we could write.

@Naramsim

Naramsim commented Jun 9, 2026

Copy link
Copy Markdown
Member

Or we could modify the schema to support the prose for a new "evolution condition" field.

Are there many "condition s" to evolve a Pokemon? That we currently don't support? Can you think of any?

@jemarq04

jemarq04 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

No, I don't believe we have any more that aren't accounted for. I made a PR some time ago that added some evolution fields and triggers to account for any placeholder uses of the other evolution trigger, so everything should be handled aside from these special Leafeon/Glaceon evolutions.

@Naramsim

Naramsim commented Jun 9, 2026

Copy link
Copy Markdown
Member

Oh well then let's go with this PR 🙂 thanks a lot!

@Naramsim

Naramsim commented Jun 9, 2026

Copy link
Copy Markdown
Member

If you have time could you also update the docs?

I'll update the gql

@Naramsim Naramsim merged commit 01a464c into PokeAPI:master Jun 9, 2026
9 checks passed
@pokeapi-machine-user

Copy link
Copy Markdown

A PokeAPI/api-data refresh has started. In ~45 minutes the staging branch of PokeAPI/api-data will be pushed with the new generated data.

The staging branch will be deployed in our staging environment and the entire API will be ready to review.

A Pull Request (master<-staging) will be also created at PokeAPI/api-data and assigned to the PokeAPI Core team to be reviewed. If approved and merged new data will soon be available worldwide at pokeapi.co.

@pokeapi-machine-user

Copy link
Copy Markdown

The updater script has finished its job and has now opened a Pull Request towards PokeAPI/api-data with the updated data.

The Pull Request can be seen deployed in our staging environment when CircleCI deploy will be finished (check the start time of the last build).

Naramsim pushed a commit to PokeAPI/api-data that referenced this pull request Jun 9, 2026
@jemarq04

jemarq04 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

If you have time could you also update the docs?

I'll update the gql

Of course, I’ll update the docs! I hadn’t realized there’s another step that needs to be taken with these changes - is this a makefile target or something I should be running when I make changes to CSV structure?

@jemarq04 jemarq04 deleted the add-evolution-condition branch June 9, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants