select_attacks: Function that list all possible learnable moves for a pokemon...

View source: R/pokeFightModule.R

select_attacksR Documentation

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

Description

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.


DivadNojnarg/shinyMons documentation built on Feb. 1, 2025, 3:24 p.m.