Pokemon-Showdown-Dex
Pokemon-Showdown-Dex copied to clipboard
Show more type effectiveness info (closes #10)
This PR:
- Adds offensive type effectiveness to type pages
- Reorganizes type effectiveness information into tables like this:
- Adds defensive type effectiveness to Pokémon pages:
I will say that I don't very much like the use of PokedexTypePanel.prototype here:
https://github.com/phantamanta44/Pokemon-Showdown-Dex/blob/52dfeb284c849df399b4871de85e552401c6e713/js/pokedex-pokemon.js#L80
However, I couldn't find any existing cases of rendering code shared between different panel types (aside from external rendering functions from the Showdown libs), so I wasn't sure how I should structure it.