Skip to contents

Function that list all possible learnable moves for a pokemon and select only 4 moves.

Usage

select_attacks(mainData, attacks, current_pokemon_id)

Arguments

mainData

Object containing the main pokemon data.

attacks

Object containing all pokemon attacks data.

current_pokemon_id

Id of the randomly generated pokemon.

Note

Limitations: only physical moves are considered for the moment. This function has to be called inside generate_pokemons.