fix(forms): supplement game-scoped dex entries with alternate forms

When a Pokédex has a game scope set and isFormDex=true, alternate forms
were not appearing because game_pokedex_entries only contains base-form
Pokémon. This adds fetchFormsForGame() to pull supplemental form entries
from pokedex_entries filtered by gamesToCatchIn, then merges and sorts
them using the base form's regional dex number so ordering is preserved.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Josh Creek
2026-06-16 13:16:29 +01:00
parent c5a503f5b5
commit 955cba1aaa
2 changed files with 7827 additions and 10 deletions
+7717
View File
File diff suppressed because it is too large Load Diff