Skip to content

Add Gen IV Headbutt encounters#1520

Merged
Naramsim merged 3 commits into
PokeAPI:masterfrom
Machine-Maker:feature/gen-iv-headbutt
May 20, 2026
Merged

Add Gen IV Headbutt encounters#1520
Naramsim merged 3 commits into
PokeAPI:masterfrom
Machine-Maker:feature/gen-iv-headbutt

Conversation

@Machine-Maker
Copy link
Copy Markdown
Contributor

@Machine-Maker Machine-Maker commented May 9, 2026

Change description

Adds headbutt encounters for HG/SS in Gen IV.

I took the headbutt.json file from decompiled source for all the encounters and location. Claude helped come up with a mapping from location to location within pokeapi.

AI coding assistance disclosure

Claude Code helped me understand encounter mechanics by analyzing decompiled source for HG game.

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.

Closes #419

@Machine-Maker Machine-Maker marked this pull request as ready for review May 14, 2026 00:58
@Machine-Maker
Copy link
Copy Markdown
Contributor Author

Ok, PR is updated with latest changes on master.

Comment thread data/v2/csv/encounter_conditions.csv Outdated
Comment thread data/v2/csv/encounter_condition_values.csv Outdated
Copy link
Copy Markdown
Member

@jemarq04 jemarq04 left a comment

Choose a reason for hiding this comment

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

A few quick comments. I'll take a look at specific encounter data more in-depth after we've discussed these

Comment thread data/v2/csv/location_areas.csv
Comment thread data/v2/csv/encounter_conditions.csv Outdated
Comment thread data/v2/csv/encounter_condition_value_prose.csv Outdated
Comment thread data/v2/csv/encounter_condition_values.csv Outdated
Copy link
Copy Markdown
Member

@jemarq04 jemarq04 left a comment

Choose a reason for hiding this comment

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

Checked a few files and they look great, so I'll assume the rest is looking good. Thanks again for the contributions!

@Naramsim Naramsim merged commit 0e745e2 into PokeAPI:master May 20, 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).

@Machine-Maker Machine-Maker deleted the feature/gen-iv-headbutt branch May 20, 2026 20:18
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.

missing pokemon encounters from headbutt trees

5 participants