Add BW2 in-game trades#1524
Conversation
BW2 trades hand the player a Pokemon at a fixed level, so the encounter's max_level should equal min_level. This matches the convention used by other Gen IV+ trade encounters (SM/USUM/LGPE). The original ,100 max came from copying the Gen I-III trade PRs (RBY/GSC/RSE), where received-level varied with what the player sent in trade -- not applicable in Gen V. Addresses review feedback on PokeAPI#1524.
Adds the seven specific NPC trades from Pokémon Black 2 and White 2 (sourced from Serebii): - Route 4: Cottonee ↔ Petilil (version-exclusive) - Route 7: Emolga → Gigalith - Humilau City: Mantine → Tangrowth - Route 15: Ditto → Rotom - Accumula Town: Excadrill → Ambipom - Accumula Town: Hippowdon → Alakazam To support these: - Add encounter slot for the BW2 npc-trade method (vg 14, method 36) - Add Accumula Town location area (no entry existed) - Add seven new "Give X in a Trade" encounter condition values - Add encounters and encounter condition value mappings for B2 and W2 The Yancy/Curtis Funfest Mission trades in Nimbasa City are not included; they accept any Pokémon and depend on player gender, which needs additional encounter-condition infrastructure not present today.
81af140 to
dc0f670
Compare
|
Rebased and force pushed as ids have changed on main |
|
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 updater script has finished its job and has now opened a Pull Request towards PokeAPI/api-data with the updated data. |
Summary
Adds the seven specific NPC in-game trades from Pokémon Black 2 and White 2, sourced from Serebii.
Changes
Modeled on the existing GSC (#1473) and RSE (#1478) trade PRs:
encounter_slots.csv: new slot1482for the BW2 npc-trade method (vg 14, method 36).location_areas.csv/location_area_prose.csv: new location area1363for Accumula Town — no entry existed.encounter_condition_values.csv/encounter_condition_value_prose.csv: seven newtrade-<species>condition values (trade-cottonee,trade-petilil,trade-emolga,trade-mantine,trade-ditto,trade-excadrill,trade-hippowdon) with English prose.encounters.csv: 12 new encounter rows (6 per version) withmin_level= received level andmax_level= 100, following the convention from prior trade PRs.encounter_condition_value_map.csv: 12 new rows linking each encounter to its "give" condition.Out of scope
The Yancy/Curtis Funfest Mission trades in Nimbasa City are not included. They accept any Pokémon and branch on player gender, which would need new encounter-condition infrastructure (no
trade-anyor gender condition exists today). Happy to do these in a follow-up if there's interest.AI Declaration
Change was made with the help of an AI coding agent.
Contributor check list