mirekdlugosz / create-pokemon-team

Web application that helps you build your own Pokémon team in any core series game
https://createpokemon.team/
GNU Affero General Public License v3.0
12 stars 3 forks source link

Translation layer for veekun and Showdown in pokedexreader #27

Closed mirekdlugosz closed 4 years ago

mirekdlugosz commented 5 years ago

veekun Pokedex and Pokemon Showdown! are using different ids for Pokemon and moves. We need to align them in order to be able to create single pokedex from multiple sources in pokedexreader.

My idea is:

Providing Showdown -> veekun translation might be as easy as creating veekun -> Showdown map and swapping key with value:

veekun_to_showdown = {item: item.replace('-', '') for item in veekun_moves}
showdown_to_veekun = {val: key for key, val in veekun_to_showdown.items()}
two_way_map = {**veekun_to_showdown, **showdown_to_veekun}

However, this will couple Showdown reader with veekun reader - veekun will be allowed as standalone data source, while Showdown will be always only auxiliary data source.

mirekdlugosz commented 5 years ago

This is being worked on in branch showdown-27.

mirekdlugosz commented 5 years ago

I decided to switch to Showdown ids exclusively:

Until Showdown reader is completed (#28 and #29), there is not much to be done here. It's actually veekun reader that must be changed.

mirekdlugosz commented 4 years ago

Done in 213ec8611d7fcb1f7825c225bad7cf2dab7fc3ad..4df5a217f2ef17b97b772b81568186841273b935