alefrost / pokedex

Personal project utilizing the PokeAPI project made by Paul Hallett
0 stars 0 forks source link

Alt. Forms and Mega Evolutions #4

Closed alefrost closed 10 years ago

alefrost commented 10 years ago

Link and display data of a given Mon's

and/or

Examples:

Preferably would like to accomplish this all on a single page and without the use of an additional lookup-table/json-file. Having to link to a separate page for each form/mega is not ideal.

alefrost commented 10 years ago

I'm considering adding a list to each pokemon (at least the one's with alternate forms) that contains references to each different form associated to that pokemon. This would allow a template to display the same info for each form. Thought: This format would also make it easy for users' pokemon to have a designated current form by referencing the index in the list of forms for a pokemon.

Pokemon that mega evolve have a 'detail' attribute in the evolutions list that says "mega", so a special function or template could be applied there.

alefrost commented 10 years ago

I decided to merge the process for both megas and forms into one since they were displaying all the same info in the template. DONE!