Skip to content

Commit 6ee7324

Browse files
committed
Modified the _build_pokemons function in build.py to handle the new fields appropriately, ensuring compatibility with existing data structures.
1 parent 38b9758 commit 6ee7324

File tree

2 files changed

+510
-508
lines changed

2 files changed

+510
-508
lines changed

data/v2/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,8 @@ def csv_record_to_objects(info):
20732073
trade_species_id=int(info[17]) if info[17] != "" else None,
20742074
needs_overworld_rain=bool(int(info[18])),
20752075
turn_upside_down=bool(int(info[19])),
2076+
region_restriction_id=int(info[20]) if info[20] != "" else None,
2077+
base_form_required_id=int(info[21]) if info[21] != "" else None,
20762078
)
20772079

20782080
build_generic((PokemonEvolution,), "pokemon_evolution.csv", csv_record_to_objects)

0 commit comments

Comments
 (0)