alefrost / pokedex

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

Display move information #8

Open alefrost opened 10 years ago

alefrost commented 10 years ago

Move Categories (special, physical, non-damaging) and Types aren't currently in the data and must be filled in. All available information is being displayed though.

alefrost commented 10 years ago

CLEVER DOG!!! I found that the moves descriptions are written in Markdown! Now I'm faced with the dilemma of finding a way to render it, as well as fix the descriptions. None of them retained any linebreaks in the text, so the markdown doesn't inherently work, \n has to be entered in specific places to get that to work :/

Here's an example of one of the moves: Secret Power's description after entering newlines:

Inflicts regular damage. Has a 30% chance to inflict an effect chosen according to the terrain. Terrain Effect
Building Paralyze target
Cave Makes target flinch
Deep water Lowers target's Attack by one stage
Desert Lowers target's accuracy by one stage
Grass Puts target to sleep
Mountain Makes target flinch
Road Lowers target's accuracy by one stage
Shallow water Lowers target's Attack by one stage
Snow Freezes target
Tall grass Puts target to sleep
In Pokémon Battle Revolution: Terrain Effect
Courtyard Paralyze target
Crystal Makes target flinch
Gateway Lowers target's Attack by one stage
Magma Makes target flinch
Main Street Paralyze target
Neon Paralyze target
Stargazer Makes target flinch
Sunny Park Puts target to sleep
Sunset Lowers target's accuracy by one stage
Waterfall Puts target to sleep