Skip to contents

Function that generate 2 random pokemons. Levels are between 1 and 100 and ids are between 1 and 151

Usage

generate_pokemons(mainData, sprites, difficulty, attacks)

Arguments

mainData

Object containing the main pokemon data.

sprites

Object containing pokemon images.

difficulty

Game difficulty.

attacks

Object containing pokemon attacks.