View source: R/pokeFightModule.R
select_attacks | R Documentation |
Function that list all possible learnable moves for a pokemon and select only 4 moves.
select_attacks(mainData, attacks, current_pokemon_id)
mainData |
Object containing the main pokemon data. |
attacks |
Object containing all pokemon attacks data. |
current_pokemon_id |
Id of the randomly generated pokemon. |
Limitations: only physical moves are considered for the moment. This function has to be called inside generate_pokemons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.