Find the attack, defense, special attack, special defense and speed of a Pokémon given its base stat value, along with other information such as its level, IVs and EVs, and the generation.
calculate_hp_range
gives a potential range of the HP stat, though
this is assuming that no EVs have been added to the Pokémon.
Usage
calculate_stat(
base_stat,
stat_name,
nature,
level = 50,
iv = 0,
ev = 0,
generation = 1L
)
calculate_stat_range(base_stat, stat_name, nature, level = 50, generation = 1L)
Arguments
- base_stat
The stat a Pokémon has
- stat_name
The name of the stat i.e attack. Ignored for earlier generations.
- nature
Nature of the Pokémon. Ignored for earlier generations.
- level
The level of the Pokémon
- iv
Individual Value. A random number given to a Pokémon between 1-15 (Generation 1-2) or 1-31 (Generation 3+)
- ev
Effort Value.
- generation
Generation to look at. Calculations differ in generations 1 and 2 to subsequent generations