mirekdlugosz / create-pokemon-team

Web application that helps you build your own Pokémon team in any core series game

Home Page:https://createpokemon.team/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend data manager to read Pokemon Showdown! files

mirekdlugosz opened this issue · comments

Pokémon Showdown! is exhaustive source of information about Pokémon games since gen III. It has two advantages over veekun:

  • Bigger community, meaning faster support for new games
  • Movesets include event moves

It would be great if our data-manager could support Pokémon Showdown! files as data sources.

For starters, it could use Pokémon Showdown! as only source of data. Eventually it should be able to read veekun data and add missing pieces from Pokémon Showdown!.

Pokémon Showdown! data is held in JavaScript arrays that are not readable by standard JSON parsers. It must be first transformed to JSON. See data-manager/data-source/js-to-json.sh in ac3d664 for one way to transform it.

Both Pokémon and move names differ a little between veekun and Pokémon Showdown!. Some way to transform names from one space to another must be found. Similar problem must be solved as part of Issue #9. It would be really cool if we could find a way to solve both without code duplication.

This got broken down into:

Implemented while working on "Prepare for Sword and Shield".