Stats utilities
This module provides utilities for computing raw Pokémon stats based on base stats, IVs/DVs, EVs, nature, and level.
This module contains utility functions and objects related to stats.
- poke_env.stats.compute_raw_stats(species: str, evs: List[int], ivs: List[int], level: int, nature: str, data: GenData) List[int]
Compute raw stats for a Pokémon.
- Parameters:
species – Pokémon species.
evs – List of EV values (size 6).
ivs – List of IV values (size 6).
level – Pokémon level.
nature – Pokémon nature.
data –
GenDatainstance providing Pokédex information.
- Returns:
Raw stats as
[hp, atk, def, spa, spd, spe].
- poke_env.stats.compute_raw_stats_dvs(species: str, dvs: List[int], level: int, data: GenData) List[int]
Compute raw stats for a Pokémon in gen 1 or 2 as calculation for those generations is different. EV’s are not included as they are assumed to be maxed out.
- Parameters:
species – Pokémon species.
evs – List of EV values (size 6).
dvs – List of DV values (size 6).
level – Pokémon level.
data –
GenDatainstance providing Pokédex information.
- Returns:
Raw stats as
[hp, atk, def, spa, spd, spe].