Find the HP of a Pokémon given its base HP stat, 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_hp(base_hp, level = 50, iv = 0, ev = 0, generation = 1L)
calculate_hp_range(base_hp, level = 50, generation = 1L)
Arguments
- base_hp
The base hit point stat a Pokémon has
- level
The level of the Pokémon
- iv
Individual Value. A random number given to a Pokémon between 1-15 (Generation 1-2 - also known as
dv
) or 1-31 (Generation 3+)- ev
Effort Value.
- generation
Generation to look at. Calculations differ in generations 1 and 2 to subsequent generations